[27581] trunk/dports/lang/llvm-gcc4

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 8 21:43:40 PDT 2007


Revision: 27581
          http://trac.macosforge.org/projects/macports/changeset/27581
Author:   erickt at macports.org
Date:     2007-08-08 21:43:40 -0700 (Wed, 08 Aug 2007)

Log Message:
-----------
/usr/bin/gcc was finding and using an llvm exectuable. This patch prevents
this from happening

Modified Paths:
--------------
    trunk/dports/lang/llvm-gcc4/Portfile

Added Paths:
-----------
    trunk/dports/lang/llvm-gcc4/files/
    trunk/dports/lang/llvm-gcc4/files/patch-gcc_Makefile.in

Modified: trunk/dports/lang/llvm-gcc4/Portfile
===================================================================
--- trunk/dports/lang/llvm-gcc4/Portfile	2007-08-09 01:45:59 UTC (rev 27580)
+++ trunk/dports/lang/llvm-gcc4/Portfile	2007-08-09 04:43:40 UTC (rev 27581)
@@ -4,6 +4,7 @@
 
 name                    llvm-gcc4
 version                 2.0
+revision                1
 categories              lang
 platforms               darwin
 maintainers             erickt at macports.org
@@ -23,10 +24,12 @@
 
 worksrcdir              build
 
-pre-configure {
+pre-patch {
   file mkdir ${workpath}/build
 }
 
+patchfiles              patch-gcc_Makefile.in
+
 configure.cmd           ../llvm-gcc4-${version}.source/configure
 
 configure.args-append   --enable-llvm=${prefix}/lib/llvm/obj \

Added: trunk/dports/lang/llvm-gcc4/files/patch-gcc_Makefile.in
===================================================================
--- trunk/dports/lang/llvm-gcc4/files/patch-gcc_Makefile.in	                        (rev 0)
+++ trunk/dports/lang/llvm-gcc4/files/patch-gcc_Makefile.in	2007-08-09 04:43:40 UTC (rev 27581)
@@ -0,0 +1,11 @@
+--- ../llvm-gcc4-2.0.source/gcc/Makefile.in.old	2007-08-08 21:09:17.000000000 -0700
++++ ../llvm-gcc4-2.0.source/gcc/Makefile.in	2007-08-08 21:09:39.000000000 -0700
+@@ -3658,7 +3658,7 @@
+ 	-$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
+ 	-rm -f $(DESTDIR)$(bindir)/$(GCC_TARGET_INSTALL_NAME)-$(version)
+ 	-( cd $(DESTDIR)$(bindir) && \
+-	   $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version) )
++	   $(LN) $(GCC_INSTALL_NAME)$(exeext) $(GCC_TARGET_INSTALL_NAME)-$(version) )
+ 	-if [ -f gcc-cross$(exeext) ] ; then \
+ 	  if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
+ 	    rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \

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


More information about the macports-changes mailing list