diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-03-06 20:24:10 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-03-06 20:24:10 +0000 |
commit | 07c185425d7716af435136e41cde5ddf2bce8126 (patch) | |
tree | b61bd2c6faecb2181faeeef007411c861808579a /japanese/p5-Text-MeCab | |
parent | 2d3e4190970d15cf70151643f3d924a58863f0f6 (diff) | |
download | ports-07c185425d7716af435136e41cde5ddf2bce8126.tar.gz ports-07c185425d7716af435136e41cde5ddf2bce8126.zip |
Notes
Diffstat (limited to 'japanese/p5-Text-MeCab')
-rw-r--r-- | japanese/p5-Text-MeCab/Makefile | 20 | ||||
-rw-r--r-- | japanese/p5-Text-MeCab/distinfo | 6 | ||||
-rw-r--r-- | japanese/p5-Text-MeCab/pkg-plist | 1 |
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 |