From c106cf9e4ee6b29a4357feaf0fd9e5e9744769f6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 16 Aug 2023 09:18:56 -0400 Subject: sci-libs/clblas: add dev-libs/mathjax upper bound Upstream (last release in 2017) requires the old mathjax-2.x, so when we add mathjax-3.x, bad things will happen otherwise. Bug: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky --- sci-libs/clblas/clblas-2.12-r1.ebuild | 80 ----------------------------------- sci-libs/clblas/clblas-2.12-r2.ebuild | 80 +++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 80 deletions(-) delete mode 100644 sci-libs/clblas/clblas-2.12-r1.ebuild create mode 100644 sci-libs/clblas/clblas-2.12-r2.ebuild diff --git a/sci-libs/clblas/clblas-2.12-r1.ebuild b/sci-libs/clblas/clblas-2.12-r1.ebuild deleted file mode 100644 index 1208534eb25c..000000000000 --- a/sci-libs/clblas/clblas-2.12-r1.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} ) -DOCS_BUILDER="doxygen" -DOCS_DEPEND="dev-libs/mathjax" -DOCS_CONFIG_NAME="clBLAS.doxy" -DOCS_DIR="doc" - -inherit python-any-r1 toolchain-funcs cmake docs - -MYPN="clBLAS" - -DESCRIPTION="Library containing BLAS routines for OpenCL" -HOMEPAGE="https://github.com/clMathLibraries/clBLAS" -SRC_URI="https://github.com/clMathLibraries/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${MYPN}-${PV}" - -LICENSE="Apache-2.0" -SLOT="0/2" # soname version -KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux" -IUSE="+client examples ktest performance test" -# the testsuite is hopelessly broken and upstream is pretty much dead -RESTRICT="test" - -RDEPEND=" - virtual/opencl - client? ( virtual/cblas ) -" -DEPEND="${RDEPEND}" -BDEPEND="${PYTHON_DEPS} - client? ( virtual/pkgconfig ) -" - -CMAKE_USE_DIR="${S}/src" - -PATCHES=( - "${FILESDIR}"/${PN}-2.12-disable-multilib-cflags.patch - "${FILESDIR}"/${PN}-2.12-fix-pthread-linkage.patch - "${FILESDIR}"/${PN}-2.12-fix-doxygen-output-dir.patch - "${FILESDIR}"/${PN}-2.12-use-system-mathjax.patch - "${FILESDIR}"/${PN}-2.12-reproducible-build.patch - "${FILESDIR}"/${PN}-2.12-use-boost-dynamic-libs.patch - "${FILESDIR}"/${PN}-2.12-Detect-CBLAS-when-building-the-client.patch -) - -src_configure() { - local mycmakeargs=( - -DBUILD_RUNTIME=ON - -DBUILD_SAMPLE=OFF - # tests are beyond repair - -DBUILD_TEST=OFF - -DBUILD_CLIENT=$(usex client) - -DBUILD_KTEST=$(usex ktest) - -DBUILD_PERFORMANCE=$(usex performance) - -DPYTHON_EXECUTABLE="${PYTHON}" - ) - use client && mycmakeargs+=( - -DNetlib_LIBRARIES="$($(tc-getPKG_CONFIG) --libs cblas blas)" - ) - cmake_src_configure -} - -src_compile() { - cmake_src_compile - docs_compile -} - -src_install() { - cmake_src_install - - dodoc CHANGELOG CONTRIBUTING.md NOTICE README.md - if use examples; then - docinto examples - dodoc -r src/samples/. - docompress -x /usr/share/doc/${PF}/examples - fi -} diff --git a/sci-libs/clblas/clblas-2.12-r2.ebuild b/sci-libs/clblas/clblas-2.12-r2.ebuild new file mode 100644 index 000000000000..654c43bcf00f --- /dev/null +++ b/sci-libs/clblas/clblas-2.12-r2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND="