commit: 86316b77cac1fa1e4a5cd89fa8cd26daf02992bf Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Wed Jan 22 23:12:18 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Wed Jan 22 23:14:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86316b77
sci-mathematics/yacas: Drop IUSE gui, abandoned upstream See also: https://github.com/grzegorzmazur/yacas/issues/361 Closes: https://bugs.gentoo.org/926677 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> sci-mathematics/yacas/yacas-1.9.1-r2.ebuild | 56 +++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/sci-mathematics/yacas/yacas-1.9.1-r2.ebuild b/sci-mathematics/yacas/yacas-1.9.1-r2.ebuild new file mode 100644 index 000000000000..447083b06888 --- /dev/null +++ b/sci-mathematics/yacas/yacas-1.9.1-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Sphinx doc building is not compatible with in-tree version of sphinx-bibtex: +# Extension error: You must configure the bibtex_bibfiles setting +# +# PYTHON_COMPAT=( python3_{8..10} ) +# DOCS_BUILDER="sphinx" +# DOCS_DEPEND=" +# dev-python/sphinxcontrib-bibtex +# dev-python/sphinx-rtd-theme +# " + +inherit cmake xdg # python-any-r1 docs + +DESCRIPTION="General purpose computer algebra system" +HOMEPAGE="https://www.yacas.org/" +SRC_URI="https://github.com/grzegorzmazur/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/1" +KEYWORDS="~amd64 ~x86" +IUSE="+jupyter test" +RESTRICT="!test? ( test )" + +# Upstream bundles MathJax-2.x +DEPEND=" + jupyter? ( + dev-libs/boost:= + dev-libs/jsoncpp:= + dev-libs/openssl:0= + dev-python/jupyter + net-libs/zeromq + >=net-libs/zmqpp-4.1.2 + ) +" +RDEPEND="${DEPEND}" + +src_configure() { + # TODO: Unbundle CodeMirror + local mycmakeargs=( + -DENABLE_CYACAS_BENCHMARKS=OFF + -DENABLE_DOCS=OFF + # -DENABLE_DOCS=$(usex doc) + -DENABLE_JYACAS=OFF # requires manual install + -DENABLE_CYACAS_GUI=OFF # bug 926677 + # use system version of mathjax instead + -DENABLE_CYACAS_GUI_PRIVATE_MATHJAX=OFF + -DMATHJAX_PATH="${EPREFIX}/usr/share/mathjax/MathJax.js" + -DENABLE_CYACAS_KERNEL=$(usex jupyter) + -DENABLE_CYACAS_UNIT_TESTS=$(usex test) + ) + cmake_src_configure +}