Changeset 98478
- Timestamp:
- Oct 6, 2012, 11:37:59 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/textproc/syncha/Portfile
r97506 r98478 5 5 6 6 name syncha 7 version 0.2.1 8 set branch [join [lrange [split ${version} .] 0 1] .] 7 version 0.2.2 9 8 categories textproc 10 9 maintainers hum openmaintainer 11 10 12 11 description a Japanese predicate-argument structure analyzer 13 long_description ${name} is ${description}. This port is for UTF-8 encoding.12 long_description ${name} is ${description}. 14 13 15 14 homepage http://www.cl.cs.titech.ac.jp/~ryu-i/syncha/ … … 18 17 19 18 master_sites ${homepage} 20 distname ${name}-${branch} 19 checksums rmd160 e9e7076bc368046b9d2d0e0553a0d00bfc604b25 \ 20 sha256 c3f9feeee015bd09eb96730b612cd26a03d56822cb384ca3e5db84e9d66c8192 21 21 extract.suffix .tgz 22 23 checksums rmd160 8933b6e82238254e8c08ac8ce7d66aeca80e4d0e \24 sha256 4af86068bdb42e0ae5de91bf32e890ab57aa2e4bf3763ae710dd314c91e0aa9025 22 26 23 depends_lib port:lp_solve \ 27 24 port:cabocha 28 depends_build port:nkf29 25 30 26 use_configure no … … 34 30 35 31 destroot { 32 # install data and modules. 36 33 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} 46 37 } 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. 60 43 xinstall -m 755 ${worksrcpath}/syncha ${destroot}${prefix}/bin 61 44 reinplace "s|use FindBin qw\(\$Bin\);|my \$Bin = \"${syncha_dir}\";|" \ … … 64 47 65 48 livecheck.type regex 66 livecheck.version ${branch}67 49 livecheck.regex ${name}-(\[0-9.\]+)\\.tgz
Note: See TracChangeset
for help on using the changeset viewer.