summaryrefslogtreecommitdiffstats
path: root/databases/namazu2
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-10-21 20:27:13 +0000
committerknu <knu@FreeBSD.org>2001-10-21 20:27:13 +0000
commit4215bd367f52ae2d720abfe81161594c019c3d61 (patch)
treebff2d63cf36c88ded349bc520c4574b919c86a82 /databases/namazu2
parent783e4447a70a42d943511792c5b8df5f65574610 (diff)
downloadFreeBSD-ports-4215bd367f52ae2d720abfe81161594c019c3d61.zip
FreeBSD-ports-4215bd367f52ae2d720abfe81161594c019c3d61.tar.gz
- Introduce namazu to the world, after a repocory from the japanese
category. Namazu is a full-text search system intended for easy use. Not only it works as a CGI program for a small or medium scale Web search engine, but also works as a personal use search system for your pile of emails. (The Japanese word `Namazu' means `catfish' in English) - Remove the Japanese specific dependencies. - Add a patch to provide a better configuration example.
Diffstat (limited to 'databases/namazu2')
-rw-r--r--databases/namazu2/Makefile16
-rw-r--r--databases/namazu2/files/patch-pl::conf.pl.in33
2 files changed, 36 insertions, 13 deletions
diff --git a/databases/namazu2/Makefile b/databases/namazu2/Makefile
index 554e516..66d1032 100644
--- a/databases/namazu2/Makefile
+++ b/databases/namazu2/Makefile
@@ -8,19 +8,15 @@
PORTNAME= namazu
PORTVERSION= 2.0.7
PORTREVISION= 1
-CATEGORIES= japanese databases www textproc
+CATEGORIES+= databases www textproc
MASTER_SITES= http://www.namazu.org/stable/
PKGNAMESUFFIX= 2
MAINTAINER= knu@FreeBSD.org
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
-BUILD_DEPENDS= ${PM_BASE}/File/MMagic.pm:${PORTSDIR}/devel/p5-File-MMagic \
- ${PM_BASE}/${PERL_ARCH}/NKF.pm:${PORTSDIR}/japanese/p5-nkf \
- ${DEPEND_WAKATI}
-RUN_DEPENDS= ${PM_BASE}/File/MMagic.pm:${PORTSDIR}/devel/p5-File-MMagic \
- ${PM_BASE}/${PERL_ARCH}/NKF.pm:${PORTSDIR}/japanese/p5-nkf \
- ${DEPEND_WAKATI}
+BUILD_DEPENDS= ${PM_BASE}/File/MMagic.pm:${PORTSDIR}/devel/p5-File-MMagic
+RUN_DEPENDS= ${PM_BASE}/File/MMagic.pm:${PORTSDIR}/devel/p5-File-MMagic
# xlHtml:${PORTSDIR}/textproc/xlhtml \
# wvHtml:${PORTSDIR}/textproc/wv
@@ -32,12 +28,6 @@ GNU_CONFIGURE= yes
MAN1= namazu.1 mknmz.1
INSTALLS_SHLIB= yes
-.if defined(WITH_CHASEN)
-DEPEND_WAKATI= ${PM_BASE}/${PERL_ARCH}/Text/ChaSen.pm:${PORTSDIR}/japanese/p5-Text-ChaSen
-.else
-DEPEND_WAKATI= ${PM_BASE}/${PERL_ARCH}/Text/Kakasi.pm:${PORTSDIR}/japanese/p5-Text-Kakasi
-.endif
-
post-configure:
${PERL} -i~ -pe 's,^(LIBS *= *)(.*),$$1 -L${LOCALBASE}/lib -lintl $$2\n,' ${WRKSRC}/nmz/Makefile
diff --git a/databases/namazu2/files/patch-pl::conf.pl.in b/databases/namazu2/files/patch-pl::conf.pl.in
new file mode 100644
index 0000000..ba8df87
--- /dev/null
+++ b/databases/namazu2/files/patch-pl::conf.pl.in
@@ -0,0 +1,33 @@
+--- pl/conf.pl.in.orig Thu Aug 23 17:19:52 2001
++++ pl/conf.pl.in Sat Oct 13 05:34:48 2001
+@@ -173,17 +173,17 @@
+ #
+ # Network Kanji Filter nkf v1.62 or later
+ #
+-$NKF = "@NKF@";
++$NKF = "module_nkf";
+
+ #
+ # KAKASI
+ #
+-$KAKASI = "@DO_KAKASI@";
++$KAKASI = "module_kakasi";
+
+ #
+ # ChaSen 1.51 or later (simple wakatigaki)
+ #
+-$CHASEN = "@DO_CHASEN@";
++$CHASEN = "module_chasen";
+
+ #
+ # ChaSen 1.51 or later (with noun words extraction)
+@@ -193,7 +193,8 @@
+ #
+ # Default Japanese processer: KAKASI or ChaSen.
+ #
+-$WAKATI = $@OPT_WAKATI_DEFAULT@;
++$WAKATI = $KAKASI;
++$WAKATI = $CHASEN;
+
+
+ #===================================================================
OpenPOWER on IntegriCloud