diff --git a/textproc/Makefile b/textproc/Makefile index 4dab3bca88b0..68fc02a0dcfe 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1661,6 +1661,7 @@ SUBDIR += py-tabletext SUBDIR += py-tablib SUBDIR += py-terminaltables + SUBDIR += py-text2digits SUBDIR += py-textdistance SUBDIR += py-textfsm SUBDIR += py-textract diff --git a/textproc/py-text2digits/Makefile b/textproc/py-text2digits/Makefile new file mode 100644 index 000000000000..ff849a25dc7a --- /dev/null +++ b/textproc/py-text2digits/Makefile @@ -0,0 +1,29 @@ +PORTNAME= text2digits +PORTVERSION= 0.1.0 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= matthew@wener.org +COMMENT= Small library to convert text numbers to digits in a string +WWW= https://github.com/ShailChoksi/text2digits + +LICENSE= MIT + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 + +NO_ARCH= yes + +PORTDOCS= PKG-INFO README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/textproc/py-text2digits/distinfo b/textproc/py-text2digits/distinfo new file mode 100644 index 000000000000..46a5fcef7fd6 --- /dev/null +++ b/textproc/py-text2digits/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724809518 +SHA256 (text2digits-0.1.0.tar.gz) = a01d8dc8d57179d888ba589df40e02730f3bf2dd892ab22c37538e4799728bb2 +SIZE (text2digits-0.1.0.tar.gz) = 9113 diff --git a/textproc/py-text2digits/pkg-descr b/textproc/py-text2digits/pkg-descr new file mode 100644 index 000000000000..76e1f7ea00b3 --- /dev/null +++ b/textproc/py-text2digits/pkg-descr @@ -0,0 +1 @@ +A small library to convert text numbers to digits in a string.