[28298] trunk/dports/lang

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 27 16:40:35 PDT 2007


Revision: 28298
          http://trac.macosforge.org/projects/macports/changeset/28298
Author:   mww at macports.org
Date:     2007-08-27 16:40:35 -0700 (Mon, 27 Aug 2007)

Log Message:
-----------
use configure.compiler instead

Modified Paths:
--------------
    trunk/dports/lang/gcc40/Portfile
    trunk/dports/lang/gcc41/Portfile
    trunk/dports/lang/gcc42/Portfile
    trunk/dports/lang/gcc43/Portfile

Modified: trunk/dports/lang/gcc40/Portfile
===================================================================
--- trunk/dports/lang/gcc40/Portfile	2007-08-27 23:38:50 UTC (rev 28297)
+++ trunk/dports/lang/gcc40/Portfile	2007-08-27 23:40:35 UTC (rev 28298)
@@ -41,6 +41,9 @@
 	file mkdir ${worksrcpath}
 }
 
+#patchfiles		patch-config-i386-darwin.h
+#patch.dir		${workpath}/gcc-${version}
+
 configure.cmd	${workpath}/gcc-${version}/configure
 configure.args	--enable-languages=c,c++,java,objc,f95 \
 				--libdir=${prefix}/lib/${name} \
@@ -76,7 +79,7 @@
 }
 
 platform darwin 8 {
-	configure.env	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
+	configure.compiler	gcc-4.0
 }
 
 platform powerpc {

Modified: trunk/dports/lang/gcc41/Portfile
===================================================================
--- trunk/dports/lang/gcc41/Portfile	2007-08-27 23:38:50 UTC (rev 28297)
+++ trunk/dports/lang/gcc41/Portfile	2007-08-27 23:40:35 UTC (rev 28298)
@@ -66,10 +66,13 @@
 	cd ${destroot}${prefix}
 	file delete -force share/man/man7
 	file delete -force share/info
+	foreach b { c++ cpp fastjar g++ gcc gccbug gcj gcjh gcov gfortran gjnih grepjar } {
+		system "cd ${destroot}${prefix}/bin && ln -s ${b}-mp-4.1 ${b}-dp-4.1"
+	}
 }
 
 platform darwin 8 {
-	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
+	configure.compiler	gcc-4.0
 }
 
 platform darwin i386 {

Modified: trunk/dports/lang/gcc42/Portfile
===================================================================
--- trunk/dports/lang/gcc42/Portfile	2007-08-27 23:38:50 UTC (rev 28297)
+++ trunk/dports/lang/gcc42/Portfile	2007-08-27 23:40:35 UTC (rev 28298)
@@ -39,6 +39,13 @@
 
 worksrcdir		build
 
+patch {
+	# fix names of infopages
+	foreach f { cpp cppinternals gcc gccint} {
+		reinplace "s|${f}.info|${f}-mp-${version}.info|g" ${workpath}/gcc-${version}/gcc/doc/${f}.texi
+	}
+}
+
 pre-configure {
 	file mkdir ${worksrcpath}
 }
@@ -61,9 +68,11 @@
 build.target		bootstrap
 build.args		-j 2
 
+destroot.target		install install-info-host
+
 post-destroot {
-	file delete -force ${destroot}${prefix}/share/man/man7 \
-		${destroot}${prefix}/share/info
+	file delete -force ${destroot}${prefix}/share/man/man7
+#		${destroot}${prefix}/share/info
 }
 
 #platform darwin 7 {
@@ -73,7 +82,7 @@
 #}
 
 platform darwin 8 {
-	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
+	configure.compiler	gcc-4.0
 }
 
 post-destroot {

Modified: trunk/dports/lang/gcc43/Portfile
===================================================================
--- trunk/dports/lang/gcc43/Portfile	2007-08-27 23:38:50 UTC (rev 28297)
+++ trunk/dports/lang/gcc43/Portfile	2007-08-27 23:40:35 UTC (rev 28298)
@@ -74,7 +74,7 @@
 #}
 
 platform darwin 8 {
-	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
+	configure.compiler	gcc-4.0
 }
 
 platform powerpc {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070827/61b7a61a/attachment.html


More information about the macports-changes mailing list