source: trunk/dports/math/octave-symbolic/Portfile

Last change on this file was 149219, checked in by mps@…, 14 months ago

octave-symbolic: update to version 2.4.0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- 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
2# $Id: Portfile 149219 2016-06-06 14:52:25Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           octave 1.0
6
7octave.setup        symbolic 2.4.0
8platforms           darwin
9license             GPL-3
10maintainers         gmail.com:mschamschula openmaintainer
11description         Symbolic toolbox based on SymPy.
12
13long_description    ${description}
14
15checksums           rmd160 9c7144e1e6b24d1c28ebaecfdb622c482664b616 \
16                    sha256 beb51d20679db7abc85e8f065c0acae23615139e9fe2b290418230b585f76ed6
17
18# fix default Python to be within MacPorts
19
20patchfiles-append   patch-inst_sympref.m.diff
21
22variant python27 description "Use Python 2.7 SymPy" conflicts python34 {
23    depends_lib-append  port:python27 \
24                        port:py27-sympy
25   
26    post-patch {
27        reinplace "s|@PYTHON@|${prefix}/bin/python2.7|g" \
28            ${worksrcpath}/inst/sympref.m
29    }
30    configure.env-append \
31        PYTHON=${prefix}/bin/python2.7
32}
33
34variant python34 description "Use Python 3.4 SymPy" conflicts python27 {
35    depends_lib-append  port:python34 \
36                        port:py34-sympy
37   
38    post-patch {
39        reinplace "s|@PYTHON@|${prefix}/bin/python3.4|g" \
40            ${worksrcpath}/inst/sympref.m
41    }
42    configure.env-append \
43        PYTHON=${prefix}/bin/python3.4
44}
45
46if {![variant_isset python27] && ![variant_isset python34]} {
47    default_variants +python27
48}
49
50# make sure -python27 was not specified alone
51
52if {![variant_isset python27] && ![variant_isset python34]} {
53
54    ui_error "\n\nYou must select either the +python27 or +python34 variant.\n"
55    return -code error "Invalid variant selection"
56
57}
Note: See TracBrowser for help on using the repository browser.