[98478] trunk/dports/textproc/syncha/Portfile

hum at macports.org hum at macports.org
Sat Oct 6 04:37:59 PDT 2012


Revision: 98478
          http://trac.macports.org//changeset/98478
Author:   hum at macports.org
Date:     2012-10-06 04:37:59 -0700 (Sat, 06 Oct 2012)
Log Message:
-----------
syncha: update to 0.2.2; remove encoding conversion with nkf; do not use branch.

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

Modified: trunk/dports/textproc/syncha/Portfile
===================================================================
--- trunk/dports/textproc/syncha/Portfile	2012-10-06 11:35:44 UTC (rev 98477)
+++ trunk/dports/textproc/syncha/Portfile	2012-10-06 11:37:59 UTC (rev 98478)
@@ -4,28 +4,24 @@
 PortSystem          1.0
 
 name                syncha
-version             0.2.1
-set branch          [join [lrange [split ${version} .] 0 1] .]
+version             0.2.2
 categories          textproc
 maintainers         hum openmaintainer
 
 description         a Japanese predicate-argument structure analyzer
-long_description    ${name} is ${description}. This port is for UTF-8 encoding.
+long_description    ${name} is ${description}.
 
 homepage            http://www.cl.cs.titech.ac.jp/~ryu-i/syncha/
 platforms           darwin
 license             LGPL
 
 master_sites        ${homepage}
-distname            ${name}-${branch}
+checksums           rmd160  e9e7076bc368046b9d2d0e0553a0d00bfc604b25 \
+                    sha256  c3f9feeee015bd09eb96730b612cd26a03d56822cb384ca3e5db84e9d66c8192
 extract.suffix      .tgz
 
-checksums           rmd160  8933b6e82238254e8c08ac8ce7d66aeca80e4d0e \
-                    sha256  4af86068bdb42e0ae5de91bf32e890ab57aa2e4bf3763ae710dd314c91e0aa90
-
 depends_lib         port:lp_solve \
                     port:cabocha
-depends_build       port:nkf
 
 use_configure       no
 supported_archs     noarch
@@ -33,35 +29,21 @@
 build {}
 
 destroot {
+    # install data and modules.
     set syncha_dir ${prefix}/share/${name}
-    set dest_dir   ${destroot}${syncha_dir}
-
-    # convert the character encodings from EUC-JP to UTF-8.
-    set nkf        "${prefix}/bin/nkf -w"
-    foreach d {cooc sample} {
-        xinstall -d -m 755 ${dest_dir}/dat/${d}
-        foreach f [glob -tails -directory ${worksrcpath}/dat/${d} *] {
-            system "${nkf} ${worksrcpath}/dat/${d}/${f} > ${dest_dir}/dat/${d}/${f}"
-        }
+    xinstall -d ${destroot}${syncha_dir}
+    foreach dir {dat src} {
+        copy ${worksrcpath}/${dir} ${destroot}${syncha_dir}
     }
-    foreach d [glob -tails -directory ${worksrcpath}/dat/model *] {
-        xinstall -d -m 755 ${dest_dir}/dat/model/${d}
-        foreach f [glob -tails -directory ${worksrcpath}/dat/model/${d} *] {
-            system "${nkf} ${worksrcpath}/dat/model/${d}/${f} > ${dest_dir}/dat/model/${d}/${f}"
-        }
-    }
-    xinstall -d -m 755 ${dest_dir}/src
-    foreach f [glob -tails -directory ${worksrcpath}/src *] {
-        system "${nkf} ${worksrcpath}/src/${f} > ${dest_dir}/src/${f}"
-    }
-    system "${nkf} ${worksrcpath}/README > ${dest_dir}/README"
-
-    # install the executable script.
+    # install an additional document.
+    set doc_dir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${doc_dir}
+    xinstall -m 644 ${worksrcpath}/README ${doc_dir}
+    # install an executable script.
     xinstall -m 755 ${worksrcpath}/syncha ${destroot}${prefix}/bin
     reinplace "s|use FindBin qw\(\$Bin\);|my \$Bin = \"${syncha_dir}\";|" \
         ${destroot}${prefix}/bin/syncha
 }
 
 livecheck.type      regex
-livecheck.version   ${branch}
 livecheck.regex     ${name}-(\[0-9.\]+)\\.tgz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121006/9a7ef037/attachment.html>


More information about the macports-changes mailing list