aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2016-07-16 01:29:26 +0800
committerpi <pi@FreeBSD.org>2016-07-16 01:29:26 +0800
commite5842171232c9f48f7f78c1c9621e6b7e82bb1a1 (patch)
tree602b6f202cf0ed546d7b105d87850f5cd98dbf8d /textproc
parentb43fcb02311957ba1d834bc0aa98f14eeda2fb74 (diff)
downloadfreebsd-ports-graphics-e5842171232c9f48f7f78c1c9621e6b7e82bb1a1.tar.gz
freebsd-ports-graphics-e5842171232c9f48f7f78c1c9621e6b7e82bb1a1.tar.zst
freebsd-ports-graphics-e5842171232c9f48f7f78c1c9621e6b7e82bb1a1.zip
New port: textproc/py-guess-language
Attempts to determine the natural language of a selection of Unicode (utf-8) text. Based on guesslanguage.cpp by Jacob R Rideout for KDE which itself is based on Language::Guess by Maciej Ceglowski. Detects over 60 languages, all languages listed in the trigrams directory plus Japanese, Chinese, Korean and Greek. WWW: https://pypi.python.org/pypi/guess-language PR: 211058 Submitted by: Danilo G. Baio <dbaio@bsd.com.br>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-guess-language/Makefile18
-rw-r--r--textproc/py-guess-language/distinfo3
-rw-r--r--textproc/py-guess-language/pkg-descr7
4 files changed, 29 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index c05cf74de84..3bc927bab2e 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1237,6 +1237,7 @@
SUBDIR += py-excelerator
SUBDIR += py-feedparser
SUBDIR += py-genshi
+ SUBDIR += py-guess-language
SUBDIR += py-hexdump
SUBDIR += py-html2text
SUBDIR += py-hyperestraier-python
diff --git a/textproc/py-guess-language/Makefile b/textproc/py-guess-language/Makefile
new file mode 100644
index 00000000000..008ba4d2f09
--- /dev/null
+++ b/textproc/py-guess-language/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+PORTNAME= guess-language
+PORTVERSION= 0.2
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dbaio@bsd.com.br
+COMMENT= Guess the natural language of a text in Python
+
+LICENSE= LGPL21+
+
+NO_ARCH= yes
+USES= python
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/textproc/py-guess-language/distinfo b/textproc/py-guess-language/distinfo
new file mode 100644
index 00000000000..cf2ec6db9b9
--- /dev/null
+++ b/textproc/py-guess-language/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1468017268
+SHA256 (guess-language-0.2.tar.gz) = b31ba2a279b8e6a19e9aa2f8e21c5fc4a56cd5557aea3f806cba73ecf38696e7
+SIZE (guess-language-0.2.tar.gz) = 98949
diff --git a/textproc/py-guess-language/pkg-descr b/textproc/py-guess-language/pkg-descr
new file mode 100644
index 00000000000..e88d6e41742
--- /dev/null
+++ b/textproc/py-guess-language/pkg-descr
@@ -0,0 +1,7 @@
+Attempts to determine the natural language of a selection of Unicode
+(utf-8) text. Based on guesslanguage.cpp by Jacob R Rideout for KDE
+which itself is based on Language::Guess by Maciej Ceglowski. Detects
+over 60 languages, all languages listed in the trigrams directory
+plus Japanese, Chinese, Korean and Greek.
+
+WWW: https://pypi.python.org/pypi/guess-language