[144270] trunk/dports/net/whois/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Jan 5 12:35:57 PST 2016


Revision: 144270
          https://trac.macports.org/changeset/144270
Author:   ryandesign at macports.org
Date:     2016-01-05 12:35:57 -0800 (Tue, 05 Jan 2016)
Log Message:
-----------
whois: minor changes to how the desired perl is specified

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

Modified: trunk/dports/net/whois/Portfile
===================================================================
--- trunk/dports/net/whois/Portfile	2016-01-05 20:18:52 UTC (rev 144269)
+++ trunk/dports/net/whois/Portfile	2016-01-05 20:35:57 UTC (rev 144270)
@@ -36,7 +36,7 @@
 
 distfiles                   ${name}_${version}${extract.suffix}
 
-set perl5.branches          5.22
+perl5.branches              5.22
 
 depends_build               port:perl${perl5.major}
 
@@ -61,17 +61,20 @@
     patchfiles-append       patch-lcrypt.diff
 }
 
+post-patch {
+    reinplace "s|/etc/whois\.conf|${prefix}/etc/whois.conf|g" ${worksrcpath}/whois.1
+}
+
 use_configure               no
 
 compiler.blacklist          {clang < 318}
 
 configure.cflags-append     -DENABLE_NLS
 configure.ldflags-append    -lintl
+configure.perl              ${perl5.bin}
 
 post-configure {
-    system -W ${worksrcpath} "CC='${configure.cc}' make depend servers_charset.h"
-    reinplace "s|/etc/whois.conf|${prefix}/etc/whois.conf|g" \
-        ${worksrcpath}/whois.1
+    system -W ${worksrcpath} "CC='${configure.cc}' ${build.cmd} depend servers_charset.h PERL='${configure.perl}'"
 }
 
 variant universal {}
@@ -85,7 +88,7 @@
 build.args                  prefix=${prefix} \
                             INCLUDES="${configure.cflags} ${configure.cppflags}" \
                             LIBS="${configure.ldflags}" \
-                            PERL=${perl5.bin}
+                            PERL="${configure.perl}"
 
 destroot.target-append      install-pos
 destroot.args               prefix=${destroot}${prefix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160105/d3a9d822/attachment.html>


More information about the macports-changes mailing list