[137338] trunk/dports/perl/p5-encode-jis2k
devans at macports.org
devans at macports.org
Tue Jun 9 07:47:31 PDT 2015
Revision: 137338
https://trac.macports.org/changeset/137338
Author: devans at macports.org
Date: 2015-06-09 07:47:31 -0700 (Tue, 09 Jun 2015)
Log Message:
-----------
p5-encode-jis2k: add patch to fix build that fails if perl5 is not installed, increment revision to fix configuration in cases where perl5 was installed but did not match the perl branch being built, build now uses the correct perl without reference to perl5.
Modified Paths:
--------------
trunk/dports/perl/p5-encode-jis2k/Portfile
Added Paths:
-----------
trunk/dports/perl/p5-encode-jis2k/files/
trunk/dports/perl/p5-encode-jis2k/files/patch-Makefile.PL.diff
Modified: trunk/dports/perl/p5-encode-jis2k/Portfile
===================================================================
--- trunk/dports/perl/p5-encode-jis2k/Portfile 2015-06-09 14:26:24 UTC (rev 137337)
+++ trunk/dports/perl/p5-encode-jis2k/Portfile 2015-06-09 14:47:31 UTC (rev 137338)
@@ -6,6 +6,7 @@
perl5.branches 5.16 5.18 5.20
perl5.setup Encode-JIS2K 0.03
+revision 1
license {Artistic-1 GPL}
platforms darwin
maintainers nomaintainer
@@ -18,5 +19,12 @@
if {${perl5.major} != ""} {
depends_lib-append \
- port:p${perl5.major}-encode
+ port:p${perl5.major}-encode
+
+ patchfiles patch-Makefile.PL.diff
+
+ post-patch {
+ reinplace -W ${worksrcpath} "s|__MP__ENC2XS__|enc2xs-${perl5.major}|" \
+ Makefile.PL
+ }
}
Added: trunk/dports/perl/p5-encode-jis2k/files/patch-Makefile.PL.diff
===================================================================
--- trunk/dports/perl/p5-encode-jis2k/files/patch-Makefile.PL.diff (rev 0)
+++ trunk/dports/perl/p5-encode-jis2k/files/patch-Makefile.PL.diff 2015-06-09 14:47:31 UTC (rev 137338)
@@ -0,0 +1,11 @@
+--- Makefile.PL.orig 2015-06-09 06:29:03.000000000 -0700
++++ Makefile.PL 2015-06-09 06:30:57.000000000 -0700
+@@ -29,7 +29,7 @@
+ use File::Basename qw(dirname);
+ my $dpath = dirname $secure_perl_path;
+ my ($enc2xs, $encode_h) = ();
+-my $enc2xs_fpath = File::Spec->catfile($dpath, 'enc2xs');
++my $enc2xs_fpath = File::Spec->catfile($dpath, '__MP__ENC2XS__');
+ $enc2xs = $enc2xs_fpath
+ if (-x $enc2xs_fpath);
+ $enc2xs or die "enc2xs not found!";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150609/d78eb7ae/attachment.html>
More information about the macports-changes
mailing list