aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2018-07-28 20:22:52 +0800
committermiwi <miwi@FreeBSD.org>2018-07-28 20:22:52 +0800
commitbb80fa21f731376c6ccc18e586808b17fcb9effa (patch)
tree6c64167a207ffc4b3f6cc2f5574a8e1bbee042a0 /textproc
parent7a1eeb492e9fd41da27f3f51873b532d0a6cd7cf (diff)
downloadfreebsd-ports-gnome-bb80fa21f731376c6ccc18e586808b17fcb9effa.tar.gz
freebsd-ports-gnome-bb80fa21f731376c6ccc18e586808b17fcb9effa.tar.zst
freebsd-ports-gnome-bb80fa21f731376c6ccc18e586808b17fcb9effa.zip
Normality is a Python micro-package that contains a small set of text
normalization functions for easier re-use. These functions accept a snippet of unicode or utf-8 encoded text and remove various classes of characters, such as diacritics, punctuation etc. This is useful as a preparation to further text analysis. WWW: https://github.com/pudo/normality PR: 229527 Submitted by: freebsd_ports@k-worx.org Sponsored by: iXsystems Inc.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-normality/Makefile28
-rw-r--r--textproc/py-normality/distinfo3
-rw-r--r--textproc/py-normality/pkg-descr7
4 files changed, 39 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index b7802a104f5c..cc890054b63f 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1329,6 +1329,7 @@
SUBDIR += py-mkdocs-nature
SUBDIR += py-mwparserfromhell
SUBDIR += py-nltk
+ SUBDIR += py-normality
SUBDIR += py-numpydoc
SUBDIR += py-openpyxl
SUBDIR += py-openstackdocstheme
diff --git a/textproc/py-normality/Makefile b/textproc/py-normality/Makefile
new file mode 100644
index 000000000000..f8f8dc34707a
--- /dev/null
+++ b/textproc/py-normality/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= normality
+DISTVERSION= 0.6.1
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= freebsd_ports@k-worx.org
+COMMENT= Micro-library to normalize text strings
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}banal>=0:devel/py-banal@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+post-extract:
+ # Prevents that the tests directory will be installed into site-packages
+ @(cd ${WRKSRC} && ${MV} tests test)
+
+.include <bsd.port.mk>
diff --git a/textproc/py-normality/distinfo b/textproc/py-normality/distinfo
new file mode 100644
index 000000000000..0b90dc0a722f
--- /dev/null
+++ b/textproc/py-normality/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1530200443
+SHA256 (normality-0.6.1.tar.gz) = 739c1b40cfaefabdf537972f0284df5ce0ddb371f9475b764f478cb25bc1c4be
+SIZE (normality-0.6.1.tar.gz) = 7887
diff --git a/textproc/py-normality/pkg-descr b/textproc/py-normality/pkg-descr
new file mode 100644
index 000000000000..5fccf5b551ac
--- /dev/null
+++ b/textproc/py-normality/pkg-descr
@@ -0,0 +1,7 @@
+Normality is a Python micro-package that contains a small set of text
+normalization functions for easier re-use. These functions accept a snippet of
+unicode or utf-8 encoded text and remove various classes of characters, such as
+diacritics, punctuation etc. This is useful as a preparation to further text
+analysis.
+
+WWW: https://github.com/pudo/normality