[93462] trunk/dports/devel/isl/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Wed May 23 06:03:12 PDT 2012
Revision: 93462
https://trac.macports.org/changeset/93462
Author: mcalhoun at macports.org
Date: 2012-05-23 06:03:11 -0700 (Wed, 23 May 2012)
Log Message:
-----------
isl: Force deactivation of older versions of cloog since newer versions depend on isl.
See #34477
Modified Paths:
--------------
trunk/dports/devel/isl/Portfile
Modified: trunk/dports/devel/isl/Portfile
===================================================================
--- trunk/dports/devel/isl/Portfile 2012-05-23 12:52:55 UTC (rev 93461)
+++ trunk/dports/devel/isl/Portfile 2012-05-23 13:03:11 UTC (rev 93462)
@@ -35,6 +35,30 @@
depends_lib port:gmp
+pre-activate {
+ # In r92992, cloog switched from installing it's own copy of isl to depending on isl, which means:
+ # *) cloog can't upgrade until isl is installed
+ # *) isl can't be installed until cloog is upgraded
+ #
+ # The "deactivate hack" forces old versions of cloog to deactivate before installing isl
+ # See #34477
+ #
+ # Legacy port deactivation hack added 2012-05-23
+ #
+ if { ![catch {set cloog_installed [lindex [registry_active cloog] 0]}] } {
+ # cloog is installed and active
+
+ set cloog_version [lindex ${cloog_installed} 1]
+ set cloog_epoch [lindex ${cloog_installed} 5]
+
+ if { [vercmp ${cloog_version} 0.16.3] <= 0 || ${cloog_epoch} <= 0 } {
+ # cloog is sufficiently old to install it's own copy of isl
+ # force deactivation
+ registry_deactivate cloog "" [list ports_nodepcheck 1]
+ }
+ }
+}
+
livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120523/e9c60678/attachment.html>
More information about the macports-changes
mailing list