pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/namazu2 Drop dependency on p5-Text-Kakasi and...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57cb8efb1687
branches:  trunk
changeset: 530072:57cb8efb1687
user:      obache <obache%pkgsrc.org@localhost>
date:      Fri Jun 15 18:17:41 2007 +0000

description:
Drop dependency on p5-Text-Kakasi and p5-Text-ChaSen.
Bump PKGREVISION.

If you want to process Japanese, need to install any of WAKATI modules,
and configure.
See MESSAGE for more detail.

diffstat:

 textproc/namazu2/MESSAGE  |  18 ++++++++++++++----
 textproc/namazu2/Makefile |  20 +++++++++++++++-----
 2 files changed, 29 insertions(+), 9 deletions(-)

diffs (90 lines):

diff -r 0eacbb7bf894 -r 57cb8efb1687 textproc/namazu2/MESSAGE
--- a/textproc/namazu2/MESSAGE  Fri Jun 15 18:15:06 2007 +0000
+++ b/textproc/namazu2/MESSAGE  Fri Jun 15 18:17:41 2007 +0000
@@ -1,5 +1,5 @@
 ===========================================================================
-$NetBSD: MESSAGE,v 1.2 2007/05/16 12:56:48 obache Exp $
+$NetBSD: MESSAGE,v 1.3 2007/06/15 18:17:41 obache Exp $
 
 Here is general notes for namazu2 package by pkgsrc.
 
@@ -9,9 +9,19 @@
 2. if you upgrade from namazu 1.X, you need to rebuild index files
    since index file format was changed from namazu prior to 2.0.
 
-3. In order to processing Japanese, you need to set "LC_ALL", "LANG"
-   or "LC_CTYPE" environment to "ja".  Or use --indexing-lang option
-   of mknmz.
+3. In order to processing Japanese, you should install any of the following
+   WAKATI modues:
+       KAKASI  (textproc/p5-Text-Kakasi)
+       ChaSen  (textporc/p5-Text-ChaSen)
+       MeCab   (textproc/p5-mcab)
+   And specify WAKATI module in "namazurc" file or option of mknmz:
+               namazurc                mknmz
+       KAKASI  $WAKATI=$KAKASI         -k or --use-kakasi
+       ChaSen  $WAKATI=$CHASEN         -c or --use-chasen
+       MeCab   $WAKATI=$MECAB          -e or --use-mecab
+
+   Then, you need to set "LC_ALL", "LANG" or "LC_CTYPE" environment to "ja".
+   Or use --indexing-lang option of mknmz.
 
 4. In order to display Japanese message, you need to set "LANGUAGE",
    "LC_ALL", "LC_MESSAGES" or "LANG" environment to "ja".
diff -r 0eacbb7bf894 -r 57cb8efb1687 textproc/namazu2/Makefile
--- a/textproc/namazu2/Makefile Fri Jun 15 18:15:06 2007 +0000
+++ b/textproc/namazu2/Makefile Fri Jun 15 18:17:41 2007 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.34 2007/05/13 02:59:08 obache Exp $
+# $NetBSD: Makefile,v 1.35 2007/06/15 18:17:42 obache Exp $
 
 DISTNAME=      namazu-2.0.17
+PKGREVISION=   1
 CATEGORIES=    japanese textproc www
 MASTER_SITES=  http://www.namazu.org/stable/ \
                http://namazu.ipmedia.de/stable/
@@ -10,9 +11,7 @@
 COMMENT=       Full-text search system intended for easy use
 
 DEPENDS+=      p5-File-MMagic>=1.25:../../misc/p5-File-MMagic
-DEPENDS+=      p5-Text-Kakasi>=1.04:../../textproc/p5-Text-Kakasi
 DEPENDS+=      p5-nkf>=1.7:../../converters/p5-nkf
-DEPENDS+=      p5-Text-ChaSen>=1.0:../../textproc/p5-Text-ChaSen
 
 CONFLICTS+=    namazu-[0-9]*
 
@@ -27,13 +26,24 @@
 CONFIGURE_ARGS+=       --localstatedir=${DATADIR:Q} \
                        --libexecdir=${PREFIX}/libexec/cgi-bin \
                        --sysconfdir=${PKG_SYSCONFBASE:Q}
+CONFIGURE_ENV+=                KAKASI="module_kakasi"
+CONFIGURE_ENV+=                ac_cv_path_KAKASI="module_kakasi"
+CONFIGURE_ENV+=                CHASEN="module_chasen"
+CONFIGURE_ENV+=                ac_cv_path_CHASEN="module_chasen"
+CONFIGURE_ENV+=                MECAB="module_mecab"
+CONFIGURE_ENV+=                ac_cv_path_MECAB="module_mecab"
 DATADIR=               ${PREFIX}/libdata
 EXAMPLESDIR=           ${PREFIX}/share/examples/namazu
 EXAMPLES=              mknmzrc namazurc
 
+SUBST_CLASSES+=                wakati
+SUBST_STAGE.wakati=    pre-configure
+SUBST_FILES.wakati=    pl/conf.pl.in
+SUBST_SED.wakati=      -e 's|@OPT_WAKATI_DEFAULT@|none|'
+
 .include "../../mk/bsd.prefs.mk"
 
-PKG_SYSCONFSUBDIR?=    namazu
+PKG_SYSCONFSUBDIR=     namazu
 .for f in ${EXAMPLES}
 CONF_FILES+=           ${EXAMPLESDIR}/${f}     ${PKG_SYSCONFDIR}/${f}
 .endfor
@@ -44,7 +54,7 @@
        ${INSTALL_DATA_DIR} ${DATADIR}/namazu
        ${INSTALL_DATA_DIR} ${EXAMPLESDIR}
 .for f in ${EXAMPLES}
-       cd ${WRKSRC}/conf; ${INSTALL_DATA} ${f}-sample ${EXAMPLESDIR}/${f}
+       cd ${WRKSRC}/conf && ${INSTALL_DATA} ${f}-sample ${EXAMPLESDIR}/${f}
 .endfor
 
 .include "../../converters/libiconv/buildlink3.mk"



Home | Main Index | Thread Index | Old Index