[26923] trunk/dports/textproc/chasen/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 11 11:58:30 PDT 2007


Revision: 26923
          http://trac.macosforge.org/projects/macports/changeset/26923
Author:   takanori at macports.org
Date:     2007-07-11 11:58:29 -0700 (Wed, 11 Jul 2007)

Log Message:
-----------
Untabify.

Modified Paths:
--------------
    trunk/dports/textproc/chasen/Portfile

Modified: trunk/dports/textproc/chasen/Portfile
===================================================================
--- trunk/dports/textproc/chasen/Portfile	2007-07-11 18:53:37 UTC (rev 26922)
+++ trunk/dports/textproc/chasen/Portfile	2007-07-11 18:58:29 UTC (rev 26923)
@@ -1,91 +1,92 @@
 # $Id$
 
-PortSystem        1.0
-name              chasen
-version           2.4.1
-set ipa		  ipadic-2.7.0
-categories        textproc japanese
-maintainers       takanori at macports.org
-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. Because ChaSen itself \
-		  has no dictionaries, we need explicit dictionaries to use. IPADIC is such a \
-		  set of dictionaries that specifies Japanese language. \
-		  \
-		  This version of chasen treats encoding of input as EUC-JP, and its output is \
-		  encoded as EUC-JP by default.
-platforms         darwin
-homepage          http://chasen-legacy.sourceforge.jp/
-set sfjpid_chasen 26168
-set sfjpid_ipadic 24435
-master_sites      http://keihanna.dl.sourceforge.jp/chasen-legacy/${sfjpid_chasen}/:chasen \
-		  http://osdn.dl.sourceforge.jp/chasen-legacy/${sfjpid_chasen}/:chasen \
-		  http://keihanna.dl.sourceforge.jp/ipadic/${sfjpid_ipadic}/:ipadic \
-		  http://osdn.dl.sourceforge.jp/ipadic/${sfjpid_ipadic}/:ipadic \
-		  http://chasen.naist.jp/stable/ipadic/:ipadic
-distfiles	  ${distname}.tar.gz:chasen
-patchfiles	  patch-configure.diff
-checksums	  ${name}-${version}.tar.gz md5 ae383d8d9554ae1631f6550d3b1396cc \
-					    sha1 2dca85bc4cd7b3f77e9729f0b75c884be6ac29d5 \
-					    rmd160 cf614af761e0b3175daaffcebabaa9c13da00cae \
-		  ${ipa}.tar.gz md5 f36d315cae25b086a889b7090c674977 \
-		  		sha1 52784d8abb3361eafec83ab543be63cf087f9eb2 \
-				rmd160 5e37c750801df63439032be4954c4b63a44012cb
+PortSystem      1.0
+name            chasen
+version         2.4.1
+set ipa         ipadic-2.7.0
+categories      textproc japanese
+maintainers     takanori at macports.org
+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. Because ChaSen itself \
+                has no dictionaries, we need explicit dictionaries to use. IPADIC is such a \
+                set of dictionaries that specifies Japanese language. \
+                \
+                This version of chasen treats encoding of input as EUC-JP, and its output is \
+                encoded as EUC-JP by default.
+platforms       darwin
+homepage        http://chasen-legacy.sourceforge.jp/
+set sfjpid_chasen   26168
+set sfjpid_ipadic   24435
+master_sites    http://keihanna.dl.sourceforge.jp/chasen-legacy/${sfjpid_chasen}/:chasen \
+                http://osdn.dl.sourceforge.jp/chasen-legacy/${sfjpid_chasen}/:chasen \
+                http://keihanna.dl.sourceforge.jp/ipadic/${sfjpid_ipadic}/:ipadic \
+                http://osdn.dl.sourceforge.jp/ipadic/${sfjpid_ipadic}/:ipadic \
+                http://chasen.naist.jp/stable/ipadic/:ipadic
+distfiles       ${distname}.tar.gz:chasen
+patchfiles      patch-configure.diff
+checksums       ${name}-${version}.tar.gz md5 ae383d8d9554ae1631f6550d3b1396cc \
+                                          sha1 2dca85bc4cd7b3f77e9729f0b75c884be6ac29d5 \
+                                          rmd160 cf614af761e0b3175daaffcebabaa9c13da00cae \
+                ${ipa}.tar.gz md5 f36d315cae25b086a889b7090c674977 \
+                              sha1 52784d8abb3361eafec83ab543be63cf087f9eb2 \
+                              rmd160 5e37c750801df63439032be4954c4b63a44012cb
 
-default_variants  +ipadic
+default_variants    +ipadic
 
-depends_lib	port:darts port:libiconv
-depends_build	port:nkf
+depends_lib     port:darts port:libiconv
+depends_build   port:nkf
 
-post-extract	{
-		foreach f {tests/test-chasen.sh tests/test-dic.sh} {
-			file attributes ${worksrcpath}/${f} -permissions 0755
-		}
+post-extract {
+    foreach f {tests/test-chasen.sh tests/test-dic.sh} {
+        file attributes ${worksrcpath}/${f} -permissions 0755
+    }
 }
 
-configure.args	--libexecdir=${prefix}/lib --with-darts=${prefix}/include --with-libiconv=${prefix}
+configure.args  --libexecdir=${prefix}/lib --with-darts=${prefix}/include --with-libiconv=${prefix}
 
-test.run	yes
-test.target	check
+test.run        yes
+test.target     check
 
-post-destroot	{
-		xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
+post-destroot {
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
 
-		xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${destroot}${prefix}/share/doc/${name}
-		xinstall -m 644 ${worksrcpath}/doc/manual-j.pdf ${destroot}${prefix}/share/doc/${name}/doc
+    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 ${worksrcpath}/doc/manual-j.pdf ${destroot}${prefix}/share/doc/${name}/doc
 }
 
-variant ipadic	{
-	# Japanese dictionaries for ChaSen
-	distfiles-append ${ipa}.tar.gz:ipadic
-	post-destroot {
-		foreach {enc c} {UTF-8 w EUC-JP e Shift_JIS s} {
-			file mkdir ${workpath}/${ipa}-${enc}
-			system "(cd ${workpath}/${ipa}; tar cf - .) | (cd ${workpath}/${ipa}-${enc}; tar xf -)"
-			reinplace "s|PACKAGE=ipadic|PACKAGE=ipadic-${enc}|" ${workpath}/${ipa}-${enc}/configure
-			reinplace "s|/makemat|/makemat -i ${c}|" ${workpath}/${ipa}-${enc}/Makefile.in
-			reinplace "s|/makeda|/makeda -i ${c}|" ${workpath}/${ipa}-${enc}/Makefile.in
-			foreach f [glob ${workpath}/${ipa}-${enc}/*.cha ${workpath}/${ipa}-${enc}/*.dic ${workpath}/${ipa}-${enc}/chasenrc.in] {
-				system "mv ${f} ${f}_ && ${prefix}/bin/nkf --ic=EUC-JP --oc=${enc} ${f}_ > ${f}"
-			}
-			system "cd ${workpath}/${ipa}-${enc} && ./configure --with-dicdir=${prefix}/lib/chasen/dic --with-mkchadic=${destroot}${prefix}/lib/chasen --with-chasenrc-path=${destroot}${prefix}/etc/chasenrc-${enc} && DYLD_LIBRARY_PATH=${destroot}${prefix}/lib make && make install DESTDIR=${destroot}"
-		}
-		system "ln -sf chasenrc-EUC-JP ${destroot}${prefix}/etc/chasenrc"
+variant ipadic {
+    # Japanese dictionaries for ChaSen
+    distfiles-append ${ipa}.tar.gz:ipadic
+    post-destroot {
+        foreach {enc c} {UTF-8 w EUC-JP e Shift_JIS s} {
+            file mkdir ${workpath}/${ipa}-${enc}
+            system "(cd ${workpath}/${ipa}; tar cf - .) | (cd ${workpath}/${ipa}-${enc}; tar xf -)"
+            reinplace "s|PACKAGE=ipadic|PACKAGE=ipadic-${enc}|" ${workpath}/${ipa}-${enc}/configure
+            reinplace "s|/makemat|/makemat -i ${c}|" ${workpath}/${ipa}-${enc}/Makefile.in
+            reinplace "s|/makeda|/makeda -i ${c}|" ${workpath}/${ipa}-${enc}/Makefile.in
+            foreach f [glob ${workpath}/${ipa}-${enc}/*.cha ${workpath}/${ipa}-${enc}/*.dic ${workpath}/${ipa}-${enc}/chasenrc.in] {
+                system "mv ${f} ${f}_ && ${prefix}/bin/nkf --ic=EUC-JP --oc=${enc} ${f}_ > ${f}"
+            }
+            system "cd ${workpath}/${ipa}-${enc} && ./configure --with-dicdir=${prefix}/lib/chasen/dic --with-mkchadic=${destroot}${prefix}/lib/chasen --with-chasenrc-path=${destroot}${prefix}/etc/chasenrc-${enc} && DYLD_LIBRARY_PATH=${destroot}${prefix}/lib make && make install DESTDIR=${destroot}"
+        }
+        system "ln -sf chasenrc-EUC-JP ${destroot}${prefix}/etc/chasenrc"
 
-		xinstall -m 755 -d ${destroot}${prefix}/share/doc/chasen-ipadic/doc
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/chasen-ipadic/doc
 
-		xinstall -m 644 -W ${workpath}/${ipa} AUTHORS COPYING ChangeLog INSTALL INSTALL-ja NEWS README ${destroot}${prefix}/share/doc/chasen-ipadic
-		xinstall -m 644 ${workpath}/${ipa}/doc/ipadic-ja.pdf ${destroot}${prefix}/share/doc/chasen-ipadic/doc
-	}
+        xinstall -m 644 -W ${workpath}/${ipa} AUTHORS COPYING ChangeLog INSTALL INSTALL-ja NEWS README ${destroot}${prefix}/share/doc/chasen-ipadic
+        xinstall -m 644 ${workpath}/${ipa}/doc/ipadic-ja.pdf ${destroot}${prefix}/share/doc/chasen-ipadic/doc
+    }
 
-	post-activate	{
-		ui_msg "\nDue to historical reasons, the default encoding of ChaSen is set to EUC-JP."
-		ui_msg "If you'd like to handle text files written in UTF-8 or Shift_JIS, you may use -r and -i options.\n"
-		ui_msg "  UTF-8)     chasen -r ${prefix}/etc/chasenrc-UTF-8 -i w <input>"
-		ui_msg "  Shift_JIS) chasen -r ${prefix}/etc/chasenrc-Shift_JIS -i s <input>\n"
-	}
+    post-activate {
+        ui_msg "\nDue to historical reasons, the default encoding of ChaSen is set to EUC-JP."
+        ui_msg "If you'd like to handle text files written in UTF-8 or Shift_JIS, you may use -r and -i options.\n"
+        ui_msg "  UTF-8)     chasen -r ${prefix}/etc/chasenrc-UTF-8 -i w <input>"
+        ui_msg "  Shift_JIS) chasen -r ${prefix}/etc/chasenrc-Shift_JIS -i s <input>\n"
+    }
 }
 
 livecheck.check regex
-livecheck.url	http://chasen-legacy.sourceforge.jp/
+livecheck.url   http://chasen-legacy.sourceforge.jp/
 livecheck.regex ${name}-(\[0-9.a-z\-\]+)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070711/f275717d/attachment.html


More information about the macports-changes mailing list