Ticket #46396: wireshark-devel.python.patch

File wireshark-devel.python.patch, 2.4 KB (added by larryv (Lawrence Velázquez), 9 years ago)
  • dports/net/wireshark-devel/Portfile

    diff --git a/dports/net/wireshark-devel/Portfile b/dports/net/wireshark-devel/Portfile
    index 43b360c..d0d4abe 100644
    a b PortSystem 1.0 
    66name            wireshark-devel
    77epoch           2
    88version         1.9.0
    9 revision        3
     9revision        4
    1010patchfiles      patch-configure.diff
    1111categories      net
    1212license         {GPL-2 GPL-3}
    variant libsmi { 
    118118        configure.args-append --with-libsmi
    119119}
    120120
    121 variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 {
    122         configure.python        ${prefix}/bin/python2.5
    123         depends_lib-append      port:python25
    124 }
    125 
    126 variant python26 description {use python26 for the experimental python interface} conflicts python25 python27 {
    127         configure.python        ${prefix}/bin/python2.6
    128         depends_lib-append      port:python26
    129 }
     121# TODO: Remove after 2016-01-04.
     122variant python25 requires python27 description {Legacy variant} {}
     123variant python26 requires python27 description {Legacy variant} {}
    130124
    131 variant python27 description {use python27 for the experimental python interface} conflicts python25 python26 {
     125variant python27 description {use python27 for the experimental python interface} {
    132126        configure.python        ${prefix}/bin/python2.7
    133127        depends_lib-append      port:python27
    134128}
    135129
    136130pre-configure {
    137         if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
     131        if {[variant_isset python27]} {
    138132                configure.args-append   --with-python
    139133                configure.args-delete   --without-python
    140         }
    141         if {[variant_isset python25]} {
    142                 reinplace "s|python-config|python2.5-config|g" ${worksrcpath}/configure
    143         }
    144         if {[variant_isset python26]} {
    145                 reinplace "s|python-config|python2.6-config|g" ${worksrcpath}/configure
    146         }
    147         if {[variant_isset python27]} {
    148134                reinplace "s|python-config|python2.7-config|g" ${worksrcpath}/configure
    149135        }
    150136}
    151137
    152138pre-destroot {
    153         if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
     139        if {[variant_isset python27]} {
    154140                 reinplace "s|libwireshark.dylib|${prefix}/lib/libwireshark.dylib|g" ${worksrcpath}/epan/wspython/wspy_libws.py
    155141        }
    156142}