Changeset 86588 for trunk/dports/java


Ignore:
Timestamp:
Oct 29, 2011, 2:37:25 AM (9 years ago)
Author:
hum@…
Message:

mecab-java: update to 0.98; add depends_lib port:mecab-utf8 and remove pre-fetch; simplify setting cxxflags; add livecheck.

File:
1 edited

Legend:

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

    r83490 r86588  
    55
    66name                mecab-java
    7 version             0.98pre3
    8 revision            1
     7version             0.98
     8epoch               1
    99categories          java textproc japanese
    1010platforms           darwin
     
    1616
    1717homepage            http://mecab.sourceforge.net/
    18 master_sites        sourceforge:mecab/${name}/${version}
     18master_sites        sourceforge:mecab/mecab-win32/${version}
    1919
    20 checksums           sha1    dcd5c636f76cf7040f7c3ec0380d45b6851dce03 \
    21                     rmd160  9214b1e3b2f24334709bdd3adc69da076c892c67
     20checksums           rmd160  50606cb61adab2b495963a2e79ae09899a9683ae \
     21                    sha256  5f19050f8c3f50756f8cd54288c3b3e11c19d01e2940d4821af0a90a4e4940ba
    2222
    23 # This port requires mecab+utf8 althought the default character encoding of
    24 # mecab is not utf-8 but euc-jp.
    25 # It will just check the encoding of mecab in the pre-fetch phase instead of
    26 # depends_lib, because depends_lib could not specify a variant.
    27 #depends_lib         port:mecab
    28 
    29 pre-fetch {
    30     catch {exec $prefix/bin/mecab -D} dict_info
    31     if {![regexp {charset:\s+utf\-8} $dict_info]} {
    32         ui_error "mecab-java requires MeCab for UTF-8.\
    33                   Please install mecab +utf8 first.\
    34                   If another encoding version of MeCab is already installed,\
    35                   you should uninstall mecab beforehand."
    36         return -code error "MeCab for UTF-8 is missing"
    37     }
    38 }
     23depends_lib         port:mecab-utf8
    3924
    4025patchfiles          patch-Makefile.diff \
     
    4732use_configure       no
    4833
    49 variant universal {}
    50 if {[variant_isset universal]} {
    51     set archflags ${configure.universal_cxxflags}
    52 } else {
    53     set archflags ${configure.cxx_archflags}
    54 }
     34variant universal   {}
    5535
    5636build.args          CXX="${configure.cxx}" \
    57                     CXXFLAGS="${configure.cxxflags} ${archflags}"
     37                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
    5838
    5939test.run            yes
     
    7252}
    7353
    74 # a distfile folder for a newer version 0.98 exists, but is empty.
    75 livecheck.type      none
    76 #livecheck.type      regex
    77 #livecheck.url       http://sourceforge.net/projects/mecab/files/mecab-java
    78 #livecheck.regex     /${name}\/(\[0-9.\]+)/
     54livecheck.type      regex
     55livecheck.url       http://sourceforge.net/projects/mecab/files/mecab-java
     56livecheck.regex     ${name}\\/(\[0-9.\]+)
Note: See TracChangeset for help on using the changeset viewer.