diff --git a/dports/net/wireshark-devel/Portfile b/dports/net/wireshark-devel/Portfile
index 43b360c..d0d4abe 100644
a
|
b
|
PortSystem 1.0 |
6 | 6 | name wireshark-devel |
7 | 7 | epoch 2 |
8 | 8 | version 1.9.0 |
9 | | revision 3 |
| 9 | revision 4 |
10 | 10 | patchfiles patch-configure.diff |
11 | 11 | categories net |
12 | 12 | license {GPL-2 GPL-3} |
… |
… |
variant libsmi { |
118 | 118 | configure.args-append --with-libsmi |
119 | 119 | } |
120 | 120 | |
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. |
| 122 | variant python25 requires python27 description {Legacy variant} {} |
| 123 | variant python26 requires python27 description {Legacy variant} {} |
130 | 124 | |
131 | | variant python27 description {use python27 for the experimental python interface} conflicts python25 python26 { |
| 125 | variant python27 description {use python27 for the experimental python interface} { |
132 | 126 | configure.python ${prefix}/bin/python2.7 |
133 | 127 | depends_lib-append port:python27 |
134 | 128 | } |
135 | 129 | |
136 | 130 | pre-configure { |
137 | | if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} { |
| 131 | if {[variant_isset python27]} { |
138 | 132 | configure.args-append --with-python |
139 | 133 | 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]} { |
148 | 134 | reinplace "s|python-config|python2.7-config|g" ${worksrcpath}/configure |
149 | 135 | } |
150 | 136 | } |
151 | 137 | |
152 | 138 | pre-destroot { |
153 | | if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} { |
| 139 | if {[variant_isset python27]} { |
154 | 140 | reinplace "s|libwireshark.dylib|${prefix}/lib/libwireshark.dylib|g" ${worksrcpath}/epan/wspython/wspy_libws.py |
155 | 141 | } |
156 | 142 | } |