[113836] trunk/dports/textproc
hum at macports.org
hum at macports.org
Sun Nov 24 08:26:24 PST 2013
Revision: 113836
https://trac.macports.org/changeset/113836
Author: hum at macports.org
Date: 2013-11-24 08:26:24 -0800 (Sun, 24 Nov 2013)
Log Message:
-----------
mecab: define subports for sjis and utf8; delete mecab-sjis and mecab-utf8; update maintainers.
Modified Paths:
--------------
trunk/dports/textproc/mecab/Portfile
Removed Paths:
-------------
trunk/dports/textproc/mecab-sjis/
trunk/dports/textproc/mecab-utf8/
Modified: trunk/dports/textproc/mecab/Portfile
===================================================================
--- trunk/dports/textproc/mecab/Portfile 2013-11-24 16:24:11 UTC (rev 113835)
+++ trunk/dports/textproc/mecab/Portfile 2013-11-24 16:26:24 UTC (rev 113836)
@@ -3,12 +3,25 @@
PortSystem 1.0
-set encoding eucjp
name mecab
version 0.996
categories textproc japanese
-maintainers hum gmail.com:rsky0711 openmaintainer
+maintainers hum openmaintainer
+set encoding eucjp
+
+subport mecab-sjis {
+ set encoding sjis
+ conflicts mecab mecab-utf8
+ livecheck.type none
+}
+
+subport mecab-utf8 {
+ set encoding utf8
+ conflicts mecab mecab-sjis
+ livecheck.type none
+}
+
description yet another part-of-speech and morphological analyzer
long_description MeCab is ${description}. \
This port depends on MeCab base analyzer and a Japanese \
@@ -37,19 +50,38 @@
variant ipadic conflicts jumandic naistjdic description {Use ipadic} {
set dicname ipadic
- depends_lib-append port:mecab-${dicname}
+ if {${encoding} == "eucjp"} {
+ depends_lib-append port:mecab-${dicname}
+ } else {
+ depends_lib-append port:mecab-${dicname}-${encoding}
+ }
}
variant jumandic conflicts ipadic naistjdic description {Use jumandic} {
set dicname jumandic
- depends_lib-append port:mecab-${dicname}
+ if {${encoding} == "eucjp"} {
+ depends_lib-append port:mecab-${dicname}
+ } else {
+ depends_lib-append port:mecab-${dicname}-${encoding}
+ }
}
variant naistjdic conflicts ipadic jumandic description {Use naist-jdic} {
set dicname naist-jdic
- depends_lib-append port:mecab-${dicname}
+ if {${encoding} == "eucjp"} {
+ depends_lib-append port:mecab-${dicname}
+ } else {
+ depends_lib-append port:mecab-${dicname}-${encoding}
+ }
}
+if {${encoding} == "utf8"} {
+ variant unidic conflicts ipadic jumandic naistjdic description {Use unidic} {
+ set dicname unidic
+ depends_lib-append port:unidic-mecab
+ }
+}
+
variant sjis description {Deprecated, install mecab-sjis instead} {
ui_msg "Deprecated: please install 'mecab-sjis' instead of 'mecab +sjis'."
ui_msg "Note: upgrading mecab will be completed if mecab-sjis is successfully installed, although the process fails due to a conflict."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131124/5a8d33ed/attachment.html>
More information about the macports-changes
mailing list