[107974] trunk/dports/perl/p5-encode-jis2k

dports at macports.org dports at macports.org
Tue Jul 9 20:47:43 PDT 2013


Revision: 107974
          https://trac.macports.org/changeset/107974
Author:   dports at macports.org
Date:     2013-07-09 20:47:43 -0700 (Tue, 09 Jul 2013)
Log Message:
-----------
p5-encode-jis2k: patch to find proper encxs for the version of perl
being built for

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	2013-07-10 03:39:04 UTC (rev 107973)
+++ trunk/dports/perl/p5-encode-jis2k/Portfile	2013-07-10 03:47:43 UTC (rev 107974)
@@ -5,7 +5,7 @@
 
 perl5.branches      5.8 5.10 5.12 5.14 5.16
 perl5.setup         Encode-JIS2K 0.02
-revision            4
+revision            5
 platforms           darwin
 maintainers         nomaintainer
 description         JIS X 0212 (aka JIS 2000) Encodings
@@ -19,3 +19,10 @@
 if {${perl5.major} != ""} {
 depends_lib-append  port:p${perl5.major}-encode
 }
+
+if {$subport != $name} {
+    patchfiles patch-Makefile.PL.diff
+    post-patch {
+        reinplace "s|@@ENC2XS@@|${prefix}/bin/enc2xs-${perl5.major}|g" ${worksrcpath}/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	2013-07-10 03:47:43 UTC (rev 107974)
@@ -0,0 +1,17 @@
+--- Makefile.PL.orig	2013-07-09 20:36:31.000000000 -0700
++++ Makefile.PL	2013-07-09 20:35:35.000000000 -0700
+@@ -18,13 +18,7 @@
+ 
+ 
+ my ($enc2xs, $encode_h) = ();
++$enc2xs = "@@ENC2XS@@";
+-PATHLOOP:
+-for my $d (split /:/, $ENV{PATH}){
+-    for my $f (qw/enc2xs enc2xs5.7.3/){
+-        my $path = File::Spec->catfile($d, $f);
+-        -x $path and $enc2xs = $path and last PATHLOOP;
+-    }
+-}
+ $enc2xs or die "enc2xs not found!";
+ print "enc2xs is $enc2xs\n";
+ my %encode_h = ();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130709/ec7c66b3/attachment.html>


More information about the macports-changes mailing list