[131799] trunk/dports/_resources/port1.0/group/haskell-1.0.tcl
cal at macports.org
cal at macports.org
Sun Jan 18 12:56:11 PST 2015
Revision: 131799
https://trac.macports.org/changeset/131799
Author: cal at macports.org
Date: 2015-01-18 12:56:11 -0800 (Sun, 18 Jan 2015)
Log Message:
-----------
haskell portgroup: run ghc-pkg list and ghc-pkg check before configure
This should make the logfiles for failed build attempts more helpful and give
me a clue as to why some builds fail on the buildbot.
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/haskell-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/haskell-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/haskell-1.0.tcl 2015-01-18 20:34:05 UTC (rev 131798)
+++ trunk/dports/_resources/port1.0/group/haskell-1.0.tcl 2015-01-18 20:56:11 UTC (rev 131799)
@@ -47,7 +47,8 @@
# Configuration for each compiler
array set haskell.compiler_configuration {
ghc {port ghc
- compiler ${prefix}/bin/ghc}
+ compiler ${prefix}/bin/ghc
+ ghc-pkg ${prefix}/bin/ghc-pkg}
}
proc haskell.setup {package version {compiler ghc} {register_scripts "yes"}} {
@@ -97,6 +98,13 @@
}
}
+ pre-configure [subst {
+ ui_debug "Listing installed haskell packages"
+ catch {system "[subst ${compiler_config(ghc-pkg)}] list"}
+ ui_debug "Running ghc-pkg check"
+ catch {system "[subst ${compiler_config(ghc-pkg)}] check; exit 1"}
+ }]
+
livecheck.type regex
livecheck.url http://hackage.haskell.org/package/${package}
livecheck.regex "/package/[quotemeta ${package}]-\[^/\]+/[quotemeta ${package}]-(\[^\"\]+)[quotemeta ${extract.suffix}]"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150118/b8a31177/attachment.html>
More information about the macports-changes
mailing list