[63599] trunk/dports/sysutils/exec-wrapper
ryandesign at macports.org
ryandesign at macports.org
Tue Feb 9 17:55:48 PST 2010
Revision: 63599
http://trac.macports.org/changeset/63599
Author: ryandesign at macports.org
Date: 2010-02-09 17:55:45 -0800 (Tue, 09 Feb 2010)
Log Message:
-----------
exec-wrapper: respect CC environment variable
Modified Paths:
--------------
trunk/dports/sysutils/exec-wrapper/Portfile
Added Paths:
-----------
trunk/dports/sysutils/exec-wrapper/files/patch-CC.diff
Modified: trunk/dports/sysutils/exec-wrapper/Portfile
===================================================================
--- trunk/dports/sysutils/exec-wrapper/Portfile 2010-02-10 01:50:25 UTC (rev 63598)
+++ trunk/dports/sysutils/exec-wrapper/Portfile 2010-02-10 01:55:45 UTC (rev 63599)
@@ -4,7 +4,7 @@
name exec-wrapper
version 1.0.1
-revision 2
+revision 3
categories sysutils
platforms darwin
maintainers ryandesign
@@ -24,7 +24,8 @@
depends_run path:bin/gseq:coreutils
-patchfiles patch-exec-wrapper.in.diff
+patchfiles patch-exec-wrapper.in.diff \
+ patch-CC.diff
use_configure no
Added: trunk/dports/sysutils/exec-wrapper/files/patch-CC.diff
===================================================================
--- trunk/dports/sysutils/exec-wrapper/files/patch-CC.diff (rev 0)
+++ trunk/dports/sysutils/exec-wrapper/files/patch-CC.diff 2010-02-10 01:55:45 UTC (rev 63599)
@@ -0,0 +1,29 @@
+--- exec-wrapper.in.orig 2010-02-09 19:47:32.000000000 -0600
++++ exec-wrapper.in 2010-02-09 19:49:25.000000000 -0600
+@@ -18,6 +18,8 @@
+ #
+ ################################################################################
+
++CC=${CC-cc}
++
+ OPT_DEST="DEFAULT_DEST"
+ OPT_MODE=4750 # -rwsr-x---
+ OPT_MODE_A=4755 # -rwsr-xr-x
+@@ -165,7 +167,7 @@
+ checkUtil chmod
+ checkUtil install
+ checkUtil id
+-checkUtil cc
++checkUtil ${CC}
+
+ # Default owner and group.
+ OPT_OWNER=$( id -un )
+@@ -248,7 +250,7 @@
+ WRAPPER_SRC="${tmp}/wrapper.c"
+ WRAPPER_BIN="${tmp}/wrapper"
+ genSource "${OPT_REAL}" >"${WRAPPER_SRC}"
+-cc -o "${WRAPPER_BIN}" "${WRAPPER_SRC}" || die "Can't compile wrapper"
++${CC} -o "${WRAPPER_BIN}" "${WRAPPER_SRC}" || die "Can't compile wrapper"
+
+ # Install wrapper.
+ install -o "${OPT_OWNER}" -g "${OPT_GROUP}" -m "${OPT_MODE}" -s \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100209/db2b47ca/attachment.html>
More information about the macports-changes
mailing list