[85053] users/hum/textproc
hum at macports.org
hum at macports.org
Sat Oct 8 06:53:44 PDT 2011
Revision: 85053
http://trac.macports.org/changeset/85053
Author: hum at macports.org
Date: 2011-10-08 06:53:39 -0700 (Sat, 08 Oct 2011)
Log Message:
-----------
enhence chasen family splitting chasen port into chasen meta, chasen-base and chasen dictionaries.
Added Paths:
-----------
users/hum/textproc/chasen/
users/hum/textproc/chasen/Portfile
users/hum/textproc/chasen/files/
users/hum/textproc/chasen/files/chasen.in
users/hum/textproc/chasen-base/
users/hum/textproc/chasen-base/Portfile
users/hum/textproc/chasen-base/files/
users/hum/textproc/chasen-base/files/patch-configure.diff
users/hum/textproc/chasen-ipadic/
users/hum/textproc/chasen-ipadic/Portfile
users/hum/textproc/chasen-ipadic-sjis/
users/hum/textproc/chasen-ipadic-sjis/Portfile
users/hum/textproc/chasen-ipadic-utf8/
users/hum/textproc/chasen-ipadic-utf8/Portfile
users/hum/textproc/chasen-naist-jdic/
users/hum/textproc/chasen-naist-jdic/Portfile
users/hum/textproc/chasen-naist-jdic-sjis/
users/hum/textproc/chasen-naist-jdic-sjis/Portfile
users/hum/textproc/chasen-naist-jdic-utf8/
users/hum/textproc/chasen-naist-jdic-utf8/Portfile
Added: users/hum/textproc/chasen/Portfile
===================================================================
--- users/hum/textproc/chasen/Portfile (rev 0)
+++ users/hum/textproc/chasen/Portfile 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,97 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name chasen
+version 2.4.4
+categories textproc japanese
+platforms darwin
+maintainers takanori hum openmaintainer
+license BSD
+
+homepage http://chasen-legacy.sourceforge.jp/
+description Japanese morphological analysis system
+long_description ChaSen is a tool to analyze a text according to a set of dictionaries that \
+ specifies grammer, part of speech of words, and so on.
+ This port depends on ChaSen base analyzer and a Japanese dictionary.
+
+distfiles
+
+depends_lib port:chasen-base
+
+use_configure no
+supported_archs noarch
+
+build {}
+
+variant eucjp description {Enable EUC-JP encoding} {}
+
+variant utf8 description {Add chasen-utf8 for UTF-8 texts} {
+ post-destroot {
+ set encoding utf8
+ set nkf_encoding w
+ set script ${destroot}${prefix}/bin/chasen-${encoding}
+ xinstall -m 755 ${filespath}/chasen.in ${script}
+ reinplace "s|@NKF_ENCODING@|${nkf_encoding}|" ${script}
+ reinplace "s|@RC_FILE@|${prefix}/etc/chasen/chasenrc-${encoding}|" \
+ ${script}
+ }
+}
+
+variant sjis description {Add chasen-sjis for Shift-JIS texts} {
+ post-destroot {
+ set encoding sjis
+ set nkf_encoding s
+ set script ${destroot}${prefix}/bin/chasen-${encoding}
+ xinstall -m 755 ${filespath}/chasen.in ${script}
+ reinplace "s|@NKF_ENCODING@|${nkf_encoding}|" ${script}
+ reinplace "s|@RC_FILE@|${prefix}/etc/chasen/chasenrc-${encoding}|" \
+ ${script}
+ }
+}
+
+default_variants +eucjp
+
+set dicname ipadic
+
+variant ipadic conflicts naistjdic description {Use ipadic} {
+ set dicname ipadic
+ if {[variant_isset eucjp]} {
+ depends_lib-append port:chasen-${dicname}
+ }
+ foreach encoding {utf8 sjis} {
+ if {[variant_isset ${encoding}]} {
+ depends_lib-append port:chasen-${dicname}-${encoding}
+ }
+ }
+}
+
+variant naistjdic conflicts ipadic description {Use naist-jdic} {
+ set dicname naist-jdic
+ if {[variant_isset eucjp]} {
+ depends_lib-append port:chasen-${dicname}
+ }
+ foreach encoding {utf8 sjis} {
+ if {[variant_isset ${encoding}]} {
+ depends_lib-append port:chasen-${dicname}-${encoding}
+ }
+ }
+}
+
+if {![variant_isset naistjdic]} {
+ default_variants +ipadic
+}
+
+destroot {
+ set dest_chasen ${destroot}${prefix}/etc/chasen
+ file mkdir ${dest_chasen}
+ system "cd ${dest_chasen} && ln -sf chasenrc-${dicname} chasenrc"
+ foreach encoding {utf8 sjis} {
+ if {[variant_isset ${encoding}]} {
+ system "cd ${dest_chasen} && ln -sf chasenrc-${dicname}-${encoding} chasenrc-${encoding}"
+ }
+ }
+}
+
+livecheck.type none
Property changes on: users/hum/textproc/chasen/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/hum/textproc/chasen/files/chasen.in
===================================================================
--- users/hum/textproc/chasen/files/chasen.in (rev 0)
+++ users/hum/textproc/chasen/files/chasen.in 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,2 @@
+#!/bin/sh
+chasen -i @NKF_ENCODING@ -r @RC_FILE@ "$@"
Property changes on: users/hum/textproc/chasen/files/chasen.in
___________________________________________________________________
Added: svn:executable
+ *
Added: users/hum/textproc/chasen-base/Portfile
===================================================================
--- users/hum/textproc/chasen-base/Portfile (rev 0)
+++ users/hum/textproc/chasen-base/Portfile 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,53 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name chasen-base
+version 2.4.4
+categories textproc japanese
+platforms darwin
+maintainers takanori hum openmaintainer
+license BSD
+
+homepage http://chasen-legacy.sourceforge.jp/
+description Japanese morphological analysis system
+long_description The base analyzer of ChaSen, ${description}.
+
+dist_subdir chasen
+distname chasen-${version}
+
+master_sites sourceforge_jp:chasen-legacy/32224
+
+checksums rmd160 ceb4a7c064ba5bf0d356d6db0e64b644b88dbc54 \
+ sha256 09e41f681097f87ba6c953d3724c34c1826c3cfa590898a2166fb310a006f932
+
+patchfiles patch-configure.diff
+
+depends_lib path:include/darts.h:darts \
+ port:libiconv
+
+post-extract {
+ foreach f {tests/test-chasen.sh tests/test-dic.sh} {
+ file attributes ${worksrcpath}/${f} -permissions 0755
+ }
+}
+
+configure.args --libexecdir=${prefix}/lib \
+ --sysconfdir=${prefix}/etc/chasen \
+ --with-darts=${prefix}/include \
+ --with-libiconv=${prefix}
+
+test.run yes
+test.target check
+
+post-destroot {
+ file mkdir ${destroot}${prefix}/share/doc/chasen
+ xinstall -m 644 -W ${worksrcpath} \
+ AUTHORS COPYING ChangeLog NEWS README doc/manual-j.pdf \
+ ${destroot}${prefix}/share/doc/chasen
+}
+
+livecheck.type regex
+livecheck.url http://sourceforge.jp/projects/chasen-legacy/releases
+livecheck.regex chasen-(\[0-9.a-z\-\]+)\\.tar
Property changes on: users/hum/textproc/chasen-base/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/hum/textproc/chasen-base/files/patch-configure.diff
===================================================================
--- users/hum/textproc/chasen-base/files/patch-configure.diff (rev 0)
+++ users/hum/textproc/chasen-base/files/patch-configure.diff 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,27 @@
+--- configure.orig 2008-07-23 13:15:55.000000000 +0900
++++ configure 2011-10-02 20:57:04.000000000 +0900
+@@ -22780,8 +22780,8 @@
+
+
+
+-{ echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
+-echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
++{ echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
++echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6; }
+ if test "${ac_cv_lib_iconv_iconv+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+@@ -22800,11 +22800,11 @@
+ #ifdef __cplusplus
+ extern "C"
+ #endif
+-char iconv ();
++char libiconv ();
+ int
+ main ()
+ {
+-return iconv ();
++return libiconv ();
+ ;
+ return 0;
+ }
Added: users/hum/textproc/chasen-ipadic/Portfile
===================================================================
--- users/hum/textproc/chasen-ipadic/Portfile (rev 0)
+++ users/hum/textproc/chasen-ipadic/Portfile 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,43 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+set dicname ipadic
+name chasen-${dicname}
+version 2.7.0
+categories textproc japanese
+maintainers takanori hum openmaintainer
+homepage http://sourceforge.jp/projects/${dicname}/
+description IPA dictionary for ChaSen Japanese morphological analysis system
+long_description ${description}
+platforms darwin
+license BSD
+
+dist_subdir chasen
+distname ${dicname}-${version}
+
+master_sites sourceforge_jp:${dicname}/24435
+
+checksums rmd160 5e37c750801df63439032be4954c4b63a44012cb \
+ sha256 ba2744cc16142159b330075e13eed4565908915ac95a790d38dea540e0963c1c
+
+supported_archs noarch
+configure.args --with-chasenrc-path=${destroot}${prefix}/etc/chasen/chasenrc-${dicname}
+
+use_parallel_build no
+
+pre-destroot {
+ file mkdir ${destroot}${prefix}/etc/chasen
+}
+
+post-destroot {
+ file mkdir ${destroot}${prefix}/share/doc/chasen-${dicname}
+ xinstall -m 644 -W ${worksrcpath} \
+ AUTHORS COPYING ChangeLog NEWS README doc/${dicname}-ja.pdf \
+ ${destroot}${prefix}/share/doc/chasen-${dicname}
+}
+
+livecheck.type regex
+livecheck.url http://sourceforge.jp/projects/${dicname}/releases
+livecheck.regex ${dicname}-(\[0-9.a-z\-\]+)\\.tar
Property changes on: users/hum/textproc/chasen-ipadic/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/hum/textproc/chasen-ipadic-sjis/Portfile
===================================================================
--- users/hum/textproc/chasen-ipadic-sjis/Portfile (rev 0)
+++ users/hum/textproc/chasen-ipadic-sjis/Portfile 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,49 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+set dicname ipadic
+set encoding sjis
+set nkf_encoding s
+name chasen-${dicname}-${encoding}
+version 2.7.0
+categories textproc japanese
+maintainers takanori hum openmaintainer
+homepage http://sourceforge.jp/projects/${dicname}/
+description IPA dictionary for ChaSen Japanese morphological analysis system
+long_description ${description}
+platforms darwin
+license BSD
+
+dist_subdir chasen
+distname ${dicname}-${version}
+
+master_sites sourceforge_jp:${dicname}/24435
+
+checksums rmd160 5e37c750801df63439032be4954c4b63a44012cb \
+ sha256 ba2744cc16142159b330075e13eed4565908915ac95a790d38dea540e0963c1c
+
+depends_build port:nkf
+
+supported_archs noarch
+configure.args --with-chasenrc-path=${destroot}${prefix}/etc/chasen/chasenrc-${dicname}-${encoding}
+
+use_parallel_build no
+
+post-patch {
+ reinplace "s|PACKAGE=${dicname}|PACKAGE=${dicname}-${encoding}|" ${worksrcpath}/configure
+ reinplace "s|/makemat|/makemat -i ${nkf_encoding}|" ${worksrcpath}/Makefile.in
+ reinplace "s|/makeda|/makeda -i ${nkf_encoding}|" ${worksrcpath}/Makefile.in
+ foreach f [glob ${worksrcpath}/*.cha ${worksrcpath}/*.dic ${worksrcpath}/chasenrc.in] {
+ move ${f} ${f}_
+ system "${prefix}/bin/nkf -E -${nkf_encoding} ${f}_ > ${f}"
+ delete ${f}_
+ }
+}
+
+pre-destroot {
+ file mkdir ${destroot}${prefix}/etc/chasen
+}
+
+livecheck.type none
Property changes on: users/hum/textproc/chasen-ipadic-sjis/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/hum/textproc/chasen-ipadic-utf8/Portfile
===================================================================
--- users/hum/textproc/chasen-ipadic-utf8/Portfile (rev 0)
+++ users/hum/textproc/chasen-ipadic-utf8/Portfile 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,49 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+set dicname ipadic
+set encoding utf8
+set nkf_encoding w
+name chasen-${dicname}-${encoding}
+version 2.7.0
+categories textproc japanese
+maintainers takanori hum openmaintainer
+homepage http://sourceforge.jp/projects/${dicname}/
+description IPA dictionary for ChaSen Japanese morphological analysis system
+long_description ${description}
+platforms darwin
+license BSD
+
+dist_subdir chasen
+distname ${dicname}-${version}
+
+master_sites sourceforge_jp:${dicname}/24435
+
+checksums rmd160 5e37c750801df63439032be4954c4b63a44012cb \
+ sha256 ba2744cc16142159b330075e13eed4565908915ac95a790d38dea540e0963c1c
+
+depends_build port:nkf
+
+supported_archs noarch
+configure.args --with-chasenrc-path=${destroot}${prefix}/etc/chasen/chasenrc-${dicname}-${encoding}
+
+use_parallel_build no
+
+post-patch {
+ reinplace "s|PACKAGE=${dicname}|PACKAGE=${dicname}-${encoding}|" ${worksrcpath}/configure
+ reinplace "s|/makemat|/makemat -i ${nkf_encoding}|" ${worksrcpath}/Makefile.in
+ reinplace "s|/makeda|/makeda -i ${nkf_encoding}|" ${worksrcpath}/Makefile.in
+ foreach f [glob ${worksrcpath}/*.cha ${worksrcpath}/*.dic ${worksrcpath}/chasenrc.in] {
+ move ${f} ${f}_
+ system "${prefix}/bin/nkf -E -${nkf_encoding} ${f}_ > ${f}"
+ delete ${f}_
+ }
+}
+
+pre-destroot {
+ file mkdir ${destroot}${prefix}/etc/chasen
+}
+
+livecheck.type none
Property changes on: users/hum/textproc/chasen-ipadic-utf8/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/hum/textproc/chasen-naist-jdic/Portfile
===================================================================
--- users/hum/textproc/chasen-naist-jdic/Portfile (rev 0)
+++ users/hum/textproc/chasen-naist-jdic/Portfile 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,43 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+set dicname naist-jdic
+name chasen-${dicname}
+version 0.4.3
+categories textproc japanese
+maintainers takanori hum openmaintainer
+homepage http://sourceforge.jp/projects/${dicname}/
+description NAIST Japanese dictionary for ChaSen
+long_description ${description}
+platforms darwin
+license BSD
+
+dist_subdir chasen
+distname ${dicname}-${version}
+
+master_sites sourceforge_jp:${dicname}/31880
+
+checksums rmd160 6d32e07e9fce6096a93603d148b6ee71a0a912c9 \
+ sha256 f4b830877b51c770cb8491efb6e7bccf0c9011d3682351e5507eb864b0729bb1
+
+supported_archs noarch
+configure.args --with-chasenrc-path=${destroot}${prefix}/etc/chasen/chasenrc-${dicname}
+
+use_parallel_build no
+
+pre-destroot {
+ file mkdir ${destroot}${prefix}/etc/chasen
+}
+
+post-destroot {
+ file mkdir ${destroot}${prefix}/share/doc/chasen-${dicname}
+ xinstall -m 644 -W ${worksrcpath} \
+ AUTHORS COPYING ChangeLog NEWS README \
+ ${destroot}${prefix}/share/doc/chasen-${dicname}
+}
+
+livecheck.type regex
+livecheck.url http://sourceforge.jp/projects/${dicname}/releases
+livecheck.regex >${dicname}-(\[0-9.a-z\-\]+)\\.tar
Property changes on: users/hum/textproc/chasen-naist-jdic/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/hum/textproc/chasen-naist-jdic-sjis/Portfile
===================================================================
--- users/hum/textproc/chasen-naist-jdic-sjis/Portfile (rev 0)
+++ users/hum/textproc/chasen-naist-jdic-sjis/Portfile 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,49 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+set dicname naist-jdic
+set encoding sjis
+set nkf_encoding s
+name chasen-${dicname}-${encoding}
+version 0.4.3
+categories textproc japanese
+maintainers takanori hum openmaintainer
+homepage http://sourceforge.jp/projects/${dicname}/
+description NAIST Japanese dictionary for ChaSen
+long_description ${description}
+platforms darwin
+license BSD
+
+dist_subdir chasen
+distname ${dicname}-${version}
+
+master_sites sourceforge_jp:${dicname}/31880
+
+checksums rmd160 6d32e07e9fce6096a93603d148b6ee71a0a912c9 \
+ sha256 f4b830877b51c770cb8491efb6e7bccf0c9011d3682351e5507eb864b0729bb1
+
+depends_build port:nkf
+
+supported_archs noarch
+configure.args --with-chasenrc-path=${destroot}${prefix}/etc/chasen/chasenrc-${dicname}-${encoding}
+
+use_parallel_build no
+
+post-patch {
+ reinplace "s|PACKAGE=${dicname}|PACKAGE=${dicname}-${encoding}|" ${worksrcpath}/configure
+ reinplace "s|/makemat|/makemat -i ${nkf_encoding}|" ${worksrcpath}/Makefile.in
+ reinplace "s|/makeda|/makeda -i ${nkf_encoding}|" ${worksrcpath}/Makefile.in
+ foreach f [glob ${worksrcpath}/*.cha ${worksrcpath}/*.dic ${worksrcpath}/chasenrc.in] {
+ move ${f} ${f}_
+ system "${prefix}/bin/nkf -E -${nkf_encoding} ${f}_ > ${f}"
+ delete ${f}_
+ }
+}
+
+pre-destroot {
+ file mkdir ${destroot}${prefix}/etc/chasen
+}
+
+livecheck.type none
Property changes on: users/hum/textproc/chasen-naist-jdic-sjis/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/hum/textproc/chasen-naist-jdic-utf8/Portfile
===================================================================
--- users/hum/textproc/chasen-naist-jdic-utf8/Portfile (rev 0)
+++ users/hum/textproc/chasen-naist-jdic-utf8/Portfile 2011-10-08 13:53:39 UTC (rev 85053)
@@ -0,0 +1,49 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+set dicname naist-jdic
+set encoding utf8
+set nkf_encoding w
+name chasen-${dicname}-${encoding}
+version 0.4.3
+categories textproc japanese
+maintainers takanori hum openmaintainer
+homepage http://sourceforge.jp/projects/${dicname}/
+description NAIST Japanese dictionary for ChaSen
+long_description ${description}
+platforms darwin
+license BSD
+
+dist_subdir chasen
+distname ${dicname}-${version}
+
+master_sites sourceforge_jp:${dicname}/31880
+
+checksums rmd160 6d32e07e9fce6096a93603d148b6ee71a0a912c9 \
+ sha256 f4b830877b51c770cb8491efb6e7bccf0c9011d3682351e5507eb864b0729bb1
+
+depends_build port:nkf
+
+supported_archs noarch
+configure.args --with-chasenrc-path=${destroot}${prefix}/etc/chasen/chasenrc-${dicname}-${encoding}
+
+use_parallel_build no
+
+post-patch {
+ reinplace "s|PACKAGE=${dicname}|PACKAGE=${dicname}-${encoding}|" ${worksrcpath}/configure
+ reinplace "s|/makemat|/makemat -i ${nkf_encoding}|" ${worksrcpath}/Makefile.in
+ reinplace "s|/makeda|/makeda -i ${nkf_encoding}|" ${worksrcpath}/Makefile.in
+ foreach f [glob ${worksrcpath}/*.cha ${worksrcpath}/*.dic ${worksrcpath}/chasenrc.in] {
+ move ${f} ${f}_
+ system "${prefix}/bin/nkf -E -${nkf_encoding} ${f}_ > ${f}"
+ delete ${f}_
+ }
+}
+
+pre-destroot {
+ file mkdir ${destroot}${prefix}/etc/chasen
+}
+
+livecheck.type none
Property changes on: users/hum/textproc/chasen-naist-jdic-utf8/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111008/6580eca3/attachment-0001.html>
More information about the macports-changes
mailing list