[88884] trunk/dports/java/mecab-java

hum at macports.org hum at macports.org
Sat Jan 14 06:44:02 PST 2012


Revision: 88884
          http://trac.macports.org/changeset/88884
Author:   hum at macports.org
Date:     2012-01-14 06:44:01 -0800 (Sat, 14 Jan 2012)
Log Message:
-----------
mecab-java: update to 0.991; fix master_sites and livecheck; install test.sh and test.class.

Modified Paths:
--------------
    trunk/dports/java/mecab-java/Portfile
    trunk/dports/java/mecab-java/files/patch-Makefile.diff
    trunk/dports/java/mecab-java/files/patch-test.java.diff

Added Paths:
-----------
    trunk/dports/java/mecab-java/files/test.sh

Modified: trunk/dports/java/mecab-java/Portfile
===================================================================
--- trunk/dports/java/mecab-java/Portfile	2012-01-14 14:41:06 UTC (rev 88883)
+++ trunk/dports/java/mecab-java/Portfile	2012-01-14 14:44:01 UTC (rev 88884)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                mecab-java
-version             0.98
-revision            2
+version             0.991
 epoch               1
 categories          java textproc japanese
 platforms           darwin
@@ -16,16 +15,20 @@
 long_description    ${name} is ${description}.
 
 homepage            http://mecab.sourceforge.net/
-master_sites        sourceforge:mecab/mecab-win32/${version}
+master_sites        googlecode:mecab
+checksums           rmd160  c1f0a56eb8651a8231c69530c57b4d0fc440fd44 \
+                    sha256  e1cde8f7d2e4ad27563ed2dea78bc7d1a9f0d75855b360471e026b8e25b9675d
 dist_subdir         mecab
-checksums           rmd160  50606cb61adab2b495963a2e79ae09899a9683ae \
-                    sha256  5f19050f8c3f50756f8cd54288c3b3e11c19d01e2940d4821af0a90a4e4940ba
 
 depends_lib         port:mecab-utf8
 
 patchfiles          patch-Makefile.diff \
                     patch-test.java.diff
 
+set mecab_java_home ${prefix}/share/doc/${name}
+set jar_home        ${prefix}/share/java
+set mecab_jar       ${jar_home}/mecab.jar
+
 post-patch {
     reinplace "s|@java_library_path@|${prefix}/lib|g" ${worksrcpath}/test.java
 }
@@ -41,17 +44,21 @@
 
 destroot    {
     xinstall -m 755 -d \
-        ${destroot}${prefix}/share/java \
-        ${destroot}${prefix}/share/doc/${name}
+        ${destroot}${jar_home} \
+        ${destroot}${mecab_java_home}
     xinstall -m 644 -W ${worksrcpath} \
-        AUTHORS BSD COPYING GPL LGPL bindings.html test.java \
-        ${destroot}${prefix}/share/doc/${name}
+        AUTHORS BSD COPYING GPL LGPL bindings.html test.java test.class \
+        ${destroot}${mecab_java_home}
+    xinstall -m 755 ${filespath}/test.sh \
+        ${destroot}${mecab_java_home}
+    reinplace "s|@java_library_path@|${prefix}/lib|g"    ${destroot}${mecab_java_home}/test.sh
+    reinplace "s|@cp@|${mecab_java_home}:${mecab_jar}|g" ${destroot}${mecab_java_home}/test.sh
     xinstall -m 644 ${worksrcpath}/MeCab.jar \
-        ${destroot}${prefix}/share/java/mecab.jar
+        ${destroot}${mecab_jar}
     xinstall -m 644 ${worksrcpath}/lib${name}.dylib \
         ${destroot}${prefix}/lib
 }
 
 livecheck.type      regex
-livecheck.url       http://sourceforge.net/projects/mecab/files/mecab-java
-livecheck.regex     ${name}\\/(\[0-9.\]+)
+livecheck.url       http://code.google.com/p/mecab/downloads/list
+livecheck.regex     {mecab-java-([\d\.]+)\.tar}

Modified: trunk/dports/java/mecab-java/files/patch-Makefile.diff
===================================================================
--- trunk/dports/java/mecab-java/files/patch-Makefile.diff	2012-01-14 14:41:06 UTC (rev 88883)
+++ trunk/dports/java/mecab-java/files/patch-Makefile.diff	2012-01-14 14:44:01 UTC (rev 88884)
@@ -9,7 +9,7 @@
 -JAVA=java
 -JAR=jar
 -CXX=c++
--INCLUDE=/usr/local/jdk/include
+-INCLUDE=/usr/lib/jvm/java-6-openjdk/include
 +JAVAC=$(JAVA_HOME)/bin/javac -encoding UTF-8
 +JAVA=$(JAVA_HOME)/bin/java -Dfile.encoding=UTF-8
 +JAR=$(JAVA_HOME)/bin/jar

Modified: trunk/dports/java/mecab-java/files/patch-test.java.diff
===================================================================
--- trunk/dports/java/mecab-java/files/patch-test.java.diff	2012-01-14 14:41:06 UTC (rev 88883)
+++ trunk/dports/java/mecab-java/files/patch-test.java.diff	2012-01-14 14:44:01 UTC (rev 88884)
@@ -1,6 +1,6 @@
---- test.java.orig	2009-05-31 12:20:56.000000000 +0900
-+++ test.java	2011-05-28 18:56:01.000000000 +0900
-@@ -5,9 +5,11 @@
+--- test.java.orig	2012-01-13 23:58:07.000000000 +0900
++++ test.java	2012-01-14 22:44:07.000000000 +0900
+@@ -7,9 +7,11 @@
  public class test {
    static {
      try {

Added: trunk/dports/java/mecab-java/files/test.sh
===================================================================
--- trunk/dports/java/mecab-java/files/test.sh	                        (rev 0)
+++ trunk/dports/java/mecab-java/files/test.sh	2012-01-14 14:44:01 UTC (rev 88884)
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -Dfile.encoding=UTF-8 -Djava.library.path=@java_library_path@ -cp @cp@ test


Property changes on: trunk/dports/java/mecab-java/files/test.sh
___________________________________________________________________
Added: svn:executable
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120114/add00863/attachment.html>


More information about the macports-changes mailing list