[87946] trunk/dports/net/wireshark-devel/Portfile

cal at macports.org cal at macports.org
Tue Dec 13 13:34:44 PST 2011


Revision: 87946
          http://trac.macports.org/changeset/87946
Author:   cal at macports.org
Date:     2011-12-13 13:34:42 -0800 (Tue, 13 Dec 2011)
Log Message:
-----------
wireshark-devel: Update to 1.7.0, maintainer, #31986, #32265

Modified Paths:
--------------
    trunk/dports/net/wireshark-devel/Portfile

Modified: trunk/dports/net/wireshark-devel/Portfile
===================================================================
--- trunk/dports/net/wireshark-devel/Portfile	2011-12-13 19:48:52 UTC (rev 87945)
+++ trunk/dports/net/wireshark-devel/Portfile	2011-12-13 21:34:42 UTC (rev 87946)
@@ -5,7 +5,7 @@
 
 name            wireshark-devel
 epoch           2
-version         1.6.2
+version         1.7.0
 categories      net
 maintainers     gmail.com:hsivank
 description     Graphical network analyzer and capture tool
@@ -24,8 +24,8 @@
 
 use_bzip2       yes
 
-checksums       rmd160  e343d9bb5600b236dea708bb68ecad805a9ee20a \
-                sha256  5343f514ce98c28498ec4734e40e34e2bbf779a6c57d958837e3f70234471e7f
+checksums       rmd160  d65be41a4384b1754756b255330cc76e93cdd3af \
+                sha256  8b00ff9622d309d9848a078acafd59763dc341215b676b87fdeff98a7ccef89d
 
 conflicts       wireshark
 
@@ -51,7 +51,8 @@
                 --infodir=\\\${prefix}/share/info \
                 --without-portaudio \
                 --disable-warnings-as-errors \
-                --without-gnutls 
+                --without-gnutls \
+                --without-python
 
 configure.ldflags-append "-Wl,-search_paths_first"
 
@@ -112,6 +113,43 @@
         configure.args-append --with-libsmi
 }
 
+variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 {
+        configure.env-append    PYTHON=${prefix}/bin/python2.5
+        depends_lib-append      port:python25
+}
+
+variant python26 description {use python26 for the experimental python interface} conflicts python25 python27 {
+        configure.env-append    PYTHON=${prefix}/bin/python2.6
+	depends_lib-append      port:python26
+}
+
+variant python27 description {use python27 for the experimental python interface} conflicts python25 python26 {
+        configure.env-append    PYTHON=${prefix}/bin/python2.7
+        depends_lib-append      port:python27
+}
+
+pre-configure {
+        if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
+                configure.args-append   --with-python
+                configure.args-delete   --without-python
+        }
+        if {[variant_isset python25]} {
+                reinplace "s|python-config|python2.5-config|g" ${worksrcpath}/configure
+        }
+        if {[variant_isset python26]} {
+                reinplace "s|python-config|python2.6-config|g" ${worksrcpath}/configure
+        }
+        if {[variant_isset python27]} {
+                reinplace "s|python-config|python2.7-config|g" ${worksrcpath}/configure
+        }
+}
+
+pre-destroot {
+        if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
+                 reinplace "s|libwireshark.dylib|${prefix}/lib/libwireshark.dylib|g" ${worksrcpath}/epan/wspython/wspy_libws.py
+        } 	
+}
+
 post-destroot {
         xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ \
                     ${destroot}${prefix}/include/wireshark/epan/dfilter/ \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111213/a551eb5d/attachment-0001.html>


More information about the macports-changes mailing list