[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/
commit: b72cc4f8776e902a1c146438866b9e3cc19e1474 Author: Pacho Ramos gentoo org> AuthorDate: Tue Jul 30 21:10:00 2024 + Commit: Pacho Ramos gentoo org> CommitDate: Tue Jul 30 21:11:54 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b72cc4f8 sci-libs/clblas: enable py3.12 Closes: https://bugs.gentoo.org/929770 Signed-off-by: Pacho Ramos gentoo.org> sci-libs/clblas/clblas-2.12-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-libs/clblas/clblas-2.12-r2.ebuild b/sci-libs/clblas/clblas-2.12-r2.ebuild index 654c43bcf00f..72bfd21c224c 100644 --- a/sci-libs/clblas/clblas-2.12-r2.ebuild +++ b/sci-libs/clblas/clblas-2.12-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) DOCS_BUILDER="doxygen" DOCS_DEPEND="
[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/
commit: c106cf9e4ee6b29a4357feaf0fd9e5e9744769f6 Author: Michael Orlitzky gentoo org> AuthorDate: Wed Aug 16 13:18:56 2023 + Commit: Michael Orlitzky gentoo org> CommitDate: Wed Aug 16 20:13:05 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c106cf9e 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 gentoo.org> sci-libs/clblas/{clblas-2.12-r1.ebuild => clblas-2.12-r2.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/clblas/clblas-2.12-r1.ebuild b/sci-libs/clblas/clblas-2.12-r2.ebuild similarity index 98% rename from sci-libs/clblas/clblas-2.12-r1.ebuild rename to sci-libs/clblas/clblas-2.12-r2.ebuild index 1208534eb25c..654c43bcf00f 100644 --- a/sci-libs/clblas/clblas-2.12-r1.ebuild +++ b/sci-libs/clblas/clblas-2.12-r2.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) DOCS_BUILDER="doxygen" -DOCS_DEPEND="dev-libs/mathjax" +DOCS_DEPEND="
[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/
commit: 21787793798ba4812bdf25b89bfd3d77a8845d64 Author: Jakov Smolić gentoo org> AuthorDate: Sat May 20 06:01:35 2023 + Commit: Jakov Smolić gentoo org> CommitDate: Sat May 20 06:01:35 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21787793 sci-libs/clblas: Keyword 2.12-r1 riscv, #906067 Signed-off-by: Jakov Smolić gentoo.org> sci-libs/clblas/clblas-2.12-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/clblas/clblas-2.12-r1.ebuild b/sci-libs/clblas/clblas-2.12-r1.ebuild index bed21d727f80..1208534eb25c 100644 --- a/sci-libs/clblas/clblas-2.12-r1.ebuild +++ b/sci-libs/clblas/clblas-2.12-r1.ebuild @@ -20,7 +20,7 @@ S="${WORKDIR}/${MYPN}-${PV}" LICENSE="Apache-2.0" SLOT="0/2" # soname version -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +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"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/
commit: b49c7e4d491ad7636adc4c461fbae95c86a59ca5 Author: Andrew Ammerlaan gentoo org> AuthorDate: Wed Oct 5 14:42:52 2022 + Commit: Andrew Ammerlaan gentoo org> CommitDate: Wed Oct 5 14:43:28 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b49c7e4d sci-libs/clblas: EAPI8, python3_{10,11}, use docs.eclass Closes: https://bugs.gentoo.org/846251 Signed-off-by: Andrew Ammerlaan gentoo.org> .../{clblas-2.12.ebuild => clblas-2.12-r1.ebuild} | 32 ++ 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/sci-libs/clblas/clblas-2.12.ebuild b/sci-libs/clblas/clblas-2.12-r1.ebuild similarity index 81% rename from sci-libs/clblas/clblas-2.12.ebuild rename to sci-libs/clblas/clblas-2.12-r1.ebuild index ccbad57cc802..15afdee6a00e 100644 --- a/sci-libs/clblas/clblas-2.12.ebuild +++ b/sci-libs/clblas/clblas-2.12-r1.ebuild @@ -1,36 +1,39 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..11} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND="dev-libs/mathjax" +DOCS_CONFIG_NAME="clBLAS.doxy" +DOCS_DIR="doc" -inherit python-any-r1 toolchain-funcs cmake +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 ~x86 ~amd64-linux ~x86-linux" -IUSE="+client doc examples ktest performance test" +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 ) - doc? ( dev-libs/mathjax )" +" DEPEND="${RDEPEND}" -BDEPEND=" - ${PYTHON_DEPS} - doc? ( app-doc/doxygen ) - client? ( virtual/pkgconfig )" +BDEPEND="${PYTHON_DEPS} + client? ( virtual/pkgconfig ) +" -S="${WORKDIR}/${MYPN}-${PV}" CMAKE_USE_DIR="${S}/src" PATCHES=( @@ -62,12 +65,7 @@ src_configure() { src_compile() { cmake_src_compile - - if use doc; then - cd doc || die - doxygen clBLAS.doxy || die - HTML_DOCS=( doc/html/. ) - fi + docs_compile } src_install() {
[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/, sci-libs/clblas/files/
commit: 184456970fa09df86d419c48020fdad2b5b3911a Author: David Seifert gentoo org> AuthorDate: Tue Dec 29 12:57:25 2020 + Commit: David Seifert gentoo org> CommitDate: Tue Dec 29 12:57:25 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18445697 sci-libs/clblas: Version bump to 2.12 Bug: https://bugs.gentoo.org/608086 Bug: https://bugs.gentoo.org/741386 Bug: https://bugs.gentoo.org/737410 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: David Seifert gentoo.org> sci-libs/clblas/Manifest | 1 + sci-libs/clblas/clblas-2.12.ebuild | 82 ++ 12-Detect-CBLAS-when-building-the-client.patch | 24 +++ .../clblas-2.12-disable-multilib-cflags.patch | 26 +++ .../files/clblas-2.12-fix-doxygen-output-dir.patch | 16 + .../files/clblas-2.12-fix-pthread-linkage.patch| 18 + .../files/clblas-2.12-reproducible-build.patch | 17 + .../files/clblas-2.12-use-boost-dynamic-libs.patch | 16 + .../files/clblas-2.12-use-system-mathjax.patch | 18 + 9 files changed, 218 insertions(+) diff --git a/sci-libs/clblas/Manifest b/sci-libs/clblas/Manifest index 304f9e7bde3..d282335f29d 100644 --- a/sci-libs/clblas/Manifest +++ b/sci-libs/clblas/Manifest @@ -1 +1,2 @@ DIST clblas-2.10.tar.gz 1154117 BLAKE2B 67035b03ab3a8fa07f32cb8d1d40af39fd885ceb21d9754f8a49a62adcfacbeeec703dfdae922ec0fc915a2dcadff2fc2f07a6c5ced74db3da6cd85c6c63f4d5 SHA512 5ed43104aae565292e0df4cc9e014cf483ccc0ff89257ebb5817f6508bfc9593585ed658da639f2167fbfb5d92ef116be4d5de3694f56e1a1e228bd42b1c05c6 +DIST clblas-2.12.tar.gz 1157445 BLAKE2B 27352a7775db94808ce21f2b4a39fe505d4f37be4305dc7fb5a4068a86d3f51a9e4863931f634150762b31256f9f7e8e5d0d8b70f404b5a9ddb8a489b800aea6 SHA512 5d9b0c58adde69e83d95e9c713e0cdc5f64785fe7e05553a14c57fa483c4ef39e9dc780c26880a7f15924967d5ce4ea29035c29d63eac7ee5a2ae5ddacac2b72 diff --git a/sci-libs/clblas/clblas-2.12.ebuild b/sci-libs/clblas/clblas-2.12.ebuild new file mode 100644 index 000..700aa880f9f --- /dev/null +++ b/sci-libs/clblas/clblas-2.12.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit python-any-r1 toolchain-funcs cmake + +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" + +LICENSE="Apache-2.0" +SLOT="0/2" # soname version +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+client doc examples ktest performance test" +# the testsuite is hopelessly broken and upstream is pretty much dead +RESTRICT="test" + +RDEPEND=" + virtual/opencl + client? ( virtual/cblas ) + doc? ( dev-libs/mathjax )" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + doc? ( app-doc/doxygen ) + client? ( virtual/pkgconfig )" + +S="${WORKDIR}/${MYPN}-${PV}" +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 + + if use doc; then + cd doc || die + doxygen clBLAS.doxy || die + HTML_DOCS=( doc/html/. ) + fi +} + +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/files/clblas-2.12-Detect-CBLAS-when-building-the-client.patch b/sci-libs/clblas/files/clblas-2.12-Detect-CBLAS-when-building-the-client.patch new file mode 100644 index 000..bfe94dfd707 --- /dev/null +++ b/sci-libs/clblas/files/clblas-2.12-Detect-CBLAS-when-building-the-client.patch @@ -0,0 +1,24 @@ +From: Ghislain Antony Vaillant +Date: Sat, 21 Jan 2
[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/, sci-libs/clblas/files/
commit: 02156e32c4b284613180cde84812a06be830d2ae Author: David Seifert gentoo org> AuthorDate: Tue Dec 29 12:57:26 2020 + Commit: David Seifert gentoo org> CommitDate: Tue Dec 29 12:57:26 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02156e32 sci-libs/clblas: Remove old 2.10 Closes: https://bugs.gentoo.org/608086 Closes: https://bugs.gentoo.org/741386 Closes: https://bugs.gentoo.org/737410 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: David Seifert gentoo.org> sci-libs/clblas/Manifest | 1 - sci-libs/clblas/clblas-2.10.ebuild | 102 - .../clblas-2.10-disable-multilib-cflags.patch | 20 .../files/clblas-2.10-fix-blas-dot-calls.patch | 59 .../files/clblas-2.10-fix-doxygen-output-dir.patch | 16 .../files/clblas-2.10-fix-pthread-linkage.patch| 18 .../files/clblas-2.10-use-boost-dynamic-libs.patch | 16 .../files/clblas-2.10-use-system-mathjax.patch | 18 8 files changed, 250 deletions(-) diff --git a/sci-libs/clblas/Manifest b/sci-libs/clblas/Manifest index d282335f29d..5ccea72193c 100644 --- a/sci-libs/clblas/Manifest +++ b/sci-libs/clblas/Manifest @@ -1,2 +1 @@ -DIST clblas-2.10.tar.gz 1154117 BLAKE2B 67035b03ab3a8fa07f32cb8d1d40af39fd885ceb21d9754f8a49a62adcfacbeeec703dfdae922ec0fc915a2dcadff2fc2f07a6c5ced74db3da6cd85c6c63f4d5 SHA512 5ed43104aae565292e0df4cc9e014cf483ccc0ff89257ebb5817f6508bfc9593585ed658da639f2167fbfb5d92ef116be4d5de3694f56e1a1e228bd42b1c05c6 DIST clblas-2.12.tar.gz 1157445 BLAKE2B 27352a7775db94808ce21f2b4a39fe505d4f37be4305dc7fb5a4068a86d3f51a9e4863931f634150762b31256f9f7e8e5d0d8b70f404b5a9ddb8a489b800aea6 SHA512 5d9b0c58adde69e83d95e9c713e0cdc5f64785fe7e05553a14c57fa483c4ef39e9dc780c26880a7f15924967d5ce4ea29035c29d63eac7ee5a2ae5ddacac2b72 diff --git a/sci-libs/clblas/clblas-2.10.ebuild b/sci-libs/clblas/clblas-2.10.ebuild deleted file mode 100644 index 112150552dc..000 --- a/sci-libs/clblas/clblas-2.10.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_6 ) -FORTRAN_NEEDED=test - -inherit cmake-utils python-single-r1 toolchain-funcs fortran-2 - -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" - -LICENSE="Apache-2.0" -SLOT="0/2" # soname version -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="+client doc examples ktest performance test" -RESTRICT="!test? ( test )" - -REQUIRED_USE="performance? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - virtual/opencl - doc? ( dev-libs/mathjax ) - performance? ( ${PYTHON_DEPS} ) -" -DEPEND="${RDEPEND} - doc? ( app-doc/doxygen ) - test? ( - dev-cpp/gtest - dev-libs/boost - virtual/pkgconfig - virtual/blas - ) -" - -S="${WORKDIR}/${MYPN}-${PV}" -CMAKE_USE_DIR="${S}/src" - -PATCHES=( - "${FILESDIR}"/${P}-disable-multilib-cflags.patch - "${FILESDIR}"/${P}-fix-blas-dot-calls.patch - "${FILESDIR}"/${P}-fix-doxygen-output-dir.patch - "${FILESDIR}"/${P}-fix-pthread-linkage.patch - "${FILESDIR}"/${P}-use-boost-dynamic-libs.patch - "${FILESDIR}"/${P}-use-system-mathjax.patch -) - -src_configure() { - local mycmakeargs=( - -DBUILD_SHARED_LIBS=ON - -DBUILD_RUNTIME=ON - -DBUILD_SAMPLE=OFF - -DBUILD_CLIENT="$(usex client)" - -DBUILD_KTEST="$(usex ktest)" - -DBUILD_PERFORMANCE="$(usex performance)" - ) - if use test; then - mycmakeargs+=( - -DBUILD_TEST=ON - -DUSE_SYSTEM_GTEST=ON - -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" - ) - else - mycmakeargs+=( -DBUILD_TEST=OFF ) - fi - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile - if use doc; then - cd doc - doxygen clBLAS.doxy || die - fi -} - -src_test() { - pushd "${BUILD_DIR}/staging" > /dev/null - LD_LIBRARY_PATH="${BUILD_DIR}/library:${LD_LIBRARY_PATH}" \ - ./test-short - popd > /dev/null - - # horrible hack to avoid installing compiled tests - # this will trigger some overcompilation - mycmakeargs+=( -DBUILD_TEST=OFF ) - cmake-utils_src_configure -} - -src_install() { - use doc && HTML_DOCS=( doc/html/. ) - cmake-utils_src_install - dodoc CHANGELOG CONTRIBUTING.md NOTICE README.md - if use examples; then - insinto /usr/share/doc/${PF}/examples - doins -r src/samp
[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/
commit: 8f3b36af8eb47273d4fce8a9656368e77212c494 Author: Michał Górny gentoo org> AuthorDate: Mon Feb 10 12:06:47 2020 + Commit: Michał Górny gentoo org> CommitDate: Mon Feb 10 12:12:42 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f3b36af sci-libs/clblas: Remove py2 Signed-off-by: Michał Górny gentoo.org> sci-libs/clblas/clblas-2.10.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/clblas/clblas-2.10.ebuild b/sci-libs/clblas/clblas-2.10.ebuild index 3211a5ab13e..112150552dc 100644 --- a/sci-libs/clblas/clblas-2.10.ebuild +++ b/sci-libs/clblas/clblas-2.10.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python{2_7,3_6} ) +PYTHON_COMPAT=( python3_6 ) FORTRAN_NEEDED=test inherit cmake-utils python-single-r1 toolchain-funcs fortran-2
[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/
commit: 3e4b0a48ec455a208102ae150f2be6feb6b1fc32 Author: Pacho Ramos gentoo org> AuthorDate: Tue Jun 26 19:45:28 2018 + Commit: Pacho Ramos gentoo org> CommitDate: Tue Jun 26 19:50:57 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e4b0a48 sci-libs/clblas: Support python 3.6 Package-Manager: Portage-2.3.40, Repoman-2.3.9 sci-libs/clblas/clblas-2.10.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-libs/clblas/clblas-2.10.ebuild b/sci-libs/clblas/clblas-2.10.ebuild index de0b41541ea..545451a85ae 100644 --- a/sci-libs/clblas/clblas-2.10.ebuild +++ b/sci-libs/clblas/clblas-2.10.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) FORTRAN_NEEDED=test inherit cmake-utils python-single-r1 toolchain-funcs fortran-2
[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/
commit: 34fc31ad0c11a75ec40eefa6e974ece49fff5c82 Author: Sébastien Fabbro gentoo org> AuthorDate: Wed Jan 4 15:00:44 2017 + Commit: Sebastien Fabbro gentoo org> CommitDate: Wed Jan 4 15:01:04 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34fc31ad sci-libs/clblas: fixed SRC_URI Package-Manager: Portage-2.3.3, Repoman-2.3.1 sci-libs/clblas/clblas-2.10.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/clblas/clblas-2.10.ebuild b/sci-libs/clblas/clblas-2.10.ebuild index 1769b44..422a9a2 100644 --- a/sci-libs/clblas/clblas-2.10.ebuild +++ b/sci-libs/clblas/clblas-2.10.ebuild @@ -13,7 +13,7 @@ MYPN="clBLAS" DESCRIPTION="Library containing BLAS routines for OpenCL" HOMEPAGE="https://github.com/clMathLibraries/clBLAS"; -SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/clMathLibraries/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0/2" # soname version
[gentoo-commits] repo/gentoo:master commit in: sci-libs/clblas/files/, sci-libs/clblas/
commit: 023edbbca8c5bb368ed32ce0fe44b54f9a537de4 Author: Sébastien Fabbro gentoo org> AuthorDate: Wed Jan 4 05:09:09 2017 + Commit: Sebastien Fabbro gentoo org> CommitDate: Wed Jan 4 06:02:05 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=023edbbc sci-libs/clblas: initial import Package-Manager: Portage-2.3.3, Repoman-2.3.1 sci-libs/clblas/Manifest | 1 + sci-libs/clblas/clblas-2.10.ebuild | 102 + .../clblas-2.10-disable-multilib-cflags.patch | 20 .../files/clblas-2.10-fix-blas-dot-calls.patch | 59 .../files/clblas-2.10-fix-doxygen-output-dir.patch | 16 .../files/clblas-2.10-fix-pthread-linkage.patch| 18 .../files/clblas-2.10-use-boost-dynamic-libs.patch | 16 .../files/clblas-2.10-use-system-mathjax.patch | 18 sci-libs/clblas/metadata.xml | 29 ++ 9 files changed, 279 insertions(+) diff --git a/sci-libs/clblas/Manifest b/sci-libs/clblas/Manifest new file mode 100644 index ..7431ba3 --- /dev/null +++ b/sci-libs/clblas/Manifest @@ -0,0 +1 @@ +DIST clblas-2.10.tar.gz 1154117 SHA256 72a46cb92f6057d10b503ce23d62db73d7332eb0645bb8bca3337f4c0558b429 SHA512 5ed43104aae565292e0df4cc9e014cf483ccc0ff89257ebb5817f6508bfc9593585ed658da639f2167fbfb5d92ef116be4d5de3694f56e1a1e228bd42b1c05c6 WHIRLPOOL 1a96142dc0e7aad076d1e61508b943da8ac176bd889cac89a3cab1aab64a1d8a6bc207bda4483be7dc726af600b660370548ee06db4d28d4b6643b7bff9419e8 diff --git a/sci-libs/clblas/clblas-2.10.ebuild b/sci-libs/clblas/clblas-2.10.ebuild new file mode 100644 index ..1769b44 --- /dev/null +++ b/sci-libs/clblas/clblas-2.10.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +FORTRAN_NEEDED=test + +inherit cmake-utils python-single-r1 toolchain-funcs fortran-2 + +MYPN="clBLAS" + +DESCRIPTION="Library containing BLAS routines for OpenCL" +HOMEPAGE="https://github.com/clMathLibraries/clBLAS"; +SRC_URI="https://github.com/clMathLibraries/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/2" # soname version +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+client doc examples ktest performance test" + +REQUIRED_USE="performance? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + virtual/opencl + doc? ( dev-libs/mathjax ) + performance? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + test? ( + dev-cpp/gtest + dev-libs/boost + virtual/pkgconfig + virtual/blas + ) +" + +S="${WORKDIR}/${MYPN}-${PV}" +CMAKE_USE_DIR="${S}/src" + +PATCHES=( + "${FILESDIR}"/${P}-disable-multilib-cflags.patch + "${FILESDIR}"/${P}-fix-blas-dot-calls.patch + "${FILESDIR}"/${P}-fix-doxygen-output-dir.patch + "${FILESDIR}"/${P}-fix-pthread-linkage.patch + "${FILESDIR}"/${P}-use-boost-dynamic-libs.patch + "${FILESDIR}"/${P}-use-system-mathjax.patch +) + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DBUILD_RUNTIME=ON + -DBUILD_SAMPLE=OFF + -DBUILD_CLIENT="$(usex client)" + -DBUILD_KTEST="$(usex ktest)" + -DBUILD_PERFORMANCE="$(usex performance)" + ) + if use test; then + mycmakeargs+=( + -DBUILD_TEST=ON + -DUSE_SYSTEM_GTEST=ON + -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" + ) + else + mycmakeargs+=( -DBUILD_TEST=OFF ) + fi + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc; then + cd doc + doxygen clBLAS.doxy || die + fi +} + +src_test() { + pushd "${BUILD_DIR}/staging" > /dev/null + LD_LIBRARY_PATH="${BUILD_DIR}/library:${LD_LIBRARY_PATH}" \ + ./test-short + popd > /dev/null + + # horrible hack to avoid installing compiled tests + # this will trigger some overcompilation + mycmakeargs+=( -DBUILD_TEST=OFF ) + cmake-utils_src_configure +} + +src_install() { + use doc && HTML_DOCS=( doc/html/. ) + cmake-utils_src_install + dodoc CHANGELOG CONTRIBUTING.md NOTICE README.md + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r src/samples/* + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/sci-libs/clblas/files/clblas-2.10-disable-multilib-cflags.patch b/sci-libs/clblas/files/clblas-2.10-disable-multilib-cflags.patch new file mode 100644 index ..a7e59d9 --- /dev/null +++ b/sci-libs/clblas/files/clblas-2.10-disable-multilib-cflags.pa