diff --git a/dports/science/magicspp/Portfile b/dports/science/magicspp/Portfile
index ffeebc1..80c7b07 100644
a
|
b
|
perl5.branches 5.8 5.10 5.12 5.16 |
10 | 10 | |
11 | 11 | name magicspp |
12 | 12 | version 2.22.6 |
13 | | revision 1 |
| 13 | revision 2 |
14 | 14 | platforms darwin |
15 | 15 | maintainers takeshi |
16 | 16 | license Apache-2 |
… |
… |
universal_variant no |
60 | 60 | if {![fortran_variant_isset]} { |
61 | 61 | default_variants-append +gcc48 |
62 | 62 | } |
63 | | if {![variant_isset python25] && ![variant_isset python26]} { |
64 | | default_variants-append +python27 |
65 | | } |
| 63 | default_variants-append +python27 |
66 | 64 | |
67 | 65 | use_configure yes |
68 | 66 | configure.cmd cmake |
… |
… |
build.dir ${workpath}/build |
130 | 128 | post-destroot { |
131 | 129 | xinstall -m 644 ${worksrcpath}/src/common/magics_api.h ${destroot}${prefix}/include |
132 | 130 | file rename ${destroot}${prefix}/share/templates ${destroot}${prefix}/share/magics |
133 | | if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} { |
| 131 | if {[variant_isset python27]} { |
134 | 132 | file mkdir ${destroot}${frameworks_dir}/Python.framework/Versions/${pyver}/lib/python${pyver}/site-packages |
135 | 133 | file rename ${destroot}${prefix}/lib/python${pyver}/site-packages/Magics ${destroot}${frameworks_dir}/Python.framework/Versions/${pyver}/lib/python${pyver}/site-packages |
136 | 134 | } |
… |
… |
if {[fortran_variant_isset]} { |
142 | 140 | -DGFORTRAN_LIB=${prefix}/lib/[fortran_variant_name]/libgfortran.dylib |
143 | 141 | } |
144 | 142 | |
145 | | if {[variant_isset python25]} { |
146 | | set pyver 2.5 |
147 | | } |
148 | | if {[variant_isset python26]} { |
149 | | set pyver 2.6 |
150 | | } |
151 | 143 | if {[variant_isset python27]} { |
152 | 144 | set pyver 2.7 |
153 | | } |
154 | | if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} { |
155 | 145 | configure.args-delete -DENABLE_PYTHON=OFF |
156 | 146 | configure.args-append -DENABLE_PYTHON=ON |
157 | 147 | configure.args-append -DPYTHON_EXECUTABLE=${prefix}/bin/python${pyver} \ |
158 | 148 | -DPYTHON_CONFIG=${prefix}/bin/python${pyver}-config |
159 | 149 | } |
160 | 150 | |
161 | | variant python25 description {Add support for python25} { |
162 | | depends_lib-append port:py25-numpy |
163 | | } |
164 | | |
165 | | variant python26 description {Add support for python26} { |
166 | | depends_lib-append port:py26-numpy |
167 | | } |
| 151 | # TODO: Remove after 2015-12-26. |
| 152 | variant python25 requires python27 description {Legacy variant} {} |
| 153 | variant python26 requires python27 description {Legacy variant} {} |
168 | 154 | |
169 | 155 | variant python27 description {Add support for python27} { |
170 | 156 | depends_lib-append port:py27-numpy |