[49123] trunk/dports/lang/smlnj

mcalhoun at macports.org mcalhoun at macports.org
Fri Apr 3 23:12:20 PDT 2009


Revision: 49123
          http://trac.macports.org/changeset/49123
Author:   mcalhoun at macports.org
Date:     2009-04-03 23:12:20 -0700 (Fri, 03 Apr 2009)
Log Message:
-----------
smlnj: Ensure correct compiler is used.
Fixes #19054 (maintainer timeout).

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

Added Paths:
-----------
    trunk/dports/lang/smlnj/files/patch-install.sh.diff

Modified: trunk/dports/lang/smlnj/Portfile
===================================================================
--- trunk/dports/lang/smlnj/Portfile	2009-04-04 06:12:04 UTC (rev 49122)
+++ trunk/dports/lang/smlnj/Portfile	2009-04-04 06:12:20 UTC (rev 49123)
@@ -61,6 +61,10 @@
 	checksums-append boot.x86-unix.tgz sha1 433e02047ce1377af5b2d5fbd53cb9142bb8b15c
 }
 
+post-patch {
+	reinplace "s|__MACPORTS_CC__|${configure.cc}|" ${worksrcpath}/config/install.sh
+}
+
 ### extract ###
 pre-extract {
 	file mkdir ${worksrcpath}
@@ -69,7 +73,7 @@
 extract.only         config.tgz
 
 ### patch ###
-patchfiles           _arch-n-opsys.diff
+patchfiles           _arch-n-opsys.diff patch-install.sh.diff
 
 ### configure ###
 configure {

Added: trunk/dports/lang/smlnj/files/patch-install.sh.diff
===================================================================
--- trunk/dports/lang/smlnj/files/patch-install.sh.diff	                        (rev 0)
+++ trunk/dports/lang/smlnj/files/patch-install.sh.diff	2009-04-04 06:12:20 UTC (rev 49123)
@@ -0,0 +1,10 @@
+--- config/install.sh.orig	2007-06-12 12:43:58.000000000 -0400
++++ config/install.sh	2009-03-30 13:45:46.000000000 -0400
+@@ -318,6 +318,7 @@
+ else
+     "$CONFIGDIR"/unpack "$ROOT" runtime
+     cd "$BASEDIR"/runtime/objs
++    /usr/bin/sed -i bak 's|cc |__MACPORTS_CC__ |' mk.$ARCH-$OPSYS
+     echo $this: Compiling the run-time system.
+     $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS
+     if [ -x run.$ARCH-$OPSYS ]; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090403/c8239255/attachment.html>


More information about the macports-changes mailing list