[148589] trunk/dports/net/wget/Portfile

devans at macports.org devans at macports.org
Thu May 12 00:56:00 PDT 2016


Revision: 148589
          https://trac.macports.org/changeset/148589
Author:   devans at macports.org
Date:     2016-05-12 00:56:00 -0700 (Thu, 12 May 2016)
Log Message:
-----------
wget: depend on and configure for a specific MacPorts perl version and corresponding pod2man, older system perls don't support pod2man --utf8 (#50164).

Modified Paths:
--------------
    trunk/dports/net/wget/Portfile

Modified: trunk/dports/net/wget/Portfile
===================================================================
--- trunk/dports/net/wget/Portfile	2016-05-12 06:54:31 UTC (rev 148588)
+++ trunk/dports/net/wget/Portfile	2016-05-12 07:56:00 UTC (rev 148589)
@@ -31,8 +31,14 @@
 configure.args \
     --without-ssl
 
+# use a specific MacPorts perl version
+# older system perl versions (10.6 and earlier) do not support pod2man --utf8
+# https://trac.macports.org/ticket/50164
+
+set perl_version        5.22
+
 depends_build           bin:makeinfo:texinfo \
-                        bin:pod2man:perl5 \
+                        port:perl${perl_version} \
                         port:pkgconfig
 
 depends_lib \
@@ -44,6 +50,9 @@
 patchfiles              nawk.patch \
                         prefix.patch
 
+configure.perl          ${prefix}/bin/perl${perl_version}
+configure.env-append    POD2MAN=${prefix}/bin/pod2man-${perl_version}
+
 # Ensure libuuid doesn't get used even if the ossp-uuid port is installed.
 configure.args-append       ac_cv_header_uuid_uuid_h=no
 
@@ -55,8 +64,8 @@
     }
 }
 variant test description {Add dependencies needed to run tests} {
-    depends_build-append    port:p5-libwww-perl \
-                            port:p5-io-socket-ssl
+    depends_build-append    port:p${perl_version}-libwww-perl \
+                            port:p${perl_version}-io-socket-ssl
     test.run                yes
     test.target             check
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160512/ed64d41c/attachment.html>


More information about the macports-changes mailing list