[113819] trunk/dports/textproc
hum at macports.org
hum at macports.org
Sun Nov 24 03:19:24 PST 2013
Revision: 113819
https://trac.macports.org/changeset/113819
Author: hum at macports.org
Date: 2013-11-24 03:19:24 -0800 (Sun, 24 Nov 2013)
Log Message:
-----------
mecab-jumandic: update to 7.0-20130310; define subports for utf8 and sjis in the Portfile; delete mecab-jumandic-utf8 and mecab-jumandic-sjis; clean up livecheck; update homepage and maintainers.
Modified Paths:
--------------
trunk/dports/textproc/mecab-jumandic/Portfile
Removed Paths:
-------------
trunk/dports/textproc/mecab-jumandic-sjis/
trunk/dports/textproc/mecab-jumandic-utf8/
Modified: trunk/dports/textproc/mecab-jumandic/Portfile
===================================================================
--- trunk/dports/textproc/mecab-jumandic/Portfile 2013-11-24 11:13:36 UTC (rev 113818)
+++ trunk/dports/textproc/mecab-jumandic/Portfile 2013-11-24 11:19:24 UTC (rev 113819)
@@ -4,31 +4,58 @@
PortSystem 1.0
set dicname jumandic
-set encoding eucjp
name mecab-${dicname}
-version 5.1-20070304
+version 7.0-20130310
categories textproc japanese
-maintainers hum gmail.com:rsky0711 openmaintainer
+maintainers hum openmaintainer
+set encoding eucjp
+set nkf_encoding e
+conflicts mecab-${dicname}-${encoding}
+
+subport mecab-${dicname}-sjis {
+ set encoding sjis
+ set nkf_encoding s
+ livecheck.type none
+}
+
+subport mecab-${dicname}-utf8 {
+ set encoding utf8
+ livecheck.type none
+}
+
description ${dicname} of ${encoding} encoding for MeCab
long_description ${description}
-homepage http://mecab.sourceforge.net/
+homepage https://code.google.com/p/mecab/
platforms darwin
license BSD
dist_subdir mecab
-master_sites sourceforge:mecab
-checksums rmd160 b062285c01b81f497f2f0d9a968917142c269825 \
- sha256 042614dcc04afc68f1cfa2a32f353dc31b06f0674ebab3bfa8e67472709fe657
+master_sites googlecode:mecab
+checksums rmd160 3f5009263fcfa609c3f19f0e64b8c5f8a1b3afbe \
+ sha256 eaf216758edee9a159bc3d02507007318686b9537943268c4565cc1f9ef07f15
depends_lib port:mecab-base
supported_archs noarch
+
+post-extract {
+ # ignore invalid entries in AuxV.csv.
+ file rename ${worksrcpath}/AuxV.csv ${worksrcpath}/AuxV.csv.orig
+ system -W ${worksrcpath} "head -n 587 AuxV.csv.orig > AuxV.csv"
+ # convert character encoding of dic and def files if the target is other than utf8.
+ if {${encoding} != "utf8"} {
+ depends_build-append port:nkf
+ foreach f [glob ${worksrcpath}/*.csv ${worksrcpath}/*.def] {
+ system "nkf --in-place -${nkf_encoding} ${f}"
+ }
+ reinplace -locale C -W ${worksrcpath} "s|utf-8|${encoding}|" Makefile.in
+ reinplace -locale C -W ${worksrcpath} "s|charset: utf8|charset: ${encoding}|" model.def
+ }
+}
+
configure.args --with-mecab-config=${prefix}/bin/mecab-config \
+ --with-charset=${encoding} \
--with-dicdir=${prefix}/lib/mecab/dic/${dicname}-${encoding}
-
-livecheck.type regex
-livecheck.url http://sourceforge.net/projects/mecab/files/mecab-${dicname}
-livecheck.regex {(\d+\.\d+-\d+)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131124/d04f8471/attachment.html>
More information about the macports-changes
mailing list