[122398] trunk/dports/net/scapy/Portfile

khindenburg at macports.org khindenburg at macports.org
Mon Jul 21 20:28:46 PDT 2014


Revision: 122398
          https://trac.macports.org/changeset/122398
Author:   khindenburg at macports.org
Date:     2014-07-21 20:28:46 -0700 (Mon, 21 Jul 2014)
Log Message:
-----------
scapy: create variants due to separate dependencies (#43251)

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

Modified: trunk/dports/net/scapy/Portfile
===================================================================
--- trunk/dports/net/scapy/Portfile	2014-07-22 03:27:51 UTC (rev 122397)
+++ trunk/dports/net/scapy/Portfile	2014-07-22 03:28:46 UTC (rev 122398)
@@ -35,12 +35,30 @@
                       rmd160  0cb0e14e6e84ba6a22b0afd7f2913a98888a418e
 
 depends_lib-append    port:py${python.version}-readline    port:py${python.version}-pylibpcap \
-                      port:py${python.version}-libdnet     port:py${python.version}-crypto \
-                      port:py${python.version}-gnuplot     port:py${python.version}-pyx \
-                      path:bin/dot:graphviz
+                      port:py${python.version}-libdnet     port:py${python.version}-crypto
 
 python.link_binaries_suffix
 
+default_variants +gnuplot +graphviz
+
+## http://www.secdev.org/projects/scapy/doc/installation.html#optional-software-for-special-features
+variant pyx description {" With PyX for creating PostScript figures"} {
+    depends_lib-append              port:py${python.version}-pyx
+}
+
+variant gnuplot description { "With gnuplot export" } {
+    depends_run-append              port:py${python.version}-gnuplot
+}
+
+variant graphviz description { "With graphviz export" } {
+    depends_run-append              path:bin/dot:graphviz port:ImageMagick
+}
+
+variant sox description { "With sox export for VoIP" } {
+    depends_run-append              port:sox
+}
+
 livecheck.type        regex
-livecheck.url         http://hg.secdev.org/scapy/tags
-livecheck.regex       "v(\[\\d.\]+)"
+#livecheck.url         http://hg.secdev.org/scapy/tags ## 404
+livecheck.url         http://www.secdev.org/projects/scapy/files/
+livecheck.regex       "scapy-(\[\\d.\]+).zip"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140721/fa34cda2/attachment.html>


More information about the macports-changes mailing list