[86584] trunk/dports/textproc/cabocha/Portfile

hum at macports.org hum at macports.org
Fri Oct 28 19:00:41 PDT 2011


Revision: 86584
          http://trac.macports.org/changeset/86584
Author:   hum at macports.org
Date:     2011-10-28 19:00:40 -0700 (Fri, 28 Oct 2011)
Log Message:
-----------
cabocha: add depends_lib port:mecab-utf8 and remove pre-fetch; update checksums.

Modified Paths:
--------------
    trunk/dports/textproc/cabocha/Portfile

Modified: trunk/dports/textproc/cabocha/Portfile
===================================================================
--- trunk/dports/textproc/cabocha/Portfile	2011-10-29 01:06:56 UTC (rev 86583)
+++ trunk/dports/textproc/cabocha/Portfile	2011-10-29 02:00:40 UTC (rev 86584)
@@ -5,6 +5,7 @@
 
 name                cabocha
 version             0.60
+revision            1
 categories          textproc japanese
 platforms           darwin
 maintainers         hum openmaintainer
@@ -18,27 +19,12 @@
 
 master_sites        googlecode
 
-checksums           sha1    3792c486cbe06d998bd1b749f10f5f2803f8ff60 \
-                    rmd160  ba342d25854f96c80ca0153d78750eaddee46be6
+checksums           rmd160  ba342d25854f96c80ca0153d78750eaddee46be6 \
+                    sha256  7990ef08e7c3a02f67212028b7a77048e3e692c2dac38f622498045a09aca1ff
 
-depends_lib         port:crfpp
+depends_lib         port:crfpp \
+                    port:mecab-utf8
 
-# 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.
-
-pre-fetch {
-    catch {exec $prefix/bin/mecab -D} dict_info
-    if {![regexp {charset:\s+utf\-8} $dict_info]} {
-        ui_error "${distname} 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-configure.diff
 
 configure.args      --with-charset=UTF8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111028/d3af5348/attachment.html>


More information about the macports-changes mailing list