1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name cadabra |
---|
6 | version 1.33 |
---|
7 | revision 1 |
---|
8 | categories math |
---|
9 | platforms darwin |
---|
10 | maintainers gwright |
---|
11 | description A field theory approach to symbolic computer algebra |
---|
12 | long_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 | |
---|
20 | homepage http://cadabra.phi-sci.com/ |
---|
21 | master_sites ${homepage} |
---|
22 | |
---|
23 | checksums 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. |
---|
33 | compiler.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. |
---|
38 | configure.compiler apple-gcc-4.2 |
---|
39 | |
---|
40 | variant texmacs description { install TeXmacs front end } { |
---|
41 | depends_run-append port:TeXmacs |
---|
42 | } |
---|
43 | |
---|
44 | variant maintainer_tests description { debug tests used by the maintainer } { |
---|
45 | # This variant is only used for the value |
---|
46 | # of maintainer_tests. |
---|
47 | } |
---|
48 | |
---|
49 | variant no_gui description { do not build GUI } { |
---|
50 | depends_lib-delete port:gtkmm |
---|
51 | configure.args-append --disable-gui |
---|
52 | } |
---|
53 | |
---|
54 | depends_build port:pkgconfig \ |
---|
55 | port:pcrexx \ |
---|
56 | port:gcc47 |
---|
57 | |
---|
58 | depends_lib port:modglue \ |
---|
59 | port:pcre \ |
---|
60 | port:gmp \ |
---|
61 | port:LiE \ |
---|
62 | port:gtkmm \ |
---|
63 | port:texlive \ |
---|
64 | port:texlive-bin-extra |
---|
65 | |
---|
66 | build.env CC=${configure.cc} CXX=${configure.cxx} |
---|
67 | |
---|
68 | post-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 | |
---|
75 | post-activate { |
---|
76 | system "texhash" |
---|
77 | } |
---|
78 | |
---|