Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/lapack/
Date: Tue, 30 Nov 2021 13:30:11
Message-Id: 1638278994.f5c48ef2abab143c6076c05404464cfac9f0f813.asturm@gentoo
1 commit: f5c48ef2abab143c6076c05404464cfac9f0f813
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 29 15:22:27 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 30 13:29:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5c48ef2
7
8 sci-libs/lapack: Drop 3.8.0-r1
9
10 Bug: https://bugs.gentoo.org/733580
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 sci-libs/lapack/lapack-3.8.0-r1.ebuild | 88 ----------------------------------
15 1 file changed, 88 deletions(-)
16
17 diff --git a/sci-libs/lapack/lapack-3.8.0-r1.ebuild b/sci-libs/lapack/lapack-3.8.0-r1.ebuild
18 deleted file mode 100644
19 index d97667a141d8..000000000000
20 --- a/sci-libs/lapack/lapack-3.8.0-r1.ebuild
21 +++ /dev/null
22 @@ -1,88 +0,0 @@
23 -# Copyright 1999-2021 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -CMAKE_MAKEFILE_GENERATOR=emake
28 -inherit cmake-utils
29 -
30 -DESCRIPTION="BLAS,CBLAS,LAPACK,LAPACKE reference implementations"
31 -HOMEPAGE="https://www.netlib.org/lapack/"
32 -SRC_URI="https://www.netlib.org/${PN}/${P}.tar.gz"
33 -
34 -LICENSE="BSD"
35 -SLOT="0"
36 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
37 -IUSE="lapacke deprecated doc eselect-ldso"
38 -# TODO: static-libs 64bit-index
39 -
40 -RDEPEND="
41 - eselect-ldso? ( >=app-eselect/eselect-blas-0.2
42 - >=app-eselect/eselect-lapack-0.2 )
43 - !app-eselect/eselect-cblas
44 - virtual/fortran
45 - doc? ( app-doc/blas-docs )"
46 -DEPEND="${RDEPEND}
47 - virtual/pkgconfig"
48 -
49 -src_configure() {
50 - local mycmakeargs=(
51 - -DCBLAS=ON
52 - -DLAPACKE=$(usex lapacke)
53 - -DBUILD_DEPRECATED=$(usex deprecated)
54 - -DBUILD_SHARED_LIBS=ON
55 - )
56 - cmake-utils_src_configure
57 -}
58 -
59 -src_install() {
60 - cmake-utils_src_install
61 -
62 - use eselect-ldso || return
63 - # Create private lib directory for eselect::blas (ld.so.conf)
64 - dodir /usr/$(get_libdir)/blas/reference
65 - dosym ../../libblas.so usr/$(get_libdir)/blas/reference/libblas.so
66 - dosym ../../libblas.so.3 usr/$(get_libdir)/blas/reference/libblas.so.3
67 - dosym ../../libcblas.so usr/$(get_libdir)/blas/reference/libcblas.so
68 - dosym ../../libcblas.so.3 usr/$(get_libdir)/blas/reference/libcblas.so.3
69 -
70 - # Create private lib directory for eselect::lapack (ld.so.conf)
71 - dodir /usr/$(get_libdir)/lapack/reference
72 - dosym ../../liblapack.so usr/$(get_libdir)/lapack/reference/liblapack.so
73 - dosym ../../liblapack.so.3 usr/$(get_libdir)/lapack/reference/liblapack.so.3
74 -}
75 -
76 -pkg_postinst() {
77 - use eselect-ldso || return
78 -
79 - local me=reference libdir=$(get_libdir)
80 - # check eselect-blas
81 - eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me}
82 - local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
83 - if [[ ${current_blas} == ${me} || -z ${current_blas} ]]; then
84 - eselect blas set ${libdir} ${me}
85 - elog "Current eselect: BLAS ($libdir) -> [${current_blas}]."
86 - else
87 - elog "Current eselect: BLAS ($libdir) -> [${current_blas}]."
88 - elog "To use blas [${me}] implementation, you have to issue (as root):"
89 - elog "\t eselect blas set ${libdir} ${me}"
90 - fi
91 -
92 - # check eselect-lapack
93 - eselect lapack add ${libdir} "${EROOT}"/usr/${libdir}/lapack/${me} ${me}
94 - local current_lapack=$(eselect lapack show ${libdir} | cut -d' ' -f2)
95 - if [[ ${current_lapack} == ${me} || -z ${current_lapack} ]]; then
96 - eselect lapack set ${libdir} ${me}
97 - elog "Current eselect: LAPACK ($libdir) -> [${current_lapack}]."
98 - else
99 - elog "Current eselect: LAPACK ($libdir) -> [${current_lapack}]."
100 - elog "To use lapack [${me}] implementation, you have to issue (as root):"
101 - elog "\t eselect lapack set ${libdir} ${me}"
102 - fi
103 -}
104 -
105 -pkg_postrm() {
106 - use eselect-ldso || return
107 -
108 - eselect blas validate
109 - eselect lapack validate
110 -}