[129992] trunk/dports/security/log2timeline/Portfile

mojca at macports.org mojca at macports.org
Wed Dec 24 01:41:35 PST 2014


Revision: 129992
          https://trac.macports.org/changeset/129992
Author:   mojca at macports.org
Date:     2014-12-24 01:41:35 -0800 (Wed, 24 Dec 2014)
Log Message:
-----------
log2timeline: use perl5.create_variants, add 5.20, remove 5.12 (maintainer, #46086)

Modified Paths:
--------------
    trunk/dports/security/log2timeline/Portfile

Modified: trunk/dports/security/log2timeline/Portfile
===================================================================
--- trunk/dports/security/log2timeline/Portfile	2014-12-24 09:28:30 UTC (rev 129991)
+++ trunk/dports/security/log2timeline/Portfile	2014-12-24 09:41:35 UTC (rev 129992)
@@ -6,7 +6,7 @@
 
 name                log2timeline
 version             0.65
-revision            2
+revision            3
 categories          security
 platforms           darwin
 maintainers         yahoo.fr:jul_bsd openmaintainer
@@ -30,102 +30,43 @@
 
 supported_archs     noarch
 
+perl5.branches          5.16 5.18 5.20 
+perl5.default_branch    5.16
+perl5.create_variants   ${perl5.branches}
+
+depends_lib         port:perl${perl5.major} \
+                    port:p${perl5.major}-archive-zip \
+                    port:p${perl5.major}-carp-assert \
+                    port:p${perl5.major}-datetime-format-strptime \
+                    port:p${perl5.major}-datetime-timezone \
+                    port:p${perl5.major}-dbd-sqlite \
+                    port:p${perl5.major}-dbi \
+                    port:p${perl5.major}-digest-crc \
+                    port:p${perl5.major}-gtk2 \
+                    port:p${perl5.major}-html-parser \
+                    port:p${perl5.major}-html-scrubber \
+                    port:p${perl5.major}-image-exiftool \
+                    port:p${perl5.major}-libwww-perl \
+                    port:p${perl5.major}-net-pcap \
+                    port:p${perl5.major}-netpacket \
+                    port:p${perl5.major}-xml-libxml \
+                    port:p${perl5.major}-datemanip \
+                    port:p${perl5.major}-parse-win32registry \
+                    port:p${perl5.major}-file-mork \
+                    port:p${perl5.major}-data-hexify \
+                    port:p${perl5.major}-version \
+                    port:p${perl5.major}-params-validate \
+                    port:p${perl5.major}-xml-entities \
+                    port:p${perl5.major}-mac-propertylist
+
 configure.pre_args
+configure.cmd       ${prefix}/bin/perl${perl5.major} Makefile.PL
 
 post-destroot {
     eval delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
-    ln -s ${perl5.bindir}/sitebin/log2timeline ${destroot}${prefix}/bin/
+    ln -s ${prefix}/libexec/perl${perl5.major}/sitebin/log2timeline ${destroot}${prefix}/bin/
 }
 
 livecheck.type      regex
 livecheck.url       ${homepage}downloads/list
-## FIXME! port version empty ?!
 livecheck.regex     ${name}_(\\d+(\\.\[0-9a-z\]+)+)${extract.suffix}
-
-variant perl5_12 conflicts perl5_18 perl5_16 description { Perl bindings with perl 5.12} {
-    depends_lib         port:perl5.12 \
-                        port:p5.12-archive-zip \
-                        port:p5.12-carp-assert \
-                        port:p5.12-datetime-format-strptime \
-                        port:p5.12-datetime-timezone \
-                        port:p5.12-dbd-sqlite \
-                        port:p5.12-dbi \
-                        port:p5.12-digest-crc \
-                        port:p5.12-gtk2 \
-                        port:p5.12-html-parser \
-                        port:p5.12-html-scrubber \
-                        port:p5.12-image-exiftool \
-                        port:p5.12-libwww-perl \
-                        port:p5.12-net-pcap \
-                        port:p5.12-netpacket \
-                        port:p5.12-xml-libxml \
-                        port:p5.12-datemanip \
-                        port:p5.12-parse-win32registry \
-                        port:p5.12-file-mork \
-                        port:p5.12-data-hexify \
-                        port:p5.12-version \
-                        port:p5.12-params-validate \
-                        port:p5.12-xml-entities \
-                        port:p5.12-mac-propertylist
-    configure.cmd       ${prefix}/bin/perl5.12 Makefile.PL
-}
-
-variant perl5_16 conflicts perl5_18 perl5_12 description { Perl bindings with perl 5.16} {
-    depends_lib         port:perl5.16 \
-                        port:p5.16-archive-zip \
-                        port:p5.16-carp-assert \
-                        port:p5.16-datetime-format-strptime \
-                        port:p5.16-datetime-timezone \
-                        port:p5.16-dbd-sqlite \
-                        port:p5.16-dbi \
-                        port:p5.16-digest-crc \
-                        port:p5.16-gtk2 \
-                        port:p5.16-html-parser \
-                        port:p5.16-html-scrubber \
-                        port:p5.16-image-exiftool \
-                        port:p5.16-libwww-perl \
-                        port:p5.16-net-pcap \
-                        port:p5.16-netpacket \
-                        port:p5.16-xml-libxml \
-                        port:p5.16-datemanip \
-                        port:p5.16-parse-win32registry \
-                        port:p5.16-file-mork \
-                        port:p5.16-data-hexify \
-                        port:p5.16-version \
-                        port:p5.16-params-validate \
-                        port:p5.16-xml-entities \
-                        port:p5.16-mac-propertylist
-    configure.cmd       ${prefix}/bin/perl5.16 Makefile.PL
-}
-
-variant perl5_18 conflicts perl5_16 perl5_12 description { Perl bindings with perl 5.18} {
-    depends_lib         port:perl5.18 \
-                        port:p5.18-archive-zip \
-                        port:p5.18-carp-assert \
-                        port:p5.18-datetime-format-strptime \
-                        port:p5.18-datetime-timezone \
-                        port:p5.18-dbd-sqlite \
-                        port:p5.18-dbi \
-                        port:p5.18-digest-crc \
-                        port:p5.18-gtk2 \
-                        port:p5.18-html-parser \
-                        port:p5.18-html-scrubber \
-                        port:p5.18-image-exiftool \
-                        port:p5.18-libwww-perl \
-                        port:p5.18-net-pcap \
-                        port:p5.18-netpacket \
-                        port:p5.18-xml-libxml \
-                        port:p5.18-datemanip \
-                        port:p5.18-parse-win32registry \
-                        port:p5.18-file-mork \
-                        port:p5.18-data-hexify \
-                        port:p5.18-version \
-                        port:p5.18-params-validate \
-                        port:p5.18-xml-entities \
-                        port:p5.18-mac-propertylist
-    configure.cmd       ${prefix}/bin/perl5.18 Makefile.PL
-}
-
-if {![variant_isset perl5_12] && ![variant_isset perl5_16] && ![variant_isset perl5_18]} {
-    default_variants    +perl5_16
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141224/6fa27ef1/attachment.html>


More information about the macports-changes mailing list