[77496] trunk/dports/devel/autogen

rmstonecipher at macports.org rmstonecipher at macports.org
Fri Apr 1 05:36:25 PDT 2011


Revision: 77496
          http://trac.macports.org/changeset/77496
Author:   rmstonecipher at macports.org
Date:     2011-04-01 05:36:24 -0700 (Fri, 01 Apr 2011)
Log Message:
-----------
devel/autogen use ${configure.cc} per ticket #28951 (maintainer timeout)

Modified Paths:
--------------
    trunk/dports/devel/autogen/Portfile

Added Paths:
-----------
    trunk/dports/devel/autogen/files/
    trunk/dports/devel/autogen/files/patch_doc_auto-opts.tpl.diff

Modified: trunk/dports/devel/autogen/Portfile
===================================================================
--- trunk/dports/devel/autogen/Portfile	2011-04-01 08:58:47 UTC (rev 77495)
+++ trunk/dports/devel/autogen/Portfile	2011-04-01 12:36:24 UTC (rev 77496)
@@ -26,6 +26,11 @@
 configure.args	--mandir=${prefix}/share/man \
 				--infodir=${prefix}/share/info
 
+patchfiles      patch_doc_auto-opts.tpl.diff
+post-patch {
+    reinplace "s|%%CONFIGURE.CC%%|${configure.cc}|g" ${worksrcpath}/doc/auto-opts.tpl
+}
+
 test.run		yes
 test.target		check
 

Added: trunk/dports/devel/autogen/files/patch_doc_auto-opts.tpl.diff
===================================================================
--- trunk/dports/devel/autogen/files/patch_doc_auto-opts.tpl.diff	                        (rev 0)
+++ trunk/dports/devel/autogen/files/patch_doc_auto-opts.tpl.diff	2011-04-01 12:36:24 UTC (rev 77496)
@@ -0,0 +1,38 @@
+--- doc/auto-opts.tpl.orig	2011-03-28 22:46:20.000000000 -0500
++++ doc/auto-opts.tpl	2011-03-28 22:48:40.000000000 -0500
+@@ -104,7 +104,7 @@
+ @item
+ @code{autogen checkopt.def}
+ @item
+- at code{cc -o check -g $@{cflags@} checkopt.c $@{ldflags@}}
++ at code{%%CONFIGURE.CC%% -o check -g $@{cflags@} checkopt.c $@{ldflags@}}
+ @item
+ @code{./check --help}
+ @end enumerate
+@@ -188,7 +188,7 @@
+ autogen default-test.def
+ copts="-DTEST_DEFAULT_TEST_OPTS `autoopts-config cflags`"
+ lopts="`autoopts-config ldflags`"
+-cc -o default-test $@{copts@} default-test.c $@{lopts@}
++%%CONFIGURE.CC%% -o default-test $@{copts@} default-test.c $@{lopts@}
+ @end example
+ 
+ @noindent
+@@ -304,7 +304,7 @@
+ With that text in a file named ``hello.c'', this short script:
+ 
+ @example
+-cc -o hello hello.c `autoopts-config cflags ldflags`
++%%CONFIGURE.CC%% -o hello hello.c `autoopts-config cflags ldflags`
+ ./hello
+ echo 'greeting Buzz off' > hello.conf
+ ./hello
+@@ -318,7 +318,7 @@
+ @example
+ [= (texi-escape-encode (shell "
+ cd ${tmp_dir}
+-cc -o hello hello.c ${CFLAGS} ${LIBS} ${LDFLAGS} || \
++%%CONFIGURE.CC%% -o hello hello.c ${CFLAGS} ${LIBS} ${LDFLAGS} || \
+   die cannot compile hello
+ ./hello
+ echo 'greeting Buzz off' > hello.conf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110401/4aabdadf/attachment.html>


More information about the macports-changes mailing list