source: trunk/dports/math/cadabra/Portfile

Last change on this file was 144112, checked in by khindenburg@…, 19 months ago

cadabra: remove legacy variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144112 2016-01-02 01:47:12Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                cadabra
7version             1.33
8revision            1
9categories          math
10platforms           darwin
11license             GPL-3+
12maintainers         nomaintainer
13
14description         A field theory approach to symbolic computer algebra
15long_description    Cadabra is a computer algebra system for the \
16                    manipulation of what could loosely be called \
17                    tensorial expressions. It is aimed at, though not \
18                    necessarily restricted to, theoretical high energy \
19                    physicists. Because of its target audience, the \
20                    program's interface, storage system and underlying \
21                    philosophy differ substantially from other computer \
22                    algebra systems.
23
24homepage            http://cadabra.phi-sci.com/
25master_sites        ${homepage}
26
27checksums           rmd160  52686bdd7a635a6db30a91add951720f14c1ddc6 \
28                    sha256  075dad3a1a9fd8774473f6d28f036f65629a286304c02f0ac1e10be3cb2ebd12
29
30depends_build       port:pkgconfig \
31                    port:pcrexx
32
33depends_lib         port:modglue \
34                    port:pcre \
35                    port:gmp \
36                    port:LiE
37
38# Invalid C++, ticket #33045
39#
40# Cannot use clang because xperm uses nested functions and variable
41# sized arrays, both of which clang will never support. Silly llvm makes
42# cadabra crash all over the place for no good reason, so that's out
43# too. Furthermore, we cannot use any GCC other than Apple's because
44# that will lead to cadabra being linked to two different libstdc++
45# libraries, with malloc failures as a result.
46compiler.whitelist  gcc-4.2 gcc-4.0 apple-gcc-4.2
47
48configure.args      --disable-gui \
49                    --disable-runtime-dependency-check
50
51build.env           CC=${configure.cc} \
52                    CXX=${configure.cxx}
53
54test.run            yes
55test.env            CDB_LOG=1
56test.target         test advtest
57
58post-activate {
59    system "${prefix}/bin/texhash"
60}
61
62variant texmacs description {install TeXmacs front end} {
63    depends_run-append      port:TeXmacs
64}
65
66variant gui description {build with GUI} {
67    depends_lib-append      port:gtkmm
68    depends_run-append      port:dvipng \
69                            port:texlive-basic \
70                            port:texlive-latex \
71                            port:texlive-latex-recommended
72    configure.args-delete   --disable-gui
73}
74
75default_variants    +gui
Note: See TracBrowser for help on using the repository browser.