aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2013-02-10 03:11:54 +0800
committerdemon <demon@FreeBSD.org>2013-02-10 03:11:54 +0800
commit3b5cf9a76ab1e88f38fc184dd05db29494e246de (patch)
treeaa64e137d1111be841ffca50c1aee2a054ffb906 /devel
parent555c3ac16e89ea04e6afdf0c750379ec11dbe73c (diff)
downloadfreebsd-ports-gnome-3b5cf9a76ab1e88f38fc184dd05db29494e246de.tar.gz
freebsd-ports-gnome-3b5cf9a76ab1e88f38fc184dd05db29494e246de.tar.zst
freebsd-ports-gnome-3b5cf9a76ab1e88f38fc184dd05db29494e246de.zip
Python bindings for chromium compact language detector library.
WWW: http://pypi.python.org/pypi/chromium_compact_language_detector
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-cld/Makefile23
-rw-r--r--devel/py-cld/distinfo2
-rw-r--r--devel/py-cld/pkg-descr5
4 files changed, 31 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 967f6250cb23..a66c5ec6ba33 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3392,6 +3392,7 @@
SUBDIR += py-ciphon
SUBDIR += py-circuits
SUBDIR += py-cjson
+ SUBDIR += py-cld
SUBDIR += py-clonedigger
SUBDIR += py-cmdln
SUBDIR += py-cog
diff --git a/devel/py-cld/Makefile b/devel/py-cld/Makefile
new file mode 100644
index 000000000000..04cc0fd21bbb
--- /dev/null
+++ b/devel/py-cld/Makefile
@@ -0,0 +1,23 @@
+# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= cld
+PORTVERSION= 0.2
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_CHEESESHOP}
+MASTER_SITE_SUBDIR=source/c/chromium_compact_language_detector
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= chromium_compact_language_detector-${PORTVERSION}
+
+MAINTAINER= demon@FreeBSD.org
+COMMENT= Python bindings for chromium compact language detector library
+
+LIB_DEPENDS= cld:${PORTSDIR}/devel/cld
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PYDISTUTILS_PKGNAME=chromium_compact_language_detector
+
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/cld.so
+
+.include <bsd.port.mk>
diff --git a/devel/py-cld/distinfo b/devel/py-cld/distinfo
new file mode 100644
index 000000000000..bb420e67a682
--- /dev/null
+++ b/devel/py-cld/distinfo
@@ -0,0 +1,2 @@
+SHA256 (chromium_compact_language_detector-0.2.tar.gz) = f14eb028e6e5152fbcb1a12aa749f73483d933d0336d52e27a7d44e3a7b745b1
+SIZE (chromium_compact_language_detector-0.2.tar.gz) = 38279
diff --git a/devel/py-cld/pkg-descr b/devel/py-cld/pkg-descr
new file mode 100644
index 000000000000..5b3885d2affd
--- /dev/null
+++ b/devel/py-cld/pkg-descr
@@ -0,0 +1,5 @@
+A port from the CLD (Compact Language Detector) library embedded in
+Google's Chromium browser. The library detects the language from
+provided UTF8 text (plain text or HTML). This is python bindings.
+
+WWW: http://pypi.python.org/pypi/chromium_compact_language_detector