[54981] trunk/dports/lang/ghc-devel/Portfile
gwright at macports.org
gwright at macports.org
Wed Aug 5 07:16:38 PDT 2009
Revision: 54981
http://trac.macports.org/changeset/54981
Author: gwright at macports.org
Date: 2009-08-05 07:16:35 -0700 (Wed, 05 Aug 2009)
Log Message:
-----------
Force immediate exit with a message that ghc-devel is not currently supported.
When there is a stable build procedure, the port can be reenabled.
Modified Paths:
--------------
trunk/dports/lang/ghc-devel/Portfile
Modified: trunk/dports/lang/ghc-devel/Portfile
===================================================================
--- trunk/dports/lang/ghc-devel/Portfile 2009-08-05 06:53:38 UTC (rev 54980)
+++ trunk/dports/lang/ghc-devel/Portfile 2009-08-05 14:16:35 UTC (rev 54981)
@@ -1,9 +1,9 @@
# $Id$
PortSystem 1.0
+
name ghc-devel
-version 6.7
-revision 2
+version 6.11
categories lang
maintainers gwright
platforms darwin
@@ -24,29 +24,35 @@
homepage http://www.haskell.org/ghc/
set darcs_site http://darcs.haskell.org/
+# Fetch using git is not yet supported in the released version
+# of MacPorts (requires 1.7).
+#
+#fetch.type git
+#git.url http://darcs.haskell.org/ghc.git
+
set worksrcdir ghc
-fetch { cd ${workpath}
- system "darcs get --partial ${darcs_site}ghc"
+pre-fetch {
+ return -code error "ghc-devel is not currently supported"
+}
- cd ${worksrcdir}
- system "chmod +x ./darcs-all"
- system "./darcs-all get"
- if { [variant_isset extra] } {
- system "./darcs-all --extra get"
- }
+fetch {
+ system "cd ${workpath} && git clone ${darcs_site}/ghc.git"
}
+
+variant test description {build testsuite and nofb benchmarks} {
+ ui_msg "testsuite and nofib benchmarks will be built"
+}
-variant extra { ui_msg "extra libraries will be built" }
-variant test { ui_msg "testsuite and nofib benchmarks will be built" }
+post-fetch {
+ system "cd ${worksrcpath} && chmod +x ./sync-all"
+ system "cd ${worksrcpath} && ./sync-all get"
+ system "cd ${worksrcpath} && ./sync-all --extralibs get"
-post-fetch { cd ${worksrcpath}
if { [variant_isset test] } {
- system "darcs get --partial ${darcs_site}testsuite"
- system "darcs get --partial ${darcs_site}nofib"
+ system "cd ${worksrcpath} && ./sync-all --testsuite get"
+ system "cd ${worksrcpath} && ./sync-all --nofib get"
}
-
- system "./darcs-all pull -a"
}
extract { }
@@ -54,14 +60,14 @@
depends_build port:ghc \
port:alex \
- port:darcs \
- port:happy
+ port:happy \
+ port:git-core
-depends_lib port:readline \
+depends_lib port:libedit \
port:gmp
#user_notes All of the executables have the version as a suffix, \
-# so you must invoke ghc-6.7 or ghci-6.7 or hsc2hs-6.7... \
+# so you must invoke ghc-6.9 or ghci-6.9 or hsc2hs-6.9... \
# Not all of the files in /bin are different from the \
# production version, but it seems safer not to overwrite \
# the versions that are officially supported.
@@ -71,47 +77,26 @@
# the five scripts which actually have the installation \
# path hard coded.
-platform darwin 7 {
- depends_build-append path:${prefix}/bin/gmake:gmake
+post-patch {
+ system "touch ${worksrcpath}/libraries/base3-compat/LICENSE"
+}
- pre-configure {
- set cfg [open "${worksrcpath}/mk/build.mk" w]
- puts $cfg "#"
- puts $cfg "# Local configuration overrides for MacPorts"
- puts $cfg "#"
- puts $cfg "SRC_CC_OPTS += -I${prefix}/include"
- puts $cfg "SRC_HC_OPTS += -I${prefix}/include -I/usr/include -L${prefix}/lib -L/usr/lib"
- puts $cfg "EXTRA_HSC2HS_OPTS += -I${prefix}/include"
- puts $cfg "EXTRA_LD_OPTS += -L${prefix}/lib"
- puts $cfg "EXTRA_LD_OPTS += -L/usr/lib"
- close $cfg
+pre-configure {
+ set cfg [open "${worksrcpath}/mk/build.mk" w]
+ puts $cfg "#"
+ puts $cfg "# Local configuration overrides for MacPorts"
+ puts $cfg "#"
+ puts $cfg "SRC_CC_OPTS += -I${prefix}/include"
+ puts $cfg "SRC_HC_OPTS += -I${prefix}/include -I/usr/include -L${prefix}/lib -L/usr/lib"
+ puts $cfg "EXTRA_HSC2HS_OPTS += -I${prefix}/include"
+ puts $cfg "EXTRA_LD_OPTS += -L${prefix}/lib"
+ puts $cfg "EXTRA_LD_OPTS += -L/usr/lib"
+ close $cfg
- cd ${worksrcpath}
- system "sh boot"
- }
-
- build.cmd gmake
- }
-
-
-platform darwin 8 {
- pre-configure {
- set cfg [open "${worksrcpath}/mk/build.mk" w]
- puts $cfg "#"
- puts $cfg "# Local configuration overrides for MacPorts"
- puts $cfg "#"
- puts $cfg "SRC_CC_OPTS += -I${prefix}/include"
- puts $cfg "SRC_HC_OPTS += -I${prefix}/include -I/usr/include -L${prefix}/lib -L/usr/lib"
- puts $cfg "EXTRA_HSC2HS_OPTS += -I${prefix}/include"
- puts $cfg "EXTRA_LD_OPTS += -L${prefix}/lib"
- puts $cfg "EXTRA_LD_OPTS += -L/usr/lib"
- close $cfg
-
- cd ${worksrcpath}
- system "sh boot"
- }
+ system "cd ${worksrcpath} && sh boot"
}
+
configure.env DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib
configure.cflags-append "-I${prefix}/include"
@@ -124,16 +109,17 @@
--disable-openal \
--disable-alut
-variant noopengl { configure.args-append --disable-hopengl }
-
-build {
- system "env DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib ${build.cmd} ${build.target}"
+variant no_opengl {
+ configure.args-append --disable-opengl
+ configure.args-append --disable-glut
}
+build.env DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib
+
post-destroot { cd ${destroot}${prefix}/bin
- set ghc_script [ glob ghc-${version}.* ]
- set ghci_script [ glob ghci-${version}.* ]
- set ghc-pkg_script [ glob ghc-pkg-${version}.* ]
+ set ghc_script [ glob ${destroot}${prefix}/bin/ghc-${version}.* ]
+ set ghci_script [ glob ${destroot}${prefix}/bin/ghci-${version}.* ]
+ set ghc-pkg_script [ glob ${destroot}${prefix}/bin/ghc-pkg-${version}.* ]
foreach script_name [concat ${ghc_script} ${ghci_script} ${ghc-pkg_script} ] {
reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}${prefix}/bin/${script_name}
@@ -145,8 +131,7 @@
reinplace "s|\\\$@\"\}|\\\$@\"\} -L${prefix}/lib -I${prefix}/include |" ${destroot}${prefix}/bin/ghc
- cd ${destroot}${prefix}/lib
- set ghc_libdir [ glob ghc-${version}.* ]
+ set ghc_libdir [ glob ${destroot}${prefix}/bin/ghc-${version}.* ]
reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}${prefix}/lib/${ghc_libdir}/package.conf
file delete ${destroot}/${prefix}/bin/ghc
@@ -159,7 +144,6 @@
file rename ${destroot}/${prefix}/bin/${bin_name} ${destroot}${prefix}/bin/${bin_name}-${version}.${ghc_date}
}
- cd ${destroot}${prefix}/lib/${ghc_libdir}
- system "ranlib *.a"
+ system "cd ${destroot}${prefix}/lib/${ghc_libdir} && ranlib *.a"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090805/eae5e4b5/attachment.html>
More information about the macports-changes
mailing list