summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--textproc/p5-marisa/DESCR7
-rw-r--r--textproc/p5-marisa/Makefile23
-rw-r--r--textproc/py-marisa/DESCR7
-rw-r--r--textproc/py-marisa/Makefile23
-rw-r--r--textproc/py-marisa/PLIST6
-rw-r--r--textproc/ruby-marisa/DESCR7
-rw-r--r--textproc/ruby-marisa/Makefile18
-rw-r--r--textproc/ruby-marisa/PLIST2
15 files changed, 181 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"])
diff --git a/textproc/p5-marisa/DESCR b/textproc/p5-marisa/DESCR
new file mode 100644
index 00000000000..890b7b6783a
--- /dev/null
+++ b/textproc/p5-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 perl module for MARISA.
diff --git a/textproc/p5-marisa/Makefile b/textproc/p5-marisa/Makefile
new file mode 100644
index 00000000000..265995ac824
--- /dev/null
+++ b/textproc/p5-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= p5-${DISTNAME}
+CATEGORIES+= perl5
+
+COMMENT= MARISA perl module
+
+USE_LANGUAGES= c c++
+
+CONFIGURE_DIRS= bindings/perl
+
+PERL5_PACKLIST= auto/marisa/.packlist
+
+post-extract:
+ ${RM} ${WRKSRC}/bindings/perl/sample.pl
+
+BUILDLINK_API_DEPENDS.marisa+= marisa>=${PKGVERSION_NOREV}
+.include "../../textproc/marisa/buildlink3.mk"
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
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}
diff --git a/textproc/ruby-marisa/DESCR b/textproc/ruby-marisa/DESCR
new file mode 100644
index 00000000000..538ee469d66
--- /dev/null
+++ b/textproc/ruby-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 ruby module for MARISA.
diff --git a/textproc/ruby-marisa/Makefile b/textproc/ruby-marisa/Makefile
new file mode 100644
index 00000000000..7001500c9f2
--- /dev/null
+++ b/textproc/ruby-marisa/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2014/05/24 10:21:13 obache Exp $
+#
+
+.include "../../textproc/marisa/Makefile.common"
+
+CATEGORIES+= ruby
+
+COMMENT= MARISA ruby module
+
+USE_LANGUAGES= c c++
+
+USE_RUBY_EXTCONF= yes
+RUBY_EXTCONF_SUBDIRS= bindings/ruby
+
+BUILDLINK_API_DEPENDS.marisa+= marisa>=${PKGVERSION_NOREV}
+.include "../../textproc/marisa/buildlink3.mk"
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ruby-marisa/PLIST b/textproc/ruby-marisa/PLIST
new file mode 100644
index 00000000000..dc4bbd05d97
--- /dev/null
+++ b/textproc/ruby-marisa/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2014/05/24 10:21:13 obache Exp $
+${RUBY_VENDORARCHLIB}/marisa.${RUBY_DLEXT}