[98519] trunk/dports/perl/p5-crypt-passwdmd5/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Oct 7 17:07:57 PDT 2012


Revision: 98519
          http://trac.macports.org//changeset/98519
Author:   ryandesign at macports.org
Date:     2012-10-07 17:07:57 -0700 (Sun, 07 Oct 2012)
Log Message:
-----------
p5-crypt-passwdmd5: fix stub port; add iconv dependency just in case

Modified Paths:
--------------
    trunk/dports/perl/p5-crypt-passwdmd5/Portfile

Modified: trunk/dports/perl/p5-crypt-passwdmd5/Portfile
===================================================================
--- trunk/dports/perl/p5-crypt-passwdmd5/Portfile	2012-10-07 21:40:22 UTC (rev 98518)
+++ trunk/dports/perl/p5-crypt-passwdmd5/Portfile	2012-10-08 00:07:57 UTC (rev 98519)
@@ -17,6 +17,10 @@
 
 supported_archs noarch
 
-post-patch {
-    system -W ${worksrcpath} "iconv -f ISO-8859-1 -t UTF-8 Makefile.PL > Makefile.PL.new && mv Makefile.PL.new Makefile.PL"
+if {${perl5.major} != ""} {
+    depends_build-append bin:iconv:libiconv
+    
+    post-patch {
+        system -W ${worksrcpath} "iconv -f ISO-8859-1 -t UTF-8 Makefile.PL > Makefile.PL.new && mv Makefile.PL.new Makefile.PL"
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121007/0381fec1/attachment.html>


More information about the macports-changes mailing list