rast stable port information

Package: rast
Version: 0.3.1
Revision: 1
Epoch: 1
Description: Full-text search system
License: BSD
Maintainer: None

BuildDepends: <<
autoconf2.6,
automake1.11,
db48-aes | db48,
file-dev,
fink-package-precedence,
libapr.0-dev,
libaprutil.0-dev,
libiconv-dev,
libtool2,
mecab-dev,
nkf
<<
Depends: <<
%n-shlibs (= %e:%v-%r),
file-shlibs,
libapr.0-shlibs,
libaprutil.0-shlibs,
db48-aes-shlibs | db48-shlibs,
libiconv,
netpbm10-shlibs
<<
GCC: 4.0

Source: http://projects.netlab.jp/rast/archives/%n-%v.tar.bz2
Source-MD5: baa52511e6c9eb838ed80bcc22bf7323

PatchFile: %n.patch
PatchFile-MD5: 4ac841a5704f58f186913bbd48f4f6e0
PatchScript: <<
%{default_script}
perl -pi -e 's/-l(rast\S*)/lib\1.la/g' `find . -name Makefile.am`
perl -pi -e 's/-I \$/-I\$/g' `find . -name Makefile.am`
touch NEWS README AUTHORS ChangeLog
<<

ConfigureParams: <<
--mandir=%p/share/man \
--disable-static \
--with-apr-config=%p/bin/apr-1-config \
--with-apu-config=%p/bin/apu-1-config \
--with-db-includes="-I%p/include/db4" --with-db-libs="-ldb-4.8" \
--without-icu-config --without-xmlrpc-c-config \
--without-ruby \
--with-default-encoding=utf-8
<<
CompileScript: <<
autoreconf -fi
./configure %c
make
fink-package-precedence --prohibit-bdep=%n-dev .
<<

InstallScript: make install DESTDIR=%d
DocFiles: COPYING README.en README.ja

SplitOff: <<
Package: %N-shlibs
Depends: <<
db48-aes-shlibs | db48-shlibs,
file-shlibs,
libiconv,
libapr.0-shlibs,
libaprutil.0-shlibs,
mecab-shlibs
<<
Files: <<
lib/librast.1.dylib
lib/rast
<<
Shlibs: <<
%p/lib/librast.1.dylib 2.0.0 %n (>= 0.31-1)
<<
DocFiles: COPYING README.en README.ja
<<

SplitOff2: <<
Package: %N-dev
Depends: %N-shlibs (= %e:%v-%r)
Replaces: %N (<< 0.31-2)
BuildDependsOnly: true
Files: <<
include
lib/librast.la
lib/librast.dylib
share/aclocal
<<
DocFiles: COPYING README.en README.ja
<<

Homepage: http://projects.netlab.jp/rast/
DescPackaging: <<
dmacks (2011-01-18, 1:0.3.1-1) use upstream versioning, fix
autoconf linking against/dependency-tracking of build-dir
libraries, pendantic fix of -I compiler syntax

mecab-config propagates -lstdc++ so may as well tag here GCC
even though no c++ used here.
<<
DescPort: <<
ToDo: splitoffs (xmlrpc-server, cgi, filters)

dmacks (2008-09-04, 0.31-1003) fix APR_RING_SENTINEL parameter
in local_db.c to match other uses
<<

rast stable port .patch

diff -Nurd -x'*~' rast-0.3.1.orig/src/Makefile.am rast-0.3.1/src/Makefile.am
--- rast-0.3.1.orig/src/Makefile.am 2005-09-15 04:54:03.000000000 -0400
+++ rast-0.3.1/src/Makefile.am 2012-01-18 11:28:30.000000000 -0500
@@ -47,7 +47,7 @@
librast_la_CFLAGS = $(APR_INCLUDES) $(APU_INCLUDES) $(DB_INCLUDES) \
$(XMLRPC_LIBWWW_CLIENT_CFLAGS)
librast_la_LIBADD = $(APR_LIBS_LIBTOOL) $(APU_LIBS_LIBTOOL) \
- $(DB_LIBS) $(LIBM) -lmagic
+ $(DB_LIBS) $(LIBM) -lmagic -liconv
librast_CURRENT = 1
librast_REVISION = 0
librast_AGE = 0
diff -Nurd -x'*~' rast-0.3.1.orig/src/local_db.c rast-0.3.1/src/local_db.c
--- rast-0.3.1.orig/src/local_db.c 2005-09-15 06:02:24.000000000 -0400
+++ rast-0.3.1/src/local_db.c 2012-01-18 11:28:15.000000000 -0500
@@ -2111,7 +2111,7 @@

encoding_module = docs[i]->db->encoding_module;
tf = APR_RING_FIRST(docs[i]->terms);
- if (tf == APR_RING_SENTINEL(&docs[i]->terms,
+ if (tf == APR_RING_SENTINEL(docs[i]->terms,
rast_term_frequency_t, link)) {
error = get_summary(pool, encoding_module,
summary, summary_nbytes,

rast _unstable_ port .patch