[90588] trunk/dports/textproc

hum at macports.org hum at macports.org
Fri Mar 9 04:19:48 PST 2012


Revision: 90588
          http://trac.macports.org/changeset/90588
Author:   hum at macports.org
Date:     2012-03-09 04:19:47 -0800 (Fri, 09 Mar 2012)
Log Message:
-----------
New port: syncha @0.2.1 - a Japanese predicate-argument structure analyzer.

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

Added: trunk/dports/textproc/syncha/Portfile
===================================================================
--- trunk/dports/textproc/syncha/Portfile	                        (rev 0)
+++ trunk/dports/textproc/syncha/Portfile	2012-03-09 12:19:47 UTC (rev 90588)
@@ -0,0 +1,67 @@
+# -*- 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                syncha
+version             0.2.1
+categories          textproc
+maintainers         hum openmaintainer
+
+description         a Japanese predicate-argument structure analyzer
+long_description    ${name} is ${description}. This port is for UTF-8 encoding.
+
+homepage            http://www.cl.cs.titech.ac.jp/~ryu-i/syncha/
+platforms           darwin
+license             LGPL
+
+master_sites        ${homepage}
+
+set major_version   0.2
+distname            ${name}-${major_version}
+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
+
+build {}
+
+destroot {
+    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}"
+        }
+    }
+    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.
+    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   ${major_version}
+livecheck.regex     ${name}-(\[0-9.\]+)\\.tgz


Property changes on: trunk/dports/textproc/syncha/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/20120309/ab4af5c9/attachment.html>


More information about the macports-changes mailing list