[107590] trunk/dports/perl/p5-encode-eucjpascii

dports at macports.org dports at macports.org
Tue Jul 2 18:37:37 PDT 2013


Revision: 107590
          https://trac.macports.org/changeset/107590
Author:   dports at macports.org
Date:     2013-07-02 18:37:37 -0700 (Tue, 02 Jul 2013)
Log Message:
-----------
p5-encode-eucjpascii: fix path to enc2xs

Modified Paths:
--------------
    trunk/dports/perl/p5-encode-eucjpascii/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-encode-eucjpascii/files/
    trunk/dports/perl/p5-encode-eucjpascii/files/patch-Makefile.PL.diff

Modified: trunk/dports/perl/p5-encode-eucjpascii/Portfile
===================================================================
--- trunk/dports/perl/p5-encode-eucjpascii/Portfile	2013-07-03 01:25:06 UTC (rev 107589)
+++ trunk/dports/perl/p5-encode-eucjpascii/Portfile	2013-07-03 01:37:37 UTC (rev 107590)
@@ -18,7 +18,9 @@
 checksums           sha256 f998d34d55fd9c82cf910786a0448d1edfa60bf68e2c2306724ca67c629de861 \
                     rmd160 8b266e96e601098b8b3bfafbdd51792112ec31c9
 
-
-
-
-
+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-eucjpascii/files/patch-Makefile.PL.diff
===================================================================
--- trunk/dports/perl/p5-encode-eucjpascii/files/patch-Makefile.PL.diff	                        (rev 0)
+++ trunk/dports/perl/p5-encode-eucjpascii/files/patch-Makefile.PL.diff	2013-07-03 01:37:37 UTC (rev 107590)
@@ -0,0 +1,18 @@
+--- Makefile.PL.orig	2013-07-02 18:25:02.000000000 -0700
++++ Makefile.PL	2013-07-02 18:26:00.000000000 -0700
+@@ -17,14 +17,7 @@
+ #### DO NOT EDIT BEYOND THIS POINT!
+ require File::Spec;
+ my ($enc2xs, $encode_h) = ();
+-PATHLOOP:
+-for my $d (@Config{qw/bin sitebin vendorbin/}, 
+-	   (split /$Config{path_sep}/o, $ENV{PATH})){
+-    for my $f (qw/enc2xs enc2xs5.7.3/){
+-        my $path = File::Spec->catfile($d, $f);
+-        -r $path and $enc2xs = $path and last PATHLOOP;
+-    }
+-}
++$enc2xs = "@@ENC2XS@@";
+ $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/20130702/fb3f65e8/attachment.html>


More information about the macports-changes mailing list