# $Id$ PortSystem 1.0 name cadabra version 1.16 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://www.aei.mpg.de/~peekas/cadabra/ master_sites ${homepage} checksums md5 9a9af6dd770362e1be04b37dfe1ab85d \ sha1 4fdaf6a959c048dde9efaf449d1e6667eab445c6 \ rmd160 bbe773b6831e66a0bcdead5148ceb8f5ab1edcc2 variant texmacs description { install TeXmacs from end } { depends_run port:TeXmacs } variant no_gui description { do not build GUI } { depends_lib-delete port:gtkmm configure.args-append --disable-gui } patchfiles patch-Makefile.in.diff \ patch-src-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 { system "env CDB_LOG=1 ${build.cmd} advtest" } post-activate { if {[variant_isset texmacs]} { system "${prefix}/bin/texhash" } }