aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/rast
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2006-01-30 21:53:33 +0800
committerkuriyama <kuriyama@FreeBSD.org>2006-01-30 21:53:33 +0800
commitdf53c137c9cd8de8e2e74a817750b5b776c4eb7c (patch)
treeaf7896d6be004a74eef5c6ddf4fad6dda1bb1d85 /textproc/rast
parent9b0b707bbf7d29d15c4f2db61bccd41eb70ba134 (diff)
downloadfreebsd-ports-gnome-df53c137c9cd8de8e2e74a817750b5b776c4eb7c.tar.gz
freebsd-ports-gnome-df53c137c9cd8de8e2e74a817750b5b776c4eb7c.tar.zst
freebsd-ports-gnome-df53c137c9cd8de8e2e74a817750b5b776c4eb7c.zip
Add rast 0.3.1, full-text search system using N-gram.
Diffstat (limited to 'textproc/rast')
-rw-r--r--textproc/rast/Makefile74
-rw-r--r--textproc/rast/distinfo3
-rw-r--r--textproc/rast/files/patch-merger.c18
-rw-r--r--textproc/rast/pkg-descr3
-rw-r--r--textproc/rast/pkg-plist93
5 files changed, 191 insertions, 0 deletions
diff --git a/textproc/rast/Makefile b/textproc/rast/Makefile
new file mode 100644
index 000000000000..fc446636c0ee
--- /dev/null
+++ b/textproc/rast/Makefile
@@ -0,0 +1,74 @@
+# New ports collection makefile for: rast
+# Date created: Jan 2 2006
+# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= rast
+PORTVERSION= 0.3.1
+CATEGORIES= textproc
+MASTER_SITES= http://projects.netlab.jp/rast/archives/ \
+ http://dist.bsdlab.org/
+
+MAINTAINER= kuriyama@FreeBSD.org
+COMMENT= Full-text search system using N-gram
+
+BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
+LIB_DEPENDS= apr-1:${PORTSDIR}/devel/apr
+
+USE_BZIP2= YES
+USE_BDB= 42
+GNU_CONFIGURE= YES
+USE_GMAKE= YES
+USE_RUBY= YES
+CONFIGURE_ARGS= --with-apr-config=${LOCALBASE}/bin/apr-1-config \
+ --with-apu-config=${LOCALBASE}/bin/apu-1-config \
+ --with-db-includes="-I${LOCALBASE}/include/db42" \
+ --with-db-libs="-L${LOCALBASE}/lib/db42 -ldb-4.2" \
+ --with-ruby=${LOCALBASE}/bin/ruby \
+ --with-default-encoding=${DEFAULT_ENCODING} \
+ --with-filter-moduledir=${PREFIX}/lib/rast/filters
+CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" LDFLAGS="-lz"
+INSTALLS_SHLIB= YES
+
+MAN1= rast-config.1 rast-create.1 rast-delete.1 rast-optimize.1 \
+ rast-register.1 rast-search.1
+
+.if defined(WITH_ICU)
+CONFIGURE_ARGS+= --with-icu-config=${LOCALBASE}/bin/icu-config
+BUILD_DEPENDS+= icu-config:${PORTSDIR}/devel/icu
+DEFAULT_ENCODING= utf8
+PLIST_SUB+= WITH_UTF8=""
+.else
+CONFIGURE_ARGS+= --without-icu-config
+PLIST_SUB+= WITH_UTF8="@comment "
+.endif
+
+.if defined(WITH_MECAB)
+CONFIGURE_ARGS+= --with-mecab-config=${LOCALBASE}/bin/mecab-config
+BUILD_DEPENDS+= mecab-config:${PORTSDIR}/japanese/mecab
+PLIST_SUB+= WITH_MECAB_EUC_JP=""
+.else
+CONFIGURE_ARGS+= --without-mecab-config
+PLIST_SUB+= WITH_MECAB_EUC_JP="@comment "
+.endif
+
+.if defined(WITH_XMLRPC_C)
+CONFIGURE_ARGS+= --with-xmlrpc-c-config=${LOCALBASE}/bin/xmlrpc-c-config
+BUILD_DEPENDS+= xmlrpc-c-config:${PORTSDIR}/net/xmlrpc-c
+PLIST_SUB+= WITH_XMLRPC_C=""
+MAN1+= rast_xmlrpc_server_abyss.1
+.else
+CONFIGURE_ARGS+= --without-xmlrpc-c-config
+PLIST_SUB+= WITH_XMLRPC_C="@comment "
+.endif
+
+# For 4.x systems.
+.if !exists(/usr/include/magic.h)
+BUILD_DEPENDS+= ${LOCALBASE}/include/magic.h:${PORTSDIR}/sysutils/file
+.endif
+
+DEFAULT_ENCODING?= euc_jp
+
+.include <bsd.port.mk>
diff --git a/textproc/rast/distinfo b/textproc/rast/distinfo
new file mode 100644
index 000000000000..f416b3d81f13
--- /dev/null
+++ b/textproc/rast/distinfo
@@ -0,0 +1,3 @@
+MD5 (rast-0.3.1.tar.bz2) = baa52511e6c9eb838ed80bcc22bf7323
+SHA256 (rast-0.3.1.tar.bz2) = 4330b3cae5a75d122dcdc9af84471ae2694bc6b78ac8cf5954216b4153aa534a
+SIZE (rast-0.3.1.tar.bz2) = 719583
diff --git a/textproc/rast/files/patch-merger.c b/textproc/rast/files/patch-merger.c
new file mode 100644
index 000000000000..27db526a2e10
--- /dev/null
+++ b/textproc/rast/files/patch-merger.c
@@ -0,0 +1,18 @@
+--- src/merger.c.orig Wed Jan 4 21:41:15 2006
++++ src/merger.c Wed Jan 4 21:41:34 2006
+@@ -48,6 +48,7 @@
+ }
+ }
+
++ {
+ rast_merger_t *db = (rast_merger_t *)
+ apr_palloc(pool, sizeof(rast_merger_t));
+ *base = (rast_db_t *) db;
+@@ -58,6 +59,7 @@
+ db->merged_dbs = merge_dbs;
+ db->properties = NULL;
+ db->num_properties = 0;
++ }
+ return RAST_OK;
+ }
+
diff --git a/textproc/rast/pkg-descr b/textproc/rast/pkg-descr
new file mode 100644
index 000000000000..cfbff894e08f
--- /dev/null
+++ b/textproc/rast/pkg-descr
@@ -0,0 +1,3 @@
+Rast is a full-text search system.
+
+WWW: http://projects.netlab.jp/rast/
diff --git a/textproc/rast/pkg-plist b/textproc/rast/pkg-plist
new file mode 100644
index 000000000000..36558b1567e1
--- /dev/null
+++ b/textproc/rast/pkg-plist
@@ -0,0 +1,93 @@
+bin/rast
+bin/rast-cmd
+bin/rast-config
+bin/rast-create
+bin/rast-delete
+bin/rast-optimize
+bin/rast-register
+bin/rast-search
+bin/rast-stat
+%%WITH_XMLRPC_C%%bin/rast-xmlrpc-server-abyss
+%%WITH_XMLRPC_C%%bin/rast-xmlrpc-server.cgi
+include/rast/config.h
+include/rast/db.h
+include/rast/encoding.h
+include/rast/error.h
+include/rast/filter.h
+include/rast/local_db.h
+include/rast/macros.h
+include/rast/merger.h
+include/rast/pack.h
+include/rast/property.h
+include/rast/query.h
+include/rast/rast.h
+include/rast/result.h
+include/rast/string.h
+include/rast/text_index.h
+include/rast/types.h
+include/rast/util.h
+%%WITH_XMLRPC_C%%include/rast/xmlrpc_client.h
+lib/librast.a
+lib/librast.la
+lib/librast.so
+lib/librast.so.1
+lib/librast_ruby.a
+lib/librast_ruby.la
+lib/librast_ruby.so
+lib/librast_ruby.so.0
+%%WITH_XMLRPC_C%%lib/librast_xmlrpc_client.a
+%%WITH_XMLRPC_C%%lib/librast_xmlrpc_client.la
+%%WITH_XMLRPC_C%%lib/librast_xmlrpc_client.so
+%%WITH_XMLRPC_C%%lib/librast_xmlrpc_client.so.1
+%%WITH_XMLRPC_C%%lib/librast_xmlrpc_server.a
+%%WITH_XMLRPC_C%%lib/librast_xmlrpc_server.la
+%%WITH_XMLRPC_C%%lib/librast_xmlrpc_server.so
+%%WITH_XMLRPC_C%%lib/librast_xmlrpc_server.so.1
+lib/rast/encodings/euc_jp.a
+lib/rast/encodings/euc_jp.la
+lib/rast/encodings/euc_jp.so
+%%WITH_MECAB_EUC_JP%%lib/rast/encodings/mecab_euc_jp.a
+%%WITH_MECAB_EUC_JP%%lib/rast/encodings/mecab_euc_jp.la
+%%WITH_MECAB_EUC_JP%%lib/rast/encodings/mecab_euc_jp.so
+%%WITH_UTF8%%lib/rast/encodings/utf8.a
+%%WITH_UTF8%%lib/rast/encodings/utf8.la
+%%WITH_UTF8%%lib/rast/encodings/utf8.so
+lib/rast/filters/bzip2.a
+lib/rast/filters/bzip2.la
+lib/rast/filters/bzip2.so
+lib/rast/filters/combine_lineend_hyphen.a
+lib/rast/filters/combine_lineend_hyphen.la
+lib/rast/filters/combine_lineend_hyphen.so
+lib/rast/filters/gzip.a
+lib/rast/filters/gzip.la
+lib/rast/filters/gzip.so
+lib/rast/filters/html.a
+lib/rast/filters/html.la
+lib/rast/filters/html.so
+lib/rast/filters/ruby/calc.rb
+lib/rast/filters/ruby/combine-lineend-japanese.rb
+lib/rast/filters/ruby/excel.rb
+lib/rast/filters/ruby/html.rb
+lib/rast/filters/ruby/impress.rb
+lib/rast/filters/ruby/mp3.rb
+lib/rast/filters/ruby/msoffice-property.rb
+lib/rast/filters/ruby/msword.rb
+lib/rast/filters/ruby/pdf.rb
+lib/rast/filters/ruby/postscript.rb
+lib/rast/filters/ruby/powerpoint.rb
+lib/rast/filters/ruby/read-buckets-to-buffer.rb
+lib/rast/filters/ruby/read-buckets-to-file.rb
+lib/rast/filters/ruby/rfc822.rb
+lib/rast/filters/ruby/tar.rb
+lib/rast/filters/ruby/writer.rb
+lib/rast/filters/ruby/zip.rb
+lib/rast/filters/ruby_wrapper.a
+lib/rast/filters/ruby_wrapper.la
+lib/rast/filters/ruby_wrapper.so
+%%RUBY_SITEARCHLIBDIR%%/rast.so
+share/aclocal/rast.m4
+@dirrm include/rast
+@dirrm lib/rast/encodings
+@dirrm lib/rast/filters/ruby
+@dirrm lib/rast/filters
+@dirrm lib/rast