diff --git a/dports/irc/weechat/Portfile b/dports/irc/weechat/Portfile
index 9ab8faa..e7d3431 100644
a
|
b
|
configure.args-append \ |
59 | 59 | -DENABLE_GUILE=OFF \ |
60 | 60 | -DENABLE_PERL=OFF \ |
61 | 61 | -DENABLE_PYTHON=OFF \ |
| 62 | -DENABLE_PYTHON3=OFF \ |
62 | 63 | -DENABLE_RUBY=OFF \ |
63 | 64 | -DENABLE_ASPELL=OFF \ |
64 | 65 | -DENABLE_MAN=ON |
… |
… |
variant perl description {Bindings for perl plugins} { |
87 | 88 | depends_lib-append path:bin/perl:perl5 |
88 | 89 | } |
89 | 90 | |
90 | | variant python description {Bindings for python plugins} { |
91 | | configure.args-delete -DENABLE_PYTHON=OFF |
92 | | configure.args-append -DENABLE_PYTHON=ON |
93 | | depends_lib-append path:bin/python:python27 |
| 91 | variant python requires python27 description {Legacy variant} {} |
94 | 92 | |
95 | | post-configure { |
96 | | reinplace -E "s|\(Python.framework\)|${frameworks_dir}/\\1|" ${worksrcpath}/src/plugins/python/CMakeFiles/python.dir/link.txt |
| 93 | set pythonBranch {} |
| 94 | |
| 95 | variant python27 description {Enable Python 2.7 bindings} conflicts python34 { |
| 96 | depends_lib-append port:python27 |
| 97 | set pythonBranch 2.7 |
| 98 | } |
| 99 | |
| 100 | variant python34 description {Enable Python 3.4 bindings} conflicts python27 { |
| 101 | depends_lib-append port:python34 |
| 102 | set pythonBranch 3.4 |
| 103 | configure.args-replace -DENABLE_PYTHON3=OFF -DENABLE_PYTHON3=ON |
| 104 | } |
| 105 | |
| 106 | if {[variant_isset python27] || [variant_isset python34]} { |
| 107 | set pythonFramework ${frameworks_dir}/Python.framework/Versions/$pythonBranch |
| 108 | configure.args-replace -DENABLE_PYTHON=OFF -DENABLE_PYTHON=ON |
| 109 | configure.args-append -DPYTHON_EXECUTABLE='${prefix}/bin/python$pythonBranch' \ |
| 110 | -DPYTHON_INCLUDE_PATH='$pythonFramework/Headers' \ |
| 111 | -DPYTHON_LIBRARY='$pythonFramework/Python' |
| 112 | } |
| 113 | |
| 114 | post-configure { |
| 115 | set f ${configure.dir}/src/plugins/python/CMakeFiles/python.dir/link.txt |
| 116 | if {[file exists $patchFile]} { |
| 117 | reinplace -E "s| \(Python\.framework\)| ${frameworks_dir}/\\1|g" $f |
| 118 | reinplace -E s|-Wl,-stack_size,1000000|| $f |
97 | 119 | } |
98 | 120 | } |
99 | 121 | |