summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2019-03-23 23:23:03 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2019-03-23 23:23:03 +0000
commit3eff9d67a4b320cdb16746fce3cfcf8128a65bf8 (patch)
treee0fb9d5d1a3ee64254157bf230fae444f6337c3f
parentSeveral improvements (diff)
Add langdetect, a port of Google's language-detection library to Python
PR: 236685
Notes
Notes: svn path=/head/; revision=496695
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-langdetect/Makefile22
-rw-r--r--textproc/py-langdetect/distinfo3
-rw-r--r--textproc/py-langdetect/pkg-descr4
4 files changed, 30 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 20d8b65d2d9b..c026c9189bff 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1324,6 +1324,7 @@
SUBDIR += py-jsonslicer
SUBDIR += py-jtextfsm
SUBDIR += py-junit-xml
+ SUBDIR += py-langdetect
SUBDIR += py-laserhammer
SUBDIR += py-libtre
SUBDIR += py-libxml2
diff --git a/textproc/py-langdetect/Makefile b/textproc/py-langdetect/Makefile
new file mode 100644
index 000000000000..52ec380a5bae
--- /dev/null
+++ b/textproc/py-langdetect/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= langdetect
+PORTVERSION= 1.0.7
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= grembo@FreeBSD.org
+COMMENT= Language detection library ported from Google\'s language-detection
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.10:devel/py-six@${PY_FLAVOR}
+
+USES= python zip
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-langdetect/distinfo b/textproc/py-langdetect/distinfo
new file mode 100644
index 000000000000..d9796f14841a
--- /dev/null
+++ b/textproc/py-langdetect/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1553008501
+SHA256 (langdetect-1.0.7.zip) = 91a170d5f0ade380db809b3ba67f08e95fe6c6c8641f96d67a51ff7e98a9bf30
+SIZE (langdetect-1.0.7.zip) = 998060
diff --git a/textproc/py-langdetect/pkg-descr b/textproc/py-langdetect/pkg-descr
new file mode 100644
index 000000000000..78a96a1ccdb9
--- /dev/null
+++ b/textproc/py-langdetect/pkg-descr
@@ -0,0 +1,4 @@
+Port of Google's language-detection library (version from 03/03/2014)
+to Python.
+
+WWW: https://github.com/Mimino666/langdetect