diff --git a/textproc/py-inflect/Makefile b/textproc/py-inflect/Makefile new file mode 100644 index 00000000000..d1513ed3a3b --- /dev/null +++ b/textproc/py-inflect/Makefile @@ -0,0 +1,24 @@ +COMMENT= correctly generate plurals, singular nouns, ordinals, etc + +MODPY_EGG_VERSION= 6.0.2 +DISTNAME= inflect-${MODPY_EGG_VERSION} +PKGNAME= py-${DISTNAME} + +CATEGORIES= textproc + +# https://github.com/jaraco/inflect +HOMEPAGE= https://inflect.readthedocs.io/ + +# MIT +PERMIT_PACKAGE= Yes + +MODULES= lang/python + +MODPY_PI= Yes +MODPY_PYBUILD= setuptools_scm +RUN_DEPENDS= devel/py-pydantic${MODPY_FLAVOR} + +FLAVORS= python3 +FLAVOR= python3 + +.include diff --git a/textproc/py-inflect/distinfo b/textproc/py-inflect/distinfo new file mode 100644 index 00000000000..7b739ddfdd3 --- /dev/null +++ b/textproc/py-inflect/distinfo @@ -0,0 +1,2 @@ +SHA256 (inflect-6.0.2.tar.gz) = 8aa8sBBQRviWGf3hp9BExhLGFMLYXvGCWC2dybhtMJo= +SIZE (inflect-6.0.2.tar.gz) = 70830 diff --git a/textproc/py-inflect/pkg/DESCR b/textproc/py-inflect/pkg/DESCR new file mode 100644 index 00000000000..a131960e6ca --- /dev/null +++ b/textproc/py-inflect/pkg/DESCR @@ -0,0 +1,20 @@ +inflect.py provides plural inflections, singular noun inflections, +"a"/"an" selection for English words, and manipulation of numbers as +words. + +Plural forms of all nouns, most verbs, and some adjectives are provided. +Where appropriate, "classical" variants (for example: "brother" -> +"brethren", "dogma" -> "dogmata", etc.) are also provided. + +Single forms of nouns are also provided. The gender of singular pronouns +can be chosen (for example "they" -> "it" or "she" or "he" or "they"). + +Pronunciation-based "a"/"an" selection is provided for all English +words, and most initialisms. + +It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, +3rd) and to English words ("one", "two", "three"). + +In generating these inflections, inflect.py follows the Oxford English +Dictionary and the guidelines in Fowler's Modern English Usage, +preferring the former where the two disagree. diff --git a/textproc/py-inflect/pkg/PLIST b/textproc/py-inflect/pkg/PLIST new file mode 100644 index 00000000000..f78060eaaa8 --- /dev/null +++ b/textproc/py-inflect/pkg/PLIST @@ -0,0 +1,12 @@ +lib/python${MODPY_VERSION}/site-packages/inflect/ +lib/python${MODPY_VERSION}/site-packages/inflect-${MODPY_EGG_VERSION}.dist-info/ +lib/python${MODPY_VERSION}/site-packages/inflect-${MODPY_EGG_VERSION}.dist-info/LICENSE +lib/python${MODPY_VERSION}/site-packages/inflect-${MODPY_EGG_VERSION}.dist-info/METADATA +lib/python${MODPY_VERSION}/site-packages/inflect-${MODPY_EGG_VERSION}.dist-info/RECORD +lib/python${MODPY_VERSION}/site-packages/inflect-${MODPY_EGG_VERSION}.dist-info/WHEEL +lib/python${MODPY_VERSION}/site-packages/inflect-${MODPY_EGG_VERSION}.dist-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/inflect/__init__.py +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/inflect/${MODPY_PYCACHE}/ +lib/python${MODPY_VERSION}/site-packages/inflect/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} +lib/python${MODPY_VERSION}/site-packages/inflect/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/inflect/py.typed