# -*- 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 PortSystem 1.0 PortGroup cmake 1.1 PortGroup github 1.0 PortGroup boost 1.0 github.setup kpeeters cadabra2 2.4.5.7 revision 0 categories math platforms darwin license GPL-3+ maintainers nomaintainer 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 https://cadabra.science/index.html checksums rmd160 a507bfed677970dfd93ed7cd2d7a8c979c1aedd8 \ sha256 8080ea2c0dab05999488c2913e16b65f0d5f5ee9c4ad97dde9bd77d81e3f40f3 \ size 26833709 compiler.cxx_standard 2017 patchfiles patch-frontend-gtkmm-CMakeLists.txt.diff set python.version 312 set python.branch [string index ${python.version} 0].[string range ${python.version} 1 end] set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch} depends_build-append \ port:pkgconfig \ port:pcrexx depends_lib-append port:adwaita-icon-theme \ port:dvipng \ port:gmp \ port:gtkmm3 \ port:hicolor-icon-theme \ port:pcre \ port:py${python.version}-sympy \ port:sqlite3 \ port:texlive-basic \ port:texlive-latex \ port:texlive-latex-recommended configure.args -DENABLE_MATHEMATICA=OFF \ -DPYBIND11_PYTHON_VERSION=${python.branch} \ -DSQLITE3_INCLUDE_DIR=${prefix}/include post-destroot { ln ${destroot}${python.prefix}/lib/python${python.branch}/site-packages/cadabra2.cpython-${python.version}-darwin.so \ ${destroot}${prefix}/lib/cadabra2.cpython-${python.version}-darwin.so } post-activate { system "${prefix}/bin/texhash" system "gtk-update-icon-cache-3.0 ${prefix}/share/icons/hicolor" } variant texmacs description {install TeXmacs front end} { depends_run-append port:TeXmacs }