aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/p5-Text-MeCab
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-03-07 04:24:10 +0800
committermiwi <miwi@FreeBSD.org>2008-03-07 04:24:10 +0800
commit4ccb8862721b64c54f0210650595c6d9fbbfeba5 (patch)
tree2f36ed324c537a43844bf78eab78f7a30abd3b61 /japanese/p5-Text-MeCab
parent2beccbdca8e1a13b57530bc5d8aa6c9a5485795d (diff)
downloadfreebsd-ports-gnome-4ccb8862721b64c54f0210650595c6d9fbbfeba5.tar.gz
freebsd-ports-gnome-4ccb8862721b64c54f0210650595c6d9fbbfeba5.tar.zst
freebsd-ports-gnome-4ccb8862721b64c54f0210650595c6d9fbbfeba5.zip
- Update to 0.20004
PR: 121399 Submitted by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp> (maintainer)
Diffstat (limited to 'japanese/p5-Text-MeCab')
-rw-r--r--japanese/p5-Text-MeCab/Makefile20
-rw-r--r--japanese/p5-Text-MeCab/distinfo6
-rw-r--r--japanese/p5-Text-MeCab/pkg-plist1
3 files changed, 12 insertions, 15 deletions
diff --git a/japanese/p5-Text-MeCab/Makefile b/japanese/p5-Text-MeCab/Makefile
index eedd1ccf36e1..ea1e4ad1d35a 100644
--- a/japanese/p5-Text-MeCab/Makefile
+++ b/japanese/p5-Text-MeCab/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= Text-MeCab
-PORTVERSION= 0.17
+PORTVERSION= 0.20004
CATEGORIES= japanese textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Text
@@ -17,25 +17,21 @@ COMMENT= Alternate Interface To libmecab
LIB_DEPENDS= mecab.1:${PORTSDIR}/japanese/mecab
MAN3= Text::MeCab.3 \
+ Text::MeCab::Dict.3 \
Text::MeCab::Node.3
PERL_CONFIGURE= yes
CONFIGURE_ARGS= </dev/null
-# dictionary encoding (euc-jp, shift_jis, utf8)
-ENCODING?= euc-jp
+# dictionary encoding (euc-jp, shift_jis, utf-8)
+ENCODING?= utf-8
post-patch:
-# To prevent CCFLAGS value from being overwritten by the ports system
- @${REINPLACE_CMD} -e 's|CCFLAGS|DEFINE|g' ${WRKSRC}/Makefile.PL
-
-.if ${ENCODING} == "shift_jis"
- @${REINPLACE_CMD} -e '/my \$$encoding = /s/euc-jp/shift_jis/' \
- ${WRKSRC}/tools/probe_mecab.pl
-.elif ${ENCODING} == "utf8"
- @${REINPLACE_CMD} -e '/my \$$encoding = /s/euc-jp/utf8/' \
+ @${REINPLACE_CMD} -e "/default_encoding = /s/utf-8/${ENCODING}/" \
${WRKSRC}/tools/probe_mecab.pl
-.endif
+
+ # To prevent CCFLAGS value from being overwritten by the ports system
+ @${REINPLACE_CMD} -e "s|CCFLAGS|INC|g" ${WRKSRC}/Makefile.PL
.include <bsd.port.pre.mk>
diff --git a/japanese/p5-Text-MeCab/distinfo b/japanese/p5-Text-MeCab/distinfo
index 6e857bad07d4..952b790bcbfe 100644
--- a/japanese/p5-Text-MeCab/distinfo
+++ b/japanese/p5-Text-MeCab/distinfo
@@ -1,3 +1,3 @@
-MD5 (Text-MeCab-0.17.tar.gz) = b6ce27be20a55124db5822a2088a0e22
-SHA256 (Text-MeCab-0.17.tar.gz) = ebb7457def93b4c81b5e98c9ebf21f8fac42010085f89c3e07b66f1cf6db16b5
-SIZE (Text-MeCab-0.17.tar.gz) = 49484
+MD5 (Text-MeCab-0.20004.tar.gz) = 304468a5a07924e4575d66d3fb7be7b0
+SHA256 (Text-MeCab-0.20004.tar.gz) = 0ed0c9625a833484823f0d3f076f4a3d177a78271c979f9b7abc3a271dbd6fd0
+SIZE (Text-MeCab-0.20004.tar.gz) = 57802
diff --git a/japanese/p5-Text-MeCab/pkg-plist b/japanese/p5-Text-MeCab/pkg-plist
index 89922c6d3675..22337d1b74f4 100644
--- a/japanese/p5-Text-MeCab/pkg-plist
+++ b/japanese/p5-Text-MeCab/pkg-plist
@@ -1,5 +1,6 @@
%%SITE_PERL%%/%%PERL_ARCH%%/Text/MeCab.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Text/MeCab.xs
+%%SITE_PERL%%/%%PERL_ARCH%%/Text/MeCab/Dict.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Text/MeCab/Node.pod
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/MeCab/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/MeCab/MeCab.bs