diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2005-05-30 22:16:35 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2005-05-30 22:16:35 +0800 |
commit | f7c0849a79cb9ad1a6d6bb9e7fa04cf8dd87576c (patch) | |
tree | e7add2c771aaf849e851a68fe7ec694de3d1240f /textproc/senna | |
parent | 688e6ff9d65fd7c79f77815682d5fb244fb8d0ac (diff) | |
download | freebsd-ports-gnome-f7c0849a79cb9ad1a6d6bb9e7fa04cf8dd87576c.tar.gz freebsd-ports-gnome-f7c0849a79cb9ad1a6d6bb9e7fa04cf8dd87576c.tar.zst freebsd-ports-gnome-f7c0849a79cb9ad1a6d6bb9e7fa04cf8dd87576c.zip |
Add senna, embeddable Fulltext Search Engine (library only).
Diffstat (limited to 'textproc/senna')
-rw-r--r-- | textproc/senna/Makefile | 35 | ||||
-rw-r--r-- | textproc/senna/distinfo | 2 | ||||
-rw-r--r-- | textproc/senna/files/configure.ac | 16 | ||||
-rw-r--r-- | textproc/senna/files/patch-configure | 28 | ||||
-rw-r--r-- | textproc/senna/files/patch-configure.ac | 10 | ||||
-rw-r--r-- | textproc/senna/pkg-descr | 8 | ||||
-rw-r--r-- | textproc/senna/pkg-plist | 5 |
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 |