# -*- 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.5.2 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 250618b875cb367b761e60653e5b2f143a22f574 \ sha256 22ea44dd8499fb4896c1a59c03ea86f630c70c72d52c53ba74391dd44aa1252a \ size 32472146 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 pre-configure { if {![file exists ${prefix}/include/nlohmann/json.hpp]} { ui_error " **** **** cadabra2 uses its own bundled version of nlohmann/json.hpp **** The build will fail if the nlohmann-json port is active. **** Please deactivate it: **** sudo port deactivate nlohmann-json **** You can reactivate it after installing cadabra2: **** sudo port activate nlohmann-json **** " error "nlohmann-json installed." } } 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 }