Changeset 98478


Ignore:
Timestamp:
Oct 6, 2012, 11:37:59 AM (12 years ago)
Author:
hum@…
Message:

syncha: update to 0.2.2; remove encoding conversion with nkf; do not use branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/syncha/Portfile

    r97506 r98478  
    55
    66name                syncha
    7 version             0.2.1
    8 set branch          [join [lrange [split ${version} .] 0 1] .]
     7version             0.2.2
    98categories          textproc
    109maintainers         hum openmaintainer
    1110
    1211description         a Japanese predicate-argument structure analyzer
    13 long_description    ${name} is ${description}. This port is for UTF-8 encoding.
     12long_description    ${name} is ${description}.
    1413
    1514homepage            http://www.cl.cs.titech.ac.jp/~ryu-i/syncha/
     
    1817
    1918master_sites        ${homepage}
    20 distname            ${name}-${branch}
     19checksums           rmd160  e9e7076bc368046b9d2d0e0553a0d00bfc604b25 \
     20                    sha256  c3f9feeee015bd09eb96730b612cd26a03d56822cb384ca3e5db84e9d66c8192
    2121extract.suffix      .tgz
    22 
    23 checksums           rmd160  8933b6e82238254e8c08ac8ce7d66aeca80e4d0e \
    24                     sha256  4af86068bdb42e0ae5de91bf32e890ab57aa2e4bf3763ae710dd314c91e0aa90
    2522
    2623depends_lib         port:lp_solve \
    2724                    port:cabocha
    28 depends_build       port:nkf
    2925
    3026use_configure       no
     
    3430
    3531destroot {
     32    # install data and modules.
    3633    set syncha_dir ${prefix}/share/${name}
    37     set dest_dir   ${destroot}${syncha_dir}
    38 
    39     # convert the character encodings from EUC-JP to UTF-8.
    40     set nkf        "${prefix}/bin/nkf -w"
    41     foreach d {cooc sample} {
    42         xinstall -d -m 755 ${dest_dir}/dat/${d}
    43         foreach f [glob -tails -directory ${worksrcpath}/dat/${d} *] {
    44             system "${nkf} ${worksrcpath}/dat/${d}/${f} > ${dest_dir}/dat/${d}/${f}"
    45         }
     34    xinstall -d ${destroot}${syncha_dir}
     35    foreach dir {dat src} {
     36        copy ${worksrcpath}/${dir} ${destroot}${syncha_dir}
    4637    }
    47     foreach d [glob -tails -directory ${worksrcpath}/dat/model *] {
    48         xinstall -d -m 755 ${dest_dir}/dat/model/${d}
    49         foreach f [glob -tails -directory ${worksrcpath}/dat/model/${d} *] {
    50             system "${nkf} ${worksrcpath}/dat/model/${d}/${f} > ${dest_dir}/dat/model/${d}/${f}"
    51         }
    52     }
    53     xinstall -d -m 755 ${dest_dir}/src
    54     foreach f [glob -tails -directory ${worksrcpath}/src *] {
    55         system "${nkf} ${worksrcpath}/src/${f} > ${dest_dir}/src/${f}"
    56     }
    57     system "${nkf} ${worksrcpath}/README > ${dest_dir}/README"
    58 
    59     # install the executable script.
     38    # install an additional document.
     39    set doc_dir ${destroot}${prefix}/share/doc/${name}
     40    xinstall -d ${doc_dir}
     41    xinstall -m 644 ${worksrcpath}/README ${doc_dir}
     42    # install an executable script.
    6043    xinstall -m 755 ${worksrcpath}/syncha ${destroot}${prefix}/bin
    6144    reinplace "s|use FindBin qw\(\$Bin\);|my \$Bin = \"${syncha_dir}\";|" \
     
    6447
    6548livecheck.type      regex
    66 livecheck.version   ${branch}
    6749livecheck.regex     ${name}-(\[0-9.\]+)\\.tgz
Note: See TracChangeset for help on using the changeset viewer.