[48200] trunk/dports/lang/ghc/Portfile

gwright at macports.org gwright at macports.org
Mon Mar 16 14:16:23 PDT 2009


Revision: 48200
          http://trac.macports.org/changeset/48200
Author:   gwright at macports.org
Date:     2009-03-16 14:16:21 -0700 (Mon, 16 Mar 2009)
Log Message:
-----------
Fix a bug in which some of the scripts that invoke the ghc* binaries
had the wrong paths.

Modified Paths:
--------------
    trunk/dports/lang/ghc/Portfile

Modified: trunk/dports/lang/ghc/Portfile
===================================================================
--- trunk/dports/lang/ghc/Portfile	2009-03-16 20:59:10 UTC (rev 48199)
+++ trunk/dports/lang/ghc/Portfile	2009-03-16 21:16:21 UTC (rev 48200)
@@ -4,7 +4,7 @@
 
 name		ghc
 version		6.10.1
-revision	8	
+revision	9
 categories	lang haskell
 maintainers	gwright
 platforms	darwin
@@ -235,17 +235,6 @@
 		--with-gmp-libraries=${prefix}/lib			\
 		--with-ghc='${workpath}/${name}-bootstrap/bin/ghc'
 
-variant no_opengl description {omit OpenGL support} {
-	configure.args-append --disable-opengl
-	configure.args-append --disable-glut
-}
-
-# The OpenAL variant does not work yet (see http://hackage.haskell.org/trac/ghc/ticket/2067)
-#variant openal description {include OpenAL support} {
-#	configure.args-append --enable-openal
-#	configure.args-append --enable-alut
-#}
-
 build	{
 	system "cd ${worksrcpath} && env DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib ${build.cmd}"
 }
@@ -258,8 +247,11 @@
 
 post-destroot	{
 	reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/ghc
+	reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/ghc-${version}
 	reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/ghci
+	reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/ghci-${version}
 	reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/ghc-pkg
+	reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/ghc-pkg-${version}
 	reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/haddock
 	reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/hsc2hs
 	reinplace s|${destroot}${prefix}|${prefix}|g ${destroot}${prefix}/bin/runghc
@@ -271,3 +263,4 @@
 
         system "ranlib ${destroot}${prefix}/lib/ghc-${version}/*.a"
 }
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090316/80b92a7e/attachment.html>


More information about the macports-changes mailing list