Ticket #38938: Portfile.cadabra

File Portfile.cadabra, 2.1 KB (added by kasper.peeters@…, 12 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name            cadabra
6version         1.33
7revision        1
8categories      math
9platforms       darwin
10maintainers     gwright
11description     A field theory approach to symbolic computer algebra
12long_description \
13        Cadabra is a computer algebra system for the manipulation       \
14        of what could loosely be called tensorial expressions. It is    \
15        aimed at, though not necessarily restricted to, theoretical     \
16        high energy physicists. Because of its target audience, the     \
17        program's interface, storage system and underlying philosophy   \
18        differ substantially from other computer algebra systems.
19
20homepage        http://cadabra.phi-sci.com/
21master_sites    ${homepage}
22
23checksums       md5     cee8ae23c169958aba09b64e4ea479ce \
24                sha1    adc227ccacb9ceb0c8984c54b86711d5d6658fbf \
25                rmd160  52686bdd7a635a6db30a91add951720f14c1ddc6
26
27# Invalid C++, ticket #33045
28# Cannot use clang because xperm uses nested functions and
29# variable sized arrays, both of which clang will never
30# support.
31# Silly llvm makes cadabra crash all over the place for
32# no good reason, so that's out too.
33compiler.blacklist      clang llvm
34
35# Furthermore, we cannot use anything except 4.2 because
36# that will lead to cadabra being linked to two different
37# libstdc++ libraries, with malloc failures as a result.
38configure.compiler apple-gcc-4.2
39
40variant texmacs description { install TeXmacs front end } {
41                  depends_run-append port:TeXmacs
42                }
43
44variant maintainer_tests description { debug tests used by the maintainer } {
45                  # This variant is only used for the value
46                  # of maintainer_tests.
47                }
48
49variant no_gui  description { do not build GUI } {
50                  depends_lib-delete port:gtkmm
51                  configure.args-append --disable-gui
52                }
53
54depends_build   port:pkgconfig \
55                port:pcrexx \
56                port:gcc47
57
58depends_lib     port:modglue    \
59                port:pcre       \
60                port:gmp        \
61                port:LiE        \
62                port:gtkmm      \
63                port:texlive    \
64                port:texlive-bin-extra
65
66build.env       CC=${configure.cc} CXX=${configure.cxx}
67
68post-build      {
69                  if {[variant_isset maintainer_tests]} {
70                        system "cd ${worksrcpath} && env CDB_LOG=1 ${build.cmd} test"
71                        system "cd ${worksrcpath} && env CDB_LOG=1 ${build.cmd} advtest"
72                  }
73                }
74
75post-activate   {
76                  system "texhash"
77                }
78