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

gwright at macports.org gwright at macports.org
Wed Nov 19 09:35:56 PST 2008


Revision: 42349
          http://trac.macports.org/changeset/42349
Author:   gwright at macports.org
Date:     2008-11-19 09:35:50 -0800 (Wed, 19 Nov 2008)
Log Message:
-----------
Make ghc depend on perl 5.8 explicitly (resolves #17263).

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

Modified: trunk/dports/lang/ghc/Portfile
===================================================================
--- trunk/dports/lang/ghc/Portfile	2008-11-19 16:52:01 UTC (rev 42348)
+++ trunk/dports/lang/ghc/Portfile	2008-11-19 17:35:50 UTC (rev 42349)
@@ -4,7 +4,7 @@
 
 name		ghc
 version		6.10.1
-revision	4
+revision	5
 categories	lang haskell
 maintainers	gwright
 platforms	darwin
@@ -40,6 +40,9 @@
                     sha1    279072813e265bb143c7e612d5900bb324c72f6c	\
                     rmd160  34fe542788284c1e2167a955c3219e7e539eff4e
 
+# ghc does not support a universal build:
+universal_variant	no
+
 patchfiles	patch-configure.ac.diff		\
 		patch-aclocal.m4.diff		\
 		patch-libraries-Makefile.diff
@@ -55,7 +58,11 @@
 # to _run_ ghc, since the mangler (an assembly to assembly transformation)
 # is a perl script. That's why it called the "Evil Mangler".
 #
-depends_run	port:perl5.8
+# Not only that, but since correctly handling whitespace is critical,
+# only perl 5.8 is known to work reliably.
+#
+depends_lib-append	port:perl5.8
+configure.env-append	PerlCmd=${prefix}/bin/perl5.8
 
 worksrcdir	${name}-${version}
 
@@ -198,7 +205,7 @@
 	  	puts $cfg "# Local configuration overrides for MacPorts"
 	  	puts $cfg "#"
 	  	puts $cfg "SRC_HC_OPTS += -I${prefix}/include -L${prefix}/lib"
-	  	puts $cfg "EXTRA_HSC2HS_OPTS += -I${prefix}/include"
+	  	puts $cfg "EXTRA_HSC2HS_OPTS += -I${prefix}/include -L${prefix}/lib"
 	  	puts $cfg "EXTRA_LD_OPTS += -L${prefix}/lib"
 	  	close $cfg
 }
@@ -210,8 +217,8 @@
 
 configure.ldflags-append	"-L/usr/lib"
 configure.cflags-append		"-I${prefix}/include"
-configure.env	DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib	\
-		ac_cv_lib_elf_nlist=no
+configure.env-append	DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib	\
+			ac_cv_lib_elf_nlist=no
 
 configure.args  --prefix=${destroot}${prefix}				\
 		--datadir=${destroot}${prefix}/share/${name}-${version}	\
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081119/5e14cc8a/attachment.html>


More information about the macports-changes mailing list