Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/lapack/files/, sci-libs/lapack/
Date: Sat, 06 Feb 2021 21:29:17
Message-Id: 1612646947.e299f36c470e4cdf7b2a97f8a9308da01aa80aa1.sam@gentoo
1 commit: e299f36c470e4cdf7b2a97f8a9308da01aa80aa1
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 6 21:21:49 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 6 21:29:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e299f36c
7
8 sci-libs/lapack: cleanup old, patch metadata
9
10 Bug: https://bugs.gentoo.org/702254
11 Package-Manager: Portage-3.0.14, Repoman-3.0.2
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 .../files/lapack-3.9.0-deprecated-headers.patch | 3 +
15 sci-libs/lapack/lapack-3.9.0.ebuild | 96 ----------------------
16 2 files changed, 3 insertions(+), 96 deletions(-)
17
18 diff --git a/sci-libs/lapack/files/lapack-3.9.0-deprecated-headers.patch b/sci-libs/lapack/files/lapack-3.9.0-deprecated-headers.patch
19 index 9c0fb4e56e5..9b3fd93789e 100644
20 --- a/sci-libs/lapack/files/lapack-3.9.0-deprecated-headers.patch
21 +++ b/sci-libs/lapack/files/lapack-3.9.0-deprecated-headers.patch
22 @@ -1,3 +1,6 @@
23 +https://sources.debian.org/patches/lapack/3.9.0-3/missing-lapacke-prototypes.patch/
24 +https://github.com/Reference-LAPACK/lapack/issues/365
25 +
26 From 87536aa3c8bb0af00f66088fb6ac05d87509e011 Mon Sep 17 00:00:00 2001
27 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@××××××.org>
28 Date: Sat, 23 Nov 2019 12:22:20 +0100
29
30 diff --git a/sci-libs/lapack/lapack-3.9.0.ebuild b/sci-libs/lapack/lapack-3.9.0.ebuild
31 deleted file mode 100644
32 index bf8674a2fab..00000000000
33 --- a/sci-libs/lapack/lapack-3.9.0.ebuild
34 +++ /dev/null
35 @@ -1,96 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -inherit cmake
42 -
43 -DESCRIPTION="BLAS,CBLAS,LAPACK,LAPACKE reference implementations"
44 -HOMEPAGE="https://www.netlib.org/lapack/"
45 -SRC_URI="https://github.com/Reference-LAPACK/lapack/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 -
47 -LICENSE="BSD"
48 -SLOT="0"
49 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
50 -# TODO: static-libs 64bit-index
51 -IUSE="lapacke doc eselect-ldso test"
52 -RESTRICT="!test? ( test )"
53 -
54 -BDEPEND="virtual/pkgconfig"
55 -RDEPEND="
56 - !app-eselect/eselect-cblas
57 - virtual/fortran
58 - eselect-ldso? (
59 - >=app-eselect/eselect-blas-0.2
60 - >=app-eselect/eselect-lapack-0.2
61 - )
62 - doc? ( app-doc/blas-docs )"
63 -DEPEND="${RDEPEND}"
64 -
65 -PATCHES=(
66 - "${FILESDIR}/${PN}-3.9.0-build-tests.patch"
67 -)
68 -
69 -src_configure() {
70 - local mycmakeargs=(
71 - -DCBLAS=ON
72 - -DLAPACKE=$(usex lapacke)
73 - -DBUILD_SHARED_LIBS=ON
74 - -DBUILD_TESTING=$(usex test)
75 - )
76 -
77 - cmake_src_configure
78 -}
79 -
80 -src_install() {
81 - cmake_src_install
82 -
83 - use eselect-ldso || return
84 - # Create private lib directory for eselect::blas (ld.so.conf)
85 - dodir /usr/$(get_libdir)/blas/reference
86 - dosym ../../libblas.so usr/$(get_libdir)/blas/reference/libblas.so
87 - dosym ../../libblas.so.3 usr/$(get_libdir)/blas/reference/libblas.so.3
88 - dosym ../../libcblas.so usr/$(get_libdir)/blas/reference/libcblas.so
89 - dosym ../../libcblas.so.3 usr/$(get_libdir)/blas/reference/libcblas.so.3
90 -
91 - # Create private lib directory for eselect::lapack (ld.so.conf)
92 - dodir /usr/$(get_libdir)/lapack/reference
93 - dosym ../../liblapack.so usr/$(get_libdir)/lapack/reference/liblapack.so
94 - dosym ../../liblapack.so.3 usr/$(get_libdir)/lapack/reference/liblapack.so.3
95 -}
96 -
97 -pkg_postinst() {
98 - use eselect-ldso || return
99 -
100 - local me=reference libdir=$(get_libdir)
101 - # check eselect-blas
102 - eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me}
103 - local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
104 - if [[ ${current_blas} == ${me} || -z ${current_blas} ]]; then
105 - eselect blas set ${libdir} ${me}
106 - elog "Current eselect: BLAS ($libdir) -> [${current_blas}]."
107 - else
108 - elog "Current eselect: BLAS ($libdir) -> [${current_blas}]."
109 - elog "To use blas [${me}] implementation, you have to issue (as root):"
110 - elog "\t eselect blas set ${libdir} ${me}"
111 - fi
112 -
113 - # check eselect-lapack
114 - eselect lapack add ${libdir} "${EROOT}"/usr/${libdir}/lapack/${me} ${me}
115 - local current_lapack=$(eselect lapack show ${libdir} | cut -d' ' -f2)
116 - if [[ ${current_lapack} == ${me} || -z ${current_lapack} ]]; then
117 - eselect lapack set ${libdir} ${me}
118 - elog "Current eselect: LAPACK ($libdir) -> [${current_lapack}]."
119 - else
120 - elog "Current eselect: LAPACK ($libdir) -> [${current_lapack}]."
121 - elog "To use lapack [${me}] implementation, you have to issue (as root):"
122 - elog "\t eselect lapack set ${libdir} ${me}"
123 - fi
124 -}
125 -
126 -pkg_postrm() {
127 - use eselect-ldso || return
128 -
129 - eselect blas validate
130 - eselect lapack validate
131 -}