summaryrefslogtreecommitdiff
path: root/textproc/py-marisa
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-05-24 10:21:13 +0000
committerobache <obache@pkgsrc.org>2014-05-24 10:21:13 +0000
commite389ae10b66597eae31322396f41359b921fbf65 (patch)
tree96a4c003ee116c0c164e864aed5d5da838149108 /textproc/py-marisa
parent41266b46a5d62ba7e5e33e551c5709bcab3b5420 (diff)
downloadpkgsrc-e389ae10b66597eae31322396f41359b921fbf65.tar.gz
Import marisa-0.2.4 and bindings as textproc/{,p5-,py-,ruby-}marisa
Packaged by ISIHARA TAkanori in pkgsrc-wip. Matching Algorithm with Recursively Implemented StorAge (MARISA) is a static and space-efficient trie data structure. And libmarisa is a C++ library to provide an implementation of MARISA. Also, the package of libmarisa contains a set of command line tools for building and operating a MARISA-based dictionary.
Diffstat (limited to 'textproc/py-marisa')
-rw-r--r--textproc/py-marisa/DESCR7
-rw-r--r--textproc/py-marisa/Makefile23
-rw-r--r--textproc/py-marisa/PLIST6
3 files changed, 36 insertions, 0 deletions
diff --git a/textproc/py-marisa/DESCR b/textproc/py-marisa/DESCR
new file mode 100644
index 00000000000..4d8b4a229a3
--- /dev/null
+++ b/textproc/py-marisa/DESCR
@@ -0,0 +1,7 @@
+Matching Algorithm with Recursively Implemented StorAge (MARISA) is a
+static and space-efficient trie data structure. And libmarisa is a C++
+library to provide an implementation of MARISA. Also, the package of
+libmarisa contains a set of command line tools for building and
+operating a MARISA-based dictionary.
+
+This package is python module for MARISA.
diff --git a/textproc/py-marisa/Makefile b/textproc/py-marisa/Makefile
new file mode 100644
index 00000000000..bf013e69094
--- /dev/null
+++ b/textproc/py-marisa/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2014/05/24 10:21:13 obache Exp $
+#
+
+.include "../../textproc/marisa/Makefile.common"
+
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES+= python
+
+COMMENT= MARISA python module
+
+USE_LANGUAGES= c c++
+
+PYSETUPSUBDIR= bindings/python
+
+SUBST_CLASSES+= version
+SUBST_STAGE.version= pre-configure
+SUBST_FILES.version= bindings/python/setup.py
+SUBST_SED.version= -e s,@VERSION@,${PKGVERSION_NOREV},
+
+BUILDLINK_API_DEPENDS.marisa+= marisa>=${PKGVERSION_NOREV}
+.include "../../textproc/marisa/buildlink3.mk"
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-marisa/PLIST b/textproc/py-marisa/PLIST
new file mode 100644
index 00000000000..91e22dbcf54
--- /dev/null
+++ b/textproc/py-marisa/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2014/05/24 10:21:13 obache Exp $
+${PYSITELIB}/_marisa.so
+${PYSITELIB}/marisa.py
+${PYSITELIB}/marisa.pyc
+${PYSITELIB}/marisa.pyo
+${PYSITELIB}/${EGG_FILE}