# $Id: Portfile 63516 2010-02-06 23:05:43Z gwright@macports.org $ PortSystem 1.0 name cadabra version 1.20 revision 1 categories math platforms darwin maintainers gwright description A field theory approach to symbolic computer algebra long_description \ Cadabra is a computer algebra system for the manipulation \ of what could loosely be called tensorial expressions. It is \ aimed at, though not necessarily restricted to, theoretical \ high energy physicists. Because of its target audience, the \ program's interface, storage system and underlying philosophy \ differ substantially from other computer algebra systems. homepage http://cadabra.phi-sci.com/ master_sites ${homepage} checksums md5 20b8cda9404a03d307191a7e32195253 \ sha1 6096c85ad1e8e2aabc5392624adc690cd1426c9d \ rmd160 acbd04693b67201891412e7e1d4accb57e8e45df variant texmacs description { install TeXmacs front end } { depends_run-append port:TeXmacs } variant maintainer_tests description { debug tests used by the maintainer } { # 1.16 requires maxima to run the maintainer tests. # This should go away in 1.18 according to the author. depends_run-append port:maxima } variant no_gui description { do not build GUI } { depends_lib-delete port:gtkmm configure.args-append --disable-gui } patchfiles patch-Makefile.in.diff \ patch-configure.diff depends_lib port:modglue \ port:pcre \ port:gmp \ port:LiE \ port:gtkmm \ port:texlive post-patch { reinplace "s|XXPATH_TO_GCCXX|${configure.cc}|" ${worksrcpath}/configure } build.env CC=${configure.cc} CXX=${configure.cxx} post-build { if {[variant_isset maintainer_tests]} { system "cd ${worksrcpath} && env CDB_LOG=1 ${build.cmd} test" system "cd ${worksrcpath} && env CDB_LOG=1 ${build.cmd} advtest" } } post-activate { system "${prefix}/bin/texhash" }