# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id: Portfile 149219 2016-06-06 14:52:25Z mps@macports.org $ PortSystem 1.0 PortGroup octave 1.0 octave.setup symbolic 2.4.0 platforms darwin license GPL-3 maintainers gmail.com:mschamschula openmaintainer description Symbolic toolbox based on SymPy. long_description ${description} checksums rmd160 9c7144e1e6b24d1c28ebaecfdb622c482664b616 \ sha256 beb51d20679db7abc85e8f065c0acae23615139e9fe2b290418230b585f76ed6 # fix default Python to be within MacPorts patchfiles-append patch-inst_sympref.m.diff variant python27 description "Use Python 2.7 SymPy" conflicts python34 { depends_lib-append port:python27 \ port:py27-sympy post-patch { reinplace "s|@PYTHON@|${prefix}/bin/python2.7|g" \ ${worksrcpath}/inst/sympref.m } configure.env-append \ PYTHON=${prefix}/bin/python2.7 } variant python34 description "Use Python 3.4 SymPy" conflicts python27 { depends_lib-append port:python34 \ port:py34-sympy post-patch { reinplace "s|@PYTHON@|${prefix}/bin/python3.4|g" \ ${worksrcpath}/inst/sympref.m } configure.env-append \ PYTHON=${prefix}/bin/python3.4 } if {![variant_isset python27] && ![variant_isset python34]} { default_variants +python27 } # make sure -python27 was not specified alone if {![variant_isset python27] && ![variant_isset python34]} { ui_error "\n\nYou must select either the +python27 or +python34 variant.\n" return -code error "Invalid variant selection" }