[115161] trunk/dports/textproc/jdepp
hum at macports.org
hum at macports.org
Fri Dec 27 01:22:29 PST 2013
Revision: 115161
https://trac.macports.org/changeset/115161
Author: hum at macports.org
Date: 2013-12-27 01:22:28 -0800 (Fri, 27 Dec 2013)
Log Message:
-----------
jdepp: update to 2013-12-25; add unidic variant.
Modified Paths:
--------------
trunk/dports/textproc/jdepp/Portfile
trunk/dports/textproc/jdepp/files/patch-configure.diff
Modified: trunk/dports/textproc/jdepp/Portfile
===================================================================
--- trunk/dports/textproc/jdepp/Portfile 2013-12-27 08:31:01 UTC (rev 115160)
+++ trunk/dports/textproc/jdepp/Portfile 2013-12-27 09:22:28 UTC (rev 115161)
@@ -4,7 +4,7 @@
PortSystem 1.0
name jdepp
-version 2013-01-23
+version 2013-12-25
categories textproc japanese
maintainers hum openmaintainer
@@ -23,8 +23,8 @@
master_sites ${homepage}
checksums ${distname}${extract.suffix} \
- rmd160 cb074e8ea1648ea2e3eb1262f6d2d0e1f7a5e5c5 \
- sha256 9c6ea9e3be05d4074e9a0b427b02b284e23a8649fcc1b36f5f64f30fd43f19cf
+ rmd160 76f61e9abc67fdd6d1facdd2ca7ac8885da39208 \
+ sha256 fce5ea5afca2d0b1d3fa0addc68fec2398f163be25e008861c81ecffa171e205
patchfiles patch-configure.diff
@@ -73,31 +73,38 @@
}
}
-variant ipadic conflicts naistjdic description {Build a parser with auto POSs given by MeCab/ipadic} {
+variant ipadic conflicts naistjdic unidic description {Build a parser with auto POSs given by MeCab/ipadic} {
depends_lib-delete port:mecab-jumandic-utf8
depends_lib-append port:mecab-ipadic-utf8
configure.args-append --with-mecab-dict=IPA
}
-variant naistjdic conflicts ipadic description {Build a parser with auto POSs given by MeCab/NAIST-jdic} {
+variant naistjdic conflicts ipadic unidic description {Build a parser with auto POSs given by MeCab/NAIST-jdic} {
depends_lib-delete port:mecab-jumandic-utf8
depends_lib-append port:mecab-naist-jdic-utf8
configure.args-append --with-mecab-dict=NAIST-J
}
+variant unidic conflicts ipadic naistjdic description {Build a parser with auto POSs given by MeCab/UNIdic} {
+ depends_lib-delete port:mecab-jumandic-utf8
+ depends_lib-append port:unidic-mecab
+
+ configure.args-append --with-mecab-dict=UNI
+}
+
if {![variant_isset kyoto] && ![variant_isset kyoto_partial]} {
default_variants +knbc
}
post-destroot {
- set doc_dir ${destroot}${prefix}/share/doc/${name}
- file mkdir ${doc_dir}
+ set docdir ${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} \
- AUTHORS COPYING GPL LGPL README TODO \
- ${doc_dir}
+ AUTHORS COPYING GPL LGPL README \
+ ${destroot}${docdir}
}
livecheck.type regex
-livecheck.regex ${name}-(\\d+-\\d+-\\d+)\\.
+livecheck.regex "${name}-(\\d+(?:\\-\\d+)*)${extract.suffix}"
Modified: trunk/dports/textproc/jdepp/files/patch-configure.diff
===================================================================
--- trunk/dports/textproc/jdepp/files/patch-configure.diff 2013-12-27 08:31:01 UTC (rev 115160)
+++ trunk/dports/textproc/jdepp/files/patch-configure.diff 2013-12-27 09:22:28 UTC (rev 115161)
@@ -1,6 +1,6 @@
---- configure.orig 2013-01-23 19:29:15.000000000 +0900
-+++ configure 2013-01-26 12:51:43.000000000 +0900
-@@ -5685,7 +5685,7 @@
+--- configure.orig 2013-12-25 13:52:42.000000000 +0900
++++ configure 2013-12-27 17:48:54.000000000 +0900
+@@ -5798,7 +5798,7 @@
$as_echo "#define USE_MECAB 1" >>confdefs.h
@@ -9,7 +9,7 @@
if ! test -e $MECAB_DICT; then :
as_fn_error $? "\"${MECAB_DICT}\" not found" "$LINENO" 5
fi
-@@ -5762,7 +5762,7 @@
+@@ -5900,7 +5900,7 @@
$as_echo "#define USE_AS_STANDALONE 1" >>confdefs.h
@@ -18,3 +18,23 @@
JDEPP_CPPFLAGS+=" -DMECAB_DICT=\\\"${MECAB_DICT}\\\""
JDEPP_LDFLAGS+=" -lmecab"
else
+--- configure.ac.orig 2013-12-25 13:52:33.000000000 +0900
++++ configure.ac 2013-12-27 17:48:54.000000000 +0900
+@@ -140,7 +140,7 @@
+ AS_IF([test "x$MECAB_CONFIG" = "xno"],
+ [AC_MSG_ERROR(cannot find executable mecab-config: ${MECAB_CONFIG})])
+ AC_DEFINE([USE_MECAB], [1], [MeCab as morphological analyzer])
+- MECAB_DICT=`$MECAB_CONFIG --dicdir`/`echo $DICT_ID | tr "A-Z" "a-z"`dic
++ MECAB_DICT=`$MECAB_CONFIG --dicdir`/`echo $DICT_ID | tr "A-Z" "a-z"`dic-utf8
+ AS_IF([! test -e $MECAB_DICT],
+ [AC_MSG_ERROR("${MECAB_DICT}" not found)])
+ if [test "$DICT_ID" = "UNI"]; then
+@@ -197,7 +197,7 @@
+ if [test "x$enable_standalone" != "xno"]; then
+ if [test "$POS_TAGGER_ID" = "mecab"]; then
+ AC_DEFINE([USE_AS_STANDALONE], [1], [standalone parser])
+- MECAB_DICT=`$MECAB_CONFIG --dicdir`/`echo $DICT_ID | tr "A-Z" "a-z"`dic
++ MECAB_DICT=`$MECAB_CONFIG --dicdir`/`echo $DICT_ID | tr "A-Z" "a-z"`dic-utf8
+ JDEPP_CPPFLAGS+=" -DMECAB_DICT=\\\"${MECAB_DICT}\\\""
+ JDEPP_LDFLAGS+=" -lmecab"
+ else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131227/384b5243/attachment.html>
More information about the macports-changes
mailing list