aboutsummaryrefslogtreecommitdiff
path: root/textproc/senna
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2005-05-30 14:16:35 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2005-05-30 14:16:35 +0000
commit1155d39c08b9fbecabfef1207e293b5c9263591b (patch)
treec6ab778e3b171e699771372004f865da3b084b8a /textproc/senna
parenta29895e23fc8f93a1197b41fca8b57c1b0de1dd6 (diff)
downloadports-1155d39c08b9fbecabfef1207e293b5c9263591b.tar.gz
ports-1155d39c08b9fbecabfef1207e293b5c9263591b.zip
Add senna, embeddable Fulltext Search Engine (library only).
Notes
Notes: svn path=/head/; revision=136434
Diffstat (limited to 'textproc/senna')
-rw-r--r--textproc/senna/Makefile35
-rw-r--r--textproc/senna/distinfo2
-rw-r--r--textproc/senna/files/configure.ac16
-rw-r--r--textproc/senna/files/patch-configure28
-rw-r--r--textproc/senna/files/patch-configure.ac10
-rw-r--r--textproc/senna/pkg-descr8
-rw-r--r--textproc/senna/pkg-plist5
7 files changed, 104 insertions, 0 deletions
diff --git a/textproc/senna/Makefile b/textproc/senna/Makefile
new file mode 100644
index 000000000000..f1959e5d1eb6
--- /dev/null
+++ b/textproc/senna/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: Senna
+# Date created: May 1 2005
+# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= senna
+PORTVERSION= 0.${SNAPDATE}
+CATEGORIES= textproc
+MASTER_SITES= http://dev.razil.jp/archive/senna/
+DISTNAME= ${PORTNAME}-${SNAPDATE}-svn
+
+MAINTAINER= kuriyama@FreeBSD.org
+COMMENT= Embeddable Fulltext Search Engine
+
+LIB_DEPENDS= mecab-razil:${PORTSDIR}/japanese/mecab-razil
+
+USE_LIBTOOL_VER=15
+USE_GMAKE= YES
+INSTALLS_SHLIB= YES
+CONFIGURE_ARGS= --with-sennahome=${SENNA_HOME}
+CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
+MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+SNAPDATE= 20050529
+SENNA_HOME?= /var/senna
+
+post-patch:
+ cd ${WRKSRC}; \
+ ${TOUCH} -r configure.ac.orig configure.ac; \
+ ${TOUCH} -r configure.orig configure
+
+.include <bsd.port.mk>
diff --git a/textproc/senna/distinfo b/textproc/senna/distinfo
new file mode 100644
index 000000000000..fda1ed46a97b
--- /dev/null
+++ b/textproc/senna/distinfo
@@ -0,0 +1,2 @@
+MD5 (senna-20050529-svn.tar.gz) = 3a850d5b4171906e1ea2023abae2566a
+SIZE (senna-20050529-svn.tar.gz) = 332776
diff --git a/textproc/senna/files/configure.ac b/textproc/senna/files/configure.ac
new file mode 100644
index 000000000000..5d69864b1ec8
--- /dev/null
+++ b/textproc/senna/files/configure.ac
@@ -0,0 +1,16 @@
+AC_INIT([senna],[0.0],[senna@razil.jp])
+AM_INIT_AUTOMAKE([senna], 0.0)
+AM_CONFIG_HEADER(config.h)
+
+SENNA_HOME="/var/senna"
+
+AC_ARG_WITH(sennahome,
+ [ --with-sennahome=DIR Specify Senna home dictionary],SENNA_HOME="$withval")
+
+AC_PROG_CC
+AM_PROG_LIBTOOL
+AC_CONFIG_FILES([Makefile test/Makefile lib/Makefile])
+AC_SUBST(SENNA_HOME)
+AC_CHECK_LIB(mecab-razil, mecab_new3, [],[echo "No libmecab-razil found (You need a patched version, if using mecab without mecab_new3)"; exit 1])
+
+AC_OUTPUT
diff --git a/textproc/senna/files/patch-configure b/textproc/senna/files/patch-configure
new file mode 100644
index 000000000000..48379a480538
--- /dev/null
+++ b/textproc/senna/files/patch-configure
@@ -0,0 +1,28 @@
+--- configure.orig Thu May 5 20:51:43 2005
++++ configure Thu May 5 20:52:31 2005
+@@ -18635,13 +18635,13 @@
+
+
+
+-echo "$as_me:$LINENO: checking for mecab_new3 in -lmecab" >&5
+-echo $ECHO_N "checking for mecab_new3 in -lmecab... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for mecab_new3 in -lmecab-razil" >&5
++echo $ECHO_N "checking for mecab_new3 in -lmecab-razil... $ECHO_C" >&6
+ if test "${ac_cv_lib_mecab_mecab_new3+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lmecab $LIBS"
++LIBS="-lmecab-razil $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -18703,7 +18703,7 @@
+ #define HAVE_LIBMECAB 1
+ _ACEOF
+
+- LIBS="-lmecab $LIBS"
++ LIBS="-lmecab-razil $LIBS"
+
+ else
+ echo "No libmecab found (You need a patched version, if using mecab without mecab_new3)"; exit 1
diff --git a/textproc/senna/files/patch-configure.ac b/textproc/senna/files/patch-configure.ac
new file mode 100644
index 000000000000..3a58d8ec950d
--- /dev/null
+++ b/textproc/senna/files/patch-configure.ac
@@ -0,0 +1,10 @@
+--- configure.ac.orig Thu May 5 21:23:50 2005
++++ configure.ac Thu May 5 21:24:17 2005
+@@ -11,6 +11,6 @@
+ AM_PROG_LIBTOOL
+ AC_CONFIG_FILES([Makefile test/Makefile lib/Makefile])
+ AC_SUBST(SENNA_HOME)
+-AC_CHECK_LIB(mecab, mecab_new3, [],[echo "No libmecab found (You need a patched version, if using mecab without mecab_new3)"; exit 1])
++AC_CHECK_LIB(mecab-razil, mecab_new3, [],[echo "No libmecab-razil found (You need a patched version, if using mecab without mecab_new3)"; exit 1])
+
+ AC_OUTPUT
diff --git a/textproc/senna/pkg-descr b/textproc/senna/pkg-descr
new file mode 100644
index 000000000000..df90edf7414a
--- /dev/null
+++ b/textproc/senna/pkg-descr
@@ -0,0 +1,8 @@
+Senna is an embeddable fulltext search engine, which you can use in
+conjunction with various scripting languages and databases. Senna is
+an inverted index based engine, and combines the best of n-gram
+indexing and word indexing to achieve fast, precise searches. While
+senna codebase is rather compact it is scalable enough to handle large
+amounts of data and queries.
+
+WWW: http://dev.razil.jp/project/senna/?lang=en
diff --git a/textproc/senna/pkg-plist b/textproc/senna/pkg-plist
new file mode 100644
index 000000000000..751f7b6d1b3c
--- /dev/null
+++ b/textproc/senna/pkg-plist
@@ -0,0 +1,5 @@
+include/senna/senna.h
+lib/libsenna.a
+lib/libsenna.so
+lib/libsenna.so.0
+@dirrm include/senna