[54248] trunk/dports/perl/p5-net-libidn

ryandesign at macports.org ryandesign at macports.org
Thu Jul 23 13:58:42 PDT 2009


Revision: 54248
          http://trac.macports.org/changeset/54248
Author:   ryandesign at macports.org
Date:     2009-07-23 13:58:41 -0700 (Thu, 23 Jul 2009)
Log Message:
-----------
p5-net-libidn: use ${configure.cc}; closes #20345 (maintainer timeout)

Modified Paths:
--------------
    trunk/dports/perl/p5-net-libidn/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-net-libidn/files/
    trunk/dports/perl/p5-net-libidn/files/patch-Makefile.PL.diff

Modified: trunk/dports/perl/p5-net-libidn/Portfile
===================================================================
--- trunk/dports/perl/p5-net-libidn/Portfile	2009-07-23 20:17:22 UTC (rev 54247)
+++ trunk/dports/perl/p5-net-libidn/Portfile	2009-07-23 20:58:41 UTC (rev 54248)
@@ -14,5 +14,12 @@
 platforms         darwin
 
 depends_lib-append      port:libidn
+
+patchfiles-append       patch-Makefile.PL.diff
+
+post-patch {
+    reinplace s|@CC@|${configure.cc}|g ${worksrcpath}/Makefile.PL
+}
+
 configure.env           C_INCLUDE_PATH="${prefix}/include" \
                         LIBRARY_PATH="${prefix}/lib"

Added: trunk/dports/perl/p5-net-libidn/files/patch-Makefile.PL.diff
===================================================================
--- trunk/dports/perl/p5-net-libidn/files/patch-Makefile.PL.diff	                        (rev 0)
+++ trunk/dports/perl/p5-net-libidn/files/patch-Makefile.PL.diff	2009-07-23 20:58:41 UTC (rev 54248)
@@ -0,0 +1,11 @@
+--- Makefile.PL.orig	2007-12-12 16:28:08.000000000 -0600
++++ Makefile.PL	2009-07-17 02:01:17.000000000 -0500
+@@ -167,7 +167,7 @@
+ 		return 0;
+ 	}
+ 
+-	foreach my $cc (qw/cc gcc/)
++	my $cc = '@CC@';
+ 	{
+ 		unlink($test);
+ 		system "$cc $cflags $ldflags -o $test $test.c";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090723/436613a2/attachment-0001.html>


More information about the macports-changes mailing list