[86588] trunk/dports/java/mecab-java/Portfile

hum at macports.org hum at macports.org
Fri Oct 28 19:37:25 PDT 2011


Revision: 86588
          http://trac.macports.org/changeset/86588
Author:   hum at macports.org
Date:     2011-10-28 19:37:25 -0700 (Fri, 28 Oct 2011)
Log Message:
-----------
mecab-java: update to 0.98; add depends_lib port:mecab-utf8 and remove pre-fetch; simplify setting cxxflags; add livecheck.

Modified Paths:
--------------
    trunk/dports/java/mecab-java/Portfile

Modified: trunk/dports/java/mecab-java/Portfile
===================================================================
--- trunk/dports/java/mecab-java/Portfile	2011-10-29 02:29:26 UTC (rev 86587)
+++ trunk/dports/java/mecab-java/Portfile	2011-10-29 02:37:25 UTC (rev 86588)
@@ -4,8 +4,8 @@
 PortSystem          1.0
 
 name                mecab-java
-version             0.98pre3
-revision            1
+version             0.98
+epoch               1
 categories          java textproc japanese
 platforms           darwin
 maintainers         hum openmaintainer
@@ -15,28 +15,13 @@
 long_description    ${name} is ${description}.
 
 homepage            http://mecab.sourceforge.net/
-master_sites        sourceforge:mecab/${name}/${version}
+master_sites        sourceforge:mecab/mecab-win32/${version}
 
-checksums           sha1    dcd5c636f76cf7040f7c3ec0380d45b6851dce03 \
-                    rmd160  9214b1e3b2f24334709bdd3adc69da076c892c67
+checksums           rmd160  50606cb61adab2b495963a2e79ae09899a9683ae \
+                    sha256  5f19050f8c3f50756f8cd54288c3b3e11c19d01e2940d4821af0a90a4e4940ba
 
-# This port requires mecab+utf8 althought the default character encoding of
-# mecab is not utf-8 but euc-jp.
-# It will just check the encoding of mecab in the pre-fetch phase instead of
-# depends_lib, because depends_lib could not specify a variant.
-#depends_lib         port:mecab
+depends_lib         port:mecab-utf8
 
-pre-fetch {
-    catch {exec $prefix/bin/mecab -D} dict_info
-    if {![regexp {charset:\s+utf\-8} $dict_info]} {
-        ui_error "mecab-java requires MeCab for UTF-8.\
-                  Please install mecab +utf8 first.\
-                  If another encoding version of MeCab is already installed,\
-                  you should uninstall mecab beforehand."
-        return -code error "MeCab for UTF-8 is missing"
-    }
-}
-
 patchfiles          patch-Makefile.diff \
                     patch-test.java.diff
 
@@ -46,15 +31,10 @@
 
 use_configure       no
 
-variant universal {}
-if {[variant_isset universal]} {
-    set archflags ${configure.universal_cxxflags}
-} else {
-    set archflags ${configure.cxx_archflags}
-}
+variant universal   {}
 
 build.args          CXX="${configure.cxx}" \
-                    CXXFLAGS="${configure.cxxflags} ${archflags}"
+                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
 
 test.run            yes
 
@@ -71,8 +51,6 @@
         ${destroot}${prefix}/lib
 }
 
-# a distfile folder for a newer version 0.98 exists, but is empty.
-livecheck.type      none
-#livecheck.type      regex
-#livecheck.url       http://sourceforge.net/projects/mecab/files/mecab-java
-#livecheck.regex     /${name}\/(\[0-9.\]+)/
+livecheck.type      regex
+livecheck.url       http://sourceforge.net/projects/mecab/files/mecab-java
+livecheck.regex     ${name}\\/(\[0-9.\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111028/ab735a72/attachment.html>


More information about the macports-changes mailing list