[96880] trunk/dports/devel/hs-platform-ghc/Portfile
cal at macports.org
cal at macports.org
Mon Aug 20 14:32:18 PDT 2012
Revision: 96880
https://trac.macports.org/changeset/96880
Author: cal at macports.org
Date: 2012-08-20 14:32:17 -0700 (Mon, 20 Aug 2012)
Log Message:
-----------
hs-platform-ghc: add upgrade path for haskell-platform users
Modified Paths:
--------------
trunk/dports/devel/hs-platform-ghc/Portfile
Modified: trunk/dports/devel/hs-platform-ghc/Portfile
===================================================================
--- trunk/dports/devel/hs-platform-ghc/Portfile 2012-08-20 21:21:48 UTC (rev 96879)
+++ trunk/dports/devel/hs-platform-ghc/Portfile 2012-08-20 21:32:17 UTC (rev 96880)
@@ -559,5 +559,25 @@
}
}
+pre-activate {
+ # Previously, the ghc port was used to specify the dependency of
+ # haskell-platform. To provide an upgrade path to this port providing
+ # ghc (which conflicts with the ghc port), we need to deactivate the
+ # ghc port.
+
+ # Taken from the isl port, added 2012-08-20
+ if {![catch {set ghc_installed [lindex [registry_active ghc] 0]}]} {
+ # ghc is installed and active
+ set ghc_version [lindex ${ghc_installed} 1]
+ set ghc_epoch [lindex ${ghc_installed} 5]
+
+ if {${ghc_epoch} == 0 && [vercmp ${ghc_version} 7.4.2] < 0} {
+ # the ghc port was probably installed as dependency of
+ # haskell-platform, deactivate it
+ registry_deactivate_composite ghc "" [list ports_nodepscheck 1]
+ }
+ }
+}
+
livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120820/f9568111/attachment-0001.html>
More information about the macports-changes
mailing list