From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 135FC1382C5 for ; Fri, 26 Feb 2021 21:51:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49EA5E0844; Fri, 26 Feb 2021 21:51:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A22EE0844 for ; Fri, 26 Feb 2021 21:51:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5FB2A335DB9 for ; Fri, 26 Feb 2021 21:51:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA4DC2A9 for ; Fri, 26 Feb 2021 21:51:14 +0000 (UTC) From: "Aisha Tammy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aisha Tammy" Message-ID: <1614376254.7ba814827abbf0d4aeb4a4de91ce717ae858633c.epsilon-0@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/flexiblas/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/flexiblas/flexiblas-3.0.4.ebuild sci-libs/flexiblas/flexiblas-9999.ebuild sci-libs/flexiblas/metadata.xml X-VCS-Directories: sci-libs/flexiblas/ X-VCS-Committer: epsilon-0 X-VCS-Committer-Name: Aisha Tammy X-VCS-Revision: 7ba814827abbf0d4aeb4a4de91ce717ae858633c X-VCS-Branch: master Date: Fri, 26 Feb 2021 21:51:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5e8c8182-e083-4fca-a4ca-a18772f6318b X-Archives-Hash: f0a30d488e6f9066f0edf8af293c7032 commit: 7ba814827abbf0d4aeb4a4de91ce717ae858633c Author: Aisha Tammy aisha cc> AuthorDate: Fri Feb 26 21:50:54 2021 +0000 Commit: Aisha Tammy aisha cc> CommitDate: Fri Feb 26 21:50:54 2021 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7ba81482 sci-libs/flexiblas: add alternate BLAS/LAPACK switch Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Aisha Tammy aisha.cc> sci-libs/flexiblas/flexiblas-3.0.4.ebuild | 45 +++++++++++++++++++++++++++++++ sci-libs/flexiblas/flexiblas-9999.ebuild | 45 +++++++++++++++++++++++++++++++ sci-libs/flexiblas/metadata.xml | 27 +++++++++++++++++++ 3 files changed, 117 insertions(+) diff --git a/sci-libs/flexiblas/flexiblas-3.0.4.ebuild b/sci-libs/flexiblas/flexiblas-3.0.4.ebuild new file mode 100644 index 000000000..7a7e253d0 --- /dev/null +++ b/sci-libs/flexiblas/flexiblas-3.0.4.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +inherit cmake python-any-r1 + +DESCRIPTION="BLAS/LAPACK wrapper library for runtime switching of backends" +HOMEPAGE="https://www.mpi-magdeburg.mpg.de/projects/flexiblas" + +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mpimd-csc/flexiblas" +else + SRC_URI="https://github.com/mpimd-csc/flexiblas/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3 MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( ${PYTHON_DEPS} ) +" + +src_configure() { + local mycmakeargs=( + -DTESTS=$(usex test) + -DEXAMPLES=OFF + -DCBLAS=ON + -DLAPACK=ON + -DBLAS_AUTO_DETECT=OFF + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + dosym libflexiblas.so "/usr/$(get_libdir)/libblas.so" + dosym libflexiblas.so "/usr/$(get_libdir)/libcblas.so" + dosym libflexiblas.so "/usr/$(get_libdir)/liblapack.so" +} diff --git a/sci-libs/flexiblas/flexiblas-9999.ebuild b/sci-libs/flexiblas/flexiblas-9999.ebuild new file mode 100644 index 000000000..7a7e253d0 --- /dev/null +++ b/sci-libs/flexiblas/flexiblas-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +inherit cmake python-any-r1 + +DESCRIPTION="BLAS/LAPACK wrapper library for runtime switching of backends" +HOMEPAGE="https://www.mpi-magdeburg.mpg.de/projects/flexiblas" + +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mpimd-csc/flexiblas" +else + SRC_URI="https://github.com/mpimd-csc/flexiblas/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3 MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( ${PYTHON_DEPS} ) +" + +src_configure() { + local mycmakeargs=( + -DTESTS=$(usex test) + -DEXAMPLES=OFF + -DCBLAS=ON + -DLAPACK=ON + -DBLAS_AUTO_DETECT=OFF + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + dosym libflexiblas.so "/usr/$(get_libdir)/libblas.so" + dosym libflexiblas.so "/usr/$(get_libdir)/libcblas.so" + dosym libflexiblas.so "/usr/$(get_libdir)/liblapack.so" +} diff --git a/sci-libs/flexiblas/metadata.xml b/sci-libs/flexiblas/metadata.xml new file mode 100644 index 000000000..c37e14ea4 --- /dev/null +++ b/sci-libs/flexiblas/metadata.xml @@ -0,0 +1,27 @@ + + + + + gentoo@aisha.cc + Aisha Tammy + + + sci@gentoo.org + Gentoo Science Project + + + FlexiBLAS is a wrapper library that enables the + exchange of the BLAS, CBLAS and LAPACK implementations + used in an executable without recompiling or re-linking it. + FlexiBLAS provides a GNU Fortran compatible interface + to all functions and subroutines provided by the Netlib + reference implementations. As backends FlexiBLAS can employ + all BLAS and LAPACK implementations which consist of a + single shared library directly. Other variants like the + Intel MKL or ATLAS that use multiple files are integrated + by FlexiBLAS by wrapping all files into a single surrogate library. + + + mpimd-csc/flexiblas + +