[115204] trunk/dports/textproc/jdepp
hum at macports.org
hum at macports.org
Fri Dec 27 22:25:29 PST 2013
Revision: 115204
https://trac.macports.org/changeset/115204
Author: hum at macports.org
Date: 2013-12-27 22:25:29 -0800 (Fri, 27 Dec 2013)
Log Message:
-----------
jdepp: remove patch for configure.ac; specify KNBC_CORPUS_DIR to the path of KNBC port.
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-28 03:52:59 UTC (rev 115203)
+++ trunk/dports/textproc/jdepp/Portfile 2013-12-28 06:25:29 UTC (rev 115204)
@@ -26,11 +26,16 @@
rmd160 76f61e9abc67fdd6d1facdd2ca7ac8885da39208 \
sha256 fce5ea5afca2d0b1d3fa0addc68fec2398f163be25e008861c81ecffa171e205
-patchfiles patch-configure.diff
-
depends_lib port:mecab-base \
port:mecab-jumandic-utf8
+patchfiles patch-configure.diff
+
+post-patch {
+ reinplace "s|KNBC_CORPUS_DIR=\${PWD}/KNBC_v1.0_090925|KNBC_CORPUS_DIR=${prefix}/share/KNBC|" \
+ ${worksrcpath}/configure
+}
+
configure.args --enable-standalone
variant knbc conflicts kyoto kyoto_partial description {Train a parser wht KNBC (Kyoto-University and NTT Blog Corpus)} {
Modified: trunk/dports/textproc/jdepp/files/patch-configure.diff
===================================================================
--- trunk/dports/textproc/jdepp/files/patch-configure.diff 2013-12-28 03:52:59 UTC (rev 115203)
+++ trunk/dports/textproc/jdepp/files/patch-configure.diff 2013-12-28 06:25:29 UTC (rev 115204)
@@ -18,23 +18,3 @@
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/d17a67cb/attachment.html>
More information about the macports-changes
mailing list