Revision: 94801 https://trac.macports.org/changeset/94801 Author: cal@macports.org Date: 2012-06-29 16:15:57 -0700 (Fri, 29 Jun 2012) Log Message: ----------- p5-eperl: Fix build when "perl -MExtUtils::Embed -e ldopts" returns archflags, reorganize, fix some lint warnings Modified Paths: -------------- trunk/dports/perl/p5-eperl/Portfile Added Paths: ----------- trunk/dports/perl/p5-eperl/files/0009-configure-remove-archflags-from-perl_dla.diff Modified: trunk/dports/perl/p5-eperl/Portfile =================================================================== --- trunk/dports/perl/p5-eperl/Portfile 2012-06-29 23:05:05 UTC (rev 94800) +++ trunk/dports/perl/p5-eperl/Portfile 2012-06-29 23:15:57 UTC (rev 94801) @@ -11,7 +11,7 @@ distname eperl-${version} license {Artistic GPL} platforms darwin -categories www perl +categories perl www maintainers cal openmaintainer description Embedded Perl Language @@ -23,7 +23,7 @@ master_sites ftp://ftp.ossp.org/pkg/tool/eperl/ \ ftp://freebsd.isc.org/pub/FreeBSD/ports/distfiles/ \ - http://freebsd.isc.org/pub/FreeBSD/ports/distfiles/ + http://freebsd.isc.org/pub/FreeBSD/ports/distfiles/ checksums rmd160 708c72d4a2bc494e9b3e953aa13efd0fe7933b98 \ sha256 a9add61ed59e3030027e0ff5c00195627d7309be48162c9b315f57d27730a295 @@ -42,7 +42,8 @@ 0005-fix-preprocessor-comments-to-behave-as-documented.diff \ 0006-fix-format-string-error-in-perl-stderr.diff \ 0007-debian-2.2.14-16-modified-and-added-shtool.diff \ - 0008-wml-2.0.11-merge.diff + 0008-wml-2.0.11-merge.diff \ + 0009-configure-remove-archflags-from-perl_dla.diff if {$subport != $name} { post-patch { @@ -51,16 +52,6 @@ } } -configure.args --with-perl=${perl5.bin} \ - --enable-debug \ - CC=\"${configure.cc} [get_canonical_archflags cc]\" \ - LD=\"${configure.cc} [get_canonical_archflags ld]\" - -destroot.destdir prefix=${destroot}${prefix} \ - mandir=${destroot}${prefix}/share/man - -test.run yes - # replaced_by and subport magic if {[string match p5-* $name]} { set rootname [string range $name 3 end] @@ -87,3 +78,15 @@ } } } + +# keep this behind the block setting perl5.major +configure.args --with-perl=${perl5.bin} \ + --enable-debug \ + CC=\"${configure.cc} [get_canonical_archflags cc]\" \ + LD=\"${configure.cc} [get_canonical_archflags ld]\" + +destroot.destdir prefix=${destroot}${prefix} \ + mandir=${destroot}${prefix}/share/man + +test.run yes + Added: trunk/dports/perl/p5-eperl/files/0009-configure-remove-archflags-from-perl_dla.diff =================================================================== --- trunk/dports/perl/p5-eperl/files/0009-configure-remove-archflags-from-perl_dla.diff (rev 0) +++ trunk/dports/perl/p5-eperl/files/0009-configure-remove-archflags-from-perl_dla.diff 2012-06-29 23:15:57 UTC (rev 94801) @@ -0,0 +1,11 @@ +--- a/configure.orig 2012-06-30 01:06:41.000000000 +0200 ++++ a/configure 2012-06-30 01:09:59.000000000 +0200 +@@ -1876,7 +1876,7 @@ + #define HAVE_PERL_DYNALOADER 1 + _ACEOF + +- perl_dla=`perl -MExtUtils::Embed -e ldopts` ++ perl_dla=`perl -MExtUtils::Embed -e ldopts | sed -E 's/-arch [^ ]+//g'` + ;; + * ) + rc=no
participants (1)
-
cal@macports.org