Changeset 86584


Ignore:
Timestamp:
Oct 29, 2011, 2:00:40 AM (8 years ago)
Author:
hum@…
Message:

cabocha: add depends_lib port:mecab-utf8 and remove pre-fetch; update checksums.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/cabocha/Portfile

    r83489 r86584  
    66name                cabocha
    77version             0.60
     8revision            1
    89categories          textproc japanese
    910platforms           darwin
     
    1920master_sites        googlecode
    2021
    21 checksums           sha1    3792c486cbe06d998bd1b749f10f5f2803f8ff60 \
    22                     rmd160  ba342d25854f96c80ca0153d78750eaddee46be6
     22checksums           rmd160  ba342d25854f96c80ca0153d78750eaddee46be6 \
     23                    sha256  7990ef08e7c3a02f67212028b7a77048e3e692c2dac38f622498045a09aca1ff
    2324
    24 depends_lib         port:crfpp
    25 
    26 # This port requires mecab+utf8 althought the default character encoding of
    27 # mecab is not utf-8 but euc-jp.
    28 # It will just check the encoding of mecab in the pre-fetch phase instead of
    29 # depends_lib, because depends_lib could not specify a variant.
    30 
    31 pre-fetch {
    32     catch {exec $prefix/bin/mecab -D} dict_info
    33     if {![regexp {charset:\s+utf\-8} $dict_info]} {
    34         ui_error "${distname} requires MeCab for UTF-8.\
    35                   Please install mecab +utf8 first.\
    36                   If another encoding version of MeCab is already installed,\
    37                   you should uninstall mecab beforehand."
    38         return -code error "MeCab for UTF-8 is missing"
    39     }
    40 }
     25depends_lib         port:crfpp \
     26                    port:mecab-utf8
    4127
    4228patchfiles          patch-configure.diff
Note: See TracChangeset for help on using the changeset viewer.