Ticket #55361: Portfile.diff
File Portfile.diff, 1.7 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 7 years ago) |
---|
-
Portfile
old new 19 19 variant python27 description "Use Python 2.7 SymPy" conflicts python34 python35 python36 { 20 20 depends_lib-append port:python27 \ 21 21 port:py27-sympy 22 23 configure.env-append \ 24 PYTHON=${prefix}/bin/python2.7 22 configure.python ${prefix}/bin/python2.7 25 23 } 26 24 27 25 variant python34 description "Use Python 3.4 SymPy" conflicts python27 python35 python36 { 28 26 depends_lib-append port:python34 \ 29 27 port:py34-sympy 30 31 configure.env-append \ 32 PYTHON=${prefix}/bin/python3.4 28 configure.python ${prefix}/bin/python3.4 33 29 } 34 30 35 31 variant python35 description "Use Python 3.5 SymPy" conflicts python27 python34 python36 { 36 32 depends_lib-append port:python35 \ 37 33 port:py35-sympy 38 39 configure.env-append \ 40 PYTHON=${prefix}/bin/python3.5 34 configure.python ${prefix}/bin/python3.5 41 35 } 42 36 43 37 variant python36 description "Use Python 3.6 SymPy" conflicts python27 python34 python35 { 44 38 depends_lib-append port:python36 \ 45 39 port:py36-sympy 46 47 configure.env-append \ 48 PYTHON=${prefix}/bin/python3.6 40 configure.python ${prefix}/bin/python3.6 49 41 } 50 42 51 43 if {![variant_isset python27] && ![variant_isset python34] && ![variant_isset python35] && ![variant_isset python36]} { … … 60 52 return -code error "Invalid variant selection" 61 53 62 54 } 55 56 # see https://trac.macports.org/ticket/55361 57 patchfiles-append patch-python.diff 58 post-patch { 59 reinplace \ 60 "s|__MACPORTS_PYTHON__|${configure.python}|g" \ 61 ${worksrcpath}/inst/sympref.m 62 }