summaryrefslogtreecommitdiff
path: root/textproc/marisa
diff options
context:
space:
mode:
authorobache <obache>2014-05-24 10:21:13 +0000
committerobache <obache>2014-05-24 10:21:13 +0000
commita844ed1faf5ef58794fba3b9c60ccc6f49a8090f (patch)
tree96a4c003ee116c0c164e864aed5d5da838149108 /textproc/marisa
parent0de0f77199b1a2e64a1d7327a701311d5af0b708 (diff)
downloadpkgsrc-a844ed1faf5ef58794fba3b9c60ccc6f49a8090f.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/marisa')
-rw-r--r--textproc/marisa/DESCR5
-rw-r--r--textproc/marisa/Makefile15
-rw-r--r--textproc/marisa/Makefile.common15
-rw-r--r--textproc/marisa/PLIST22
-rw-r--r--textproc/marisa/buildlink3.mk12
-rw-r--r--textproc/marisa/distinfo6
-rw-r--r--textproc/marisa/patches/patch-bindings_python_setup.py13
7 files changed, 88 insertions, 0 deletions
diff --git a/textproc/marisa/DESCR b/textproc/marisa/DESCR
new file mode 100644
index 00000000000..b311f39fad6
--- /dev/null
+++ b/textproc/marisa/DESCR
@@ -0,0 +1,5 @@
+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.
diff --git a/textproc/marisa/Makefile b/textproc/marisa/Makefile
new file mode 100644
index 00000000000..3a80f3b665a
--- /dev/null
+++ b/textproc/marisa/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2014/05/24 10:21:13 obache Exp $
+
+.include "Makefile.common"
+COMMENT= C++ library to provide an implementation of MARISA
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+#TEST_TARGET= check
+
+PKGCONFIG_OVERRIDE+= marisa.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/marisa/Makefile.common b/textproc/marisa/Makefile.common
new file mode 100644
index 00000000000..89062c334ee
--- /dev/null
+++ b/textproc/marisa/Makefile.common
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile.common,v 1.1 2014/05/24 10:21:13 obache Exp $
+# used by textproc/p5-marisa/Makefile
+# used by textproc/py-marisa/Makefile
+# used by textproc/ruby-marisa/Makefile
+
+DISTNAME= marisa-0.2.4
+CATEGORIES= textproc
+MASTER_SITES= http://marisa-trie.googlecode.com/files/
+
+DISTINFO_FILE= ${.CURDIR}/../../textproc/marisa/distinfo
+PATCHDIR= ${.CURDIR}/../../textproc/marisa/patches
+
+MAINTAINER= ishit@users.sourceforge.net
+HOMEPAGE= http://code.google.com/p/marisa-trie/
+LICENSE= modified-bsd OR gnu-lgpl-v2.1
diff --git a/textproc/marisa/PLIST b/textproc/marisa/PLIST
new file mode 100644
index 00000000000..c31acf694a8
--- /dev/null
+++ b/textproc/marisa/PLIST
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.1 2014/05/24 10:21:13 obache Exp $
+bin/marisa-benchmark
+bin/marisa-build
+bin/marisa-common-prefix-search
+bin/marisa-dump
+bin/marisa-lookup
+bin/marisa-predictive-search
+bin/marisa-reverse-lookup
+include/marisa.h
+include/marisa/agent.h
+include/marisa/base.h
+include/marisa/exception.h
+include/marisa/iostream.h
+include/marisa/key.h
+include/marisa/keyset.h
+include/marisa/query.h
+include/marisa/scoped-array.h
+include/marisa/scoped-ptr.h
+include/marisa/stdio.h
+include/marisa/trie.h
+lib/libmarisa.la
+lib/pkgconfig/marisa.pc
diff --git a/textproc/marisa/buildlink3.mk b/textproc/marisa/buildlink3.mk
new file mode 100644
index 00000000000..e9c5b2666c8
--- /dev/null
+++ b/textproc/marisa/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/05/24 10:21:13 obache Exp $
+
+BUILDLINK_TREE+= marisa
+
+.if !defined(MARISA_BUILDLINK3_MK)
+MARISA_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.marisa+= marisa>=0.2.4
+BUILDLINK_PKGSRCDIR.marisa?= ../../textproc/marisa
+.endif # MARISA_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -marisa
diff --git a/textproc/marisa/distinfo b/textproc/marisa/distinfo
new file mode 100644
index 00000000000..f193ad4b197
--- /dev/null
+++ b/textproc/marisa/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2014/05/24 10:21:13 obache Exp $
+
+SHA1 (marisa-0.2.4.tar.gz) = fb0ed7d993e84dff32ec456a79bd36a00022629d
+RMD160 (marisa-0.2.4.tar.gz) = 00897f9381b89d08c5190fef8730c9a40aa126a3
+Size (marisa-0.2.4.tar.gz) = 502552 bytes
+SHA1 (patch-bindings_python_setup.py) = 6c7d1800986077fd5c1e8d4b96b49762a381420a
diff --git a/textproc/marisa/patches/patch-bindings_python_setup.py b/textproc/marisa/patches/patch-bindings_python_setup.py
new file mode 100644
index 00000000000..ee53883cfd7
--- /dev/null
+++ b/textproc/marisa/patches/patch-bindings_python_setup.py
@@ -0,0 +1,13 @@
+$NetBSD: patch-bindings_python_setup.py,v 1.1 2014/05/24 10:21:13 obache Exp $
+
+add version for egg file's file name.
+
+--- bindings/python/setup.py.orig 2011-05-14 05:20:52.000000000 +0000
++++ bindings/python/setup.py
+@@ -5,5 +5,6 @@ marisa_module = Extension("_marisa",
+ libraries=["marisa"])
+
+ setup(name = "marisa",
++ version = "@VERSION@",
+ ext_modules = [marisa_module],
+ py_modules = ["marisa"])