Changeset 88884 for trunk/dports/java


Ignore:
Timestamp:
Jan 14, 2012, 2:44:01 PM (8 years ago)
Author:
hum@…
Message:

mecab-java: update to 0.991; fix master_sites and livecheck; install test.sh and test.class.

Location:
trunk/dports/java/mecab-java
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/mecab-java/Portfile

    r86847 r88884  
    55
    66name                mecab-java
    7 version             0.98
    8 revision            2
     7version             0.991
    98epoch               1
    109categories          java textproc japanese
     
    1716
    1817homepage            http://mecab.sourceforge.net/
    19 master_sites        sourceforge:mecab/mecab-win32/${version}
     18master_sites        googlecode:mecab
     19checksums           rmd160  c1f0a56eb8651a8231c69530c57b4d0fc440fd44 \
     20                    sha256  e1cde8f7d2e4ad27563ed2dea78bc7d1a9f0d75855b360471e026b8e25b9675d
    2021dist_subdir         mecab
    21 checksums           rmd160  50606cb61adab2b495963a2e79ae09899a9683ae \
    22                     sha256  5f19050f8c3f50756f8cd54288c3b3e11c19d01e2940d4821af0a90a4e4940ba
    2322
    2423depends_lib         port:mecab-utf8
     
    2625patchfiles          patch-Makefile.diff \
    2726                    patch-test.java.diff
     27
     28set mecab_java_home ${prefix}/share/doc/${name}
     29set jar_home        ${prefix}/share/java
     30set mecab_jar       ${jar_home}/mecab.jar
    2831
    2932post-patch {
     
    4245destroot    {
    4346    xinstall -m 755 -d \
    44         ${destroot}${prefix}/share/java \
    45         ${destroot}${prefix}/share/doc/${name}
     47        ${destroot}${jar_home} \
     48        ${destroot}${mecab_java_home}
    4649    xinstall -m 644 -W ${worksrcpath} \
    47         AUTHORS BSD COPYING GPL LGPL bindings.html test.java \
    48         ${destroot}${prefix}/share/doc/${name}
     50        AUTHORS BSD COPYING GPL LGPL bindings.html test.java test.class \
     51        ${destroot}${mecab_java_home}
     52    xinstall -m 755 ${filespath}/test.sh \
     53        ${destroot}${mecab_java_home}
     54    reinplace "s|@java_library_path@|${prefix}/lib|g"    ${destroot}${mecab_java_home}/test.sh
     55    reinplace "s|@cp@|${mecab_java_home}:${mecab_jar}|g" ${destroot}${mecab_java_home}/test.sh
    4956    xinstall -m 644 ${worksrcpath}/MeCab.jar \
    50         ${destroot}${prefix}/share/java/mecab.jar
     57        ${destroot}${mecab_jar}
    5158    xinstall -m 644 ${worksrcpath}/lib${name}.dylib \
    5259        ${destroot}${prefix}/lib
     
    5461
    5562livecheck.type      regex
    56 livecheck.url       http://sourceforge.net/projects/mecab/files/mecab-java
    57 livecheck.regex     ${name}\\/(\[0-9.\]+)
     63livecheck.url       http://code.google.com/p/mecab/downloads/list
     64livecheck.regex     {mecab-java-([\d\.]+)\.tar}
  • trunk/dports/java/mecab-java/files/patch-Makefile.diff

    r86594 r88884  
    1010-JAR=jar
    1111-CXX=c++
    12 -INCLUDE=/usr/local/jdk/include
     12-INCLUDE=/usr/lib/jvm/java-6-openjdk/include
    1313+JAVAC=$(JAVA_HOME)/bin/javac -encoding UTF-8
    1414+JAVA=$(JAVA_HOME)/bin/java -Dfile.encoding=UTF-8
  • trunk/dports/java/mecab-java/files/patch-test.java.diff

    r81539 r88884  
    1 --- test.java.orig      2009-05-31 12:20:56.000000000 +0900
    2 +++ test.java   2011-05-28 18:56:01.000000000 +0900
    3 @@ -5,9 +5,11 @@
     1--- test.java.orig      2012-01-13 23:58:07.000000000 +0900
     2+++ test.java   2012-01-14 22:44:07.000000000 +0900
     3@@ -7,9 +7,11 @@
    44 public class test {
    55   static {
Note: See TracChangeset for help on using the changeset viewer.