[86574] users/hum/textproc/chasen-base/Portfile

hum at macports.org hum at macports.org
Fri Oct 28 16:55:26 PDT 2011


Revision: 86574
          http://trac.macports.org/changeset/86574
Author:   hum at macports.org
Date:     2011-10-28 16:55:26 -0700 (Fri, 28 Oct 2011)
Log Message:
-----------
chasen-base: deactivate any old chasen port before activating as well as mecab-base; see #31732.

Modified Paths:
--------------
    users/hum/textproc/chasen-base/Portfile

Modified: users/hum/textproc/chasen-base/Portfile
===================================================================
--- users/hum/textproc/chasen-base/Portfile	2011-10-28 23:48:34 UTC (rev 86573)
+++ users/hum/textproc/chasen-base/Portfile	2011-10-28 23:55:26 UTC (rev 86574)
@@ -52,6 +52,17 @@
         ${destroot}${prefix}/share/doc/chasen
 }
 
+# deactivate any old chasen port.
+pre-activate {
+    if {[file exists ${prefix}/bin/chasen]
+        && ![catch {set vers [lindex [registry_active chasen] 0]}]
+        && ([rpm-vercomp [lindex $vers 1] 2.4.4] < 0 ||
+            [rpm-vercomp [lindex $vers 1] 2.4.4] == 0
+            && [rpm-vercomp [lindex $vers 2] 1] < 1)} {
+        registry_deactivate chasen "" [list ports_nodepcheck 1]
+    }
+}
+
 livecheck.type      regex
 livecheck.url       http://sourceforge.jp/projects/chasen-legacy/releases
 livecheck.regex     chasen-(\[0-9.a-z\-\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111028/454b70a4/attachment.html>


More information about the macports-changes mailing list