Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/flexiblas/
Date: Fri, 26 Feb 2021 21:51:20
Message-Id: 1614376254.7ba814827abbf0d4aeb4a4de91ce717ae858633c.epsilon-0@gentoo
1 commit: 7ba814827abbf0d4aeb4a4de91ce717ae858633c
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Fri Feb 26 21:50:54 2021 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Fri Feb 26 21:50:54 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7ba81482
7
8 sci-libs/flexiblas: add alternate BLAS/LAPACK switch
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 sci-libs/flexiblas/flexiblas-3.0.4.ebuild | 45 +++++++++++++++++++++++++++++++
14 sci-libs/flexiblas/flexiblas-9999.ebuild | 45 +++++++++++++++++++++++++++++++
15 sci-libs/flexiblas/metadata.xml | 27 +++++++++++++++++++
16 3 files changed, 117 insertions(+)
17
18 diff --git a/sci-libs/flexiblas/flexiblas-3.0.4.ebuild b/sci-libs/flexiblas/flexiblas-3.0.4.ebuild
19 new file mode 100644
20 index 000000000..7a7e253d0
21 --- /dev/null
22 +++ b/sci-libs/flexiblas/flexiblas-3.0.4.ebuild
23 @@ -0,0 +1,45 @@
24 +# Copyright 1999-2021 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +PYTHON_COMPAT=( python3_{7..9} )
30 +inherit cmake python-any-r1
31 +
32 +DESCRIPTION="BLAS/LAPACK wrapper library for runtime switching of backends"
33 +HOMEPAGE="https://www.mpi-magdeburg.mpg.de/projects/flexiblas"
34 +
35 +if [[ "${PV}" == *9999 ]]; then
36 + inherit git-r3
37 + EGIT_REPO_URI="https://github.com/mpimd-csc/flexiblas"
38 +else
39 + SRC_URI="https://github.com/mpimd-csc/flexiblas/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 + KEYWORDS="~amd64 ~x86"
41 +fi
42 +
43 +LICENSE="GPL-3 MIT"
44 +SLOT="0"
45 +IUSE="test"
46 +RESTRICT="!test? ( test )"
47 +
48 +BDEPEND="
49 + test? ( ${PYTHON_DEPS} )
50 +"
51 +
52 +src_configure() {
53 + local mycmakeargs=(
54 + -DTESTS=$(usex test)
55 + -DEXAMPLES=OFF
56 + -DCBLAS=ON
57 + -DLAPACK=ON
58 + -DBLAS_AUTO_DETECT=OFF
59 + )
60 + cmake_src_configure
61 +}
62 +
63 +src_install() {
64 + cmake_src_install
65 + dosym libflexiblas.so "/usr/$(get_libdir)/libblas.so"
66 + dosym libflexiblas.so "/usr/$(get_libdir)/libcblas.so"
67 + dosym libflexiblas.so "/usr/$(get_libdir)/liblapack.so"
68 +}
69
70 diff --git a/sci-libs/flexiblas/flexiblas-9999.ebuild b/sci-libs/flexiblas/flexiblas-9999.ebuild
71 new file mode 100644
72 index 000000000..7a7e253d0
73 --- /dev/null
74 +++ b/sci-libs/flexiblas/flexiblas-9999.ebuild
75 @@ -0,0 +1,45 @@
76 +# Copyright 1999-2021 Gentoo Authors
77 +# Distributed under the terms of the GNU General Public License v2
78 +
79 +EAPI=7
80 +
81 +PYTHON_COMPAT=( python3_{7..9} )
82 +inherit cmake python-any-r1
83 +
84 +DESCRIPTION="BLAS/LAPACK wrapper library for runtime switching of backends"
85 +HOMEPAGE="https://www.mpi-magdeburg.mpg.de/projects/flexiblas"
86 +
87 +if [[ "${PV}" == *9999 ]]; then
88 + inherit git-r3
89 + EGIT_REPO_URI="https://github.com/mpimd-csc/flexiblas"
90 +else
91 + SRC_URI="https://github.com/mpimd-csc/flexiblas/archive/v${PV}.tar.gz -> ${P}.tar.gz"
92 + KEYWORDS="~amd64 ~x86"
93 +fi
94 +
95 +LICENSE="GPL-3 MIT"
96 +SLOT="0"
97 +IUSE="test"
98 +RESTRICT="!test? ( test )"
99 +
100 +BDEPEND="
101 + test? ( ${PYTHON_DEPS} )
102 +"
103 +
104 +src_configure() {
105 + local mycmakeargs=(
106 + -DTESTS=$(usex test)
107 + -DEXAMPLES=OFF
108 + -DCBLAS=ON
109 + -DLAPACK=ON
110 + -DBLAS_AUTO_DETECT=OFF
111 + )
112 + cmake_src_configure
113 +}
114 +
115 +src_install() {
116 + cmake_src_install
117 + dosym libflexiblas.so "/usr/$(get_libdir)/libblas.so"
118 + dosym libflexiblas.so "/usr/$(get_libdir)/libcblas.so"
119 + dosym libflexiblas.so "/usr/$(get_libdir)/liblapack.so"
120 +}
121
122 diff --git a/sci-libs/flexiblas/metadata.xml b/sci-libs/flexiblas/metadata.xml
123 new file mode 100644
124 index 000000000..c37e14ea4
125 --- /dev/null
126 +++ b/sci-libs/flexiblas/metadata.xml
127 @@ -0,0 +1,27 @@
128 +<?xml version="1.0" encoding="UTF-8"?>
129 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
130 +<pkgmetadata>
131 + <maintainer type="person">
132 + <email>gentoo@×××××.cc</email>
133 + <name>Aisha Tammy</name>
134 + </maintainer>
135 + <maintainer type="project">
136 + <email>sci@g.o</email>
137 + <name>Gentoo Science Project</name>
138 + </maintainer>
139 + <longdescription>
140 + FlexiBLAS is a wrapper library that enables the
141 + exchange of the BLAS, CBLAS and LAPACK implementations
142 + used in an executable without recompiling or re-linking it.
143 + FlexiBLAS provides a GNU Fortran compatible interface
144 + to all functions and subroutines provided by the Netlib
145 + reference implementations. As backends FlexiBLAS can employ
146 + all BLAS and LAPACK implementations which consist of a
147 + single shared library directly. Other variants like the
148 + Intel MKL or ATLAS that use multiple files are integrated
149 + by FlexiBLAS by wrapping all files into a single surrogate library.
150 + </longdescription>
151 + <upstream>
152 + <remote-id type="github">mpimd-csc/flexiblas</remote-id>
153 + </upstream>
154 +</pkgmetadata>