app-metrics/prometheus: add 3.1.0
[gentoo/gentoo.git] / sci-mathematics / yacas / yacas-1.9.1-r2.ebuild
blob447083b06888b5b671eda1402227c03e90c6340e
1 # Copyright 1999-2025 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 # Sphinx doc building is not compatible with in-tree version of sphinx-bibtex:
7 # Extension error: You must configure the bibtex_bibfiles setting
9 # PYTHON_COMPAT=( python3_{8..10} )
10 # DOCS_BUILDER="sphinx"
11 # DOCS_DEPEND="
12 #       dev-python/sphinxcontrib-bibtex
13 #       dev-python/sphinx-rtd-theme
14 # "
16 inherit cmake xdg # python-any-r1 docs
18 DESCRIPTION="General purpose computer algebra system"
19 HOMEPAGE="https://www.yacas.org/"
20 SRC_URI="https://github.com/grzegorzmazur/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
22 LICENSE="GPL-2"
23 SLOT="0/1"
24 KEYWORDS="~amd64 ~x86"
25 IUSE="+jupyter test"
26 RESTRICT="!test? ( test )"
28 # Upstream bundles MathJax-2.x
29 DEPEND="
30         jupyter? (
31                 dev-libs/boost:=
32                 dev-libs/jsoncpp:=
33                 dev-libs/openssl:0=
34                 dev-python/jupyter
35                 net-libs/zeromq
36                 >=net-libs/zmqpp-4.1.2
37         )
39 RDEPEND="${DEPEND}"
41 src_configure() {
42         # TODO: Unbundle CodeMirror
43         local mycmakeargs=(
44                 -DENABLE_CYACAS_BENCHMARKS=OFF
45                 -DENABLE_DOCS=OFF
46                 # -DENABLE_DOCS=$(usex doc)
47                 -DENABLE_JYACAS=OFF # requires manual install
48                 -DENABLE_CYACAS_GUI=OFF # bug 926677
49                 # use system version of mathjax instead
50                 -DENABLE_CYACAS_GUI_PRIVATE_MATHJAX=OFF
51                 -DMATHJAX_PATH="${EPREFIX}/usr/share/mathjax/MathJax.js"
52                 -DENABLE_CYACAS_KERNEL=$(usex jupyter)
53                 -DENABLE_CYACAS_UNIT_TESTS=$(usex test)
54         )
55         cmake_src_configure