Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/gsl/
Date: Wed, 26 Jun 2019 16:07:16
Message-Id: 1561565221.dc5c06fd1e256673003eb9dea74cc0e131b208db.heroxbd@gentoo
1 commit: dc5c06fd1e256673003eb9dea74cc0e131b208db
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 26 16:05:41 2019 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 26 16:07:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc5c06fd
7
8 sci-libs/gsl: strip the cblas provider role.
9
10 Computationally sci-libs/gsl as a cblas provider has no significant
11 advantage over the reference implementation. Providing sci-libs/gsl
12 as a general cblas provider introduces possibility circular
13 dependency. sci-libs/gsl should rather be a cblas user than a
14 provider.
15
16 Closes: https://bugs.gentoo.org/688742
17 Package-Manager: Portage-2.3.52, Repoman-2.3.12
18 RepoMan-Options: --force
19 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
20
21 sci-libs/gsl/gsl-2.5-r1.ebuild | 58 ++++++++++++++++++++++++++++++++++++++++++
22 1 file changed, 58 insertions(+)
23
24 diff --git a/sci-libs/gsl/gsl-2.5-r1.ebuild b/sci-libs/gsl/gsl-2.5-r1.ebuild
25 new file mode 100644
26 index 00000000000..0c95bb68c55
27 --- /dev/null
28 +++ b/sci-libs/gsl/gsl-2.5-r1.ebuild
29 @@ -0,0 +1,58 @@
30 +# Copyright 1999-2019 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit autotools flag-o-matic toolchain-funcs
36 +
37 +DESCRIPTION="The GNU Scientific Library"
38 +HOMEPAGE="https://www.gnu.org/software/gsl/"
39 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz
40 + https://dev.gentoo.org/~mgorny/dist/${PN}-2.3-cblas.patch.bz2"
41 +
42 +LICENSE="GPL-3"
43 +SLOT="0/23"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris"
45 +IUSE="cblas-external +deprecated static-libs"
46 +
47 +RDEPEND="cblas-external? ( virtual/cblas:= )"
48 +DEPEND="${RDEPEND}"
49 +
50 +PATCHES=( "${WORKDIR}"/${PN}-2.3-cblas.patch )
51 +
52 +src_prepare() {
53 + # bug 349005
54 + [[ $(tc-getCC)$ == *gcc* ]] && \
55 + [[ $(tc-getCC)$ != *apple* ]] && \
56 + [[ $(gcc-major-version)$(gcc-minor-version) -eq 44 ]] \
57 + && filter-mfpmath sse
58 + filter-flags -ffast-math
59 +
60 + default
61 + if use deprecated; then
62 + sed -i -e "/GSL_DISABLE_DEPRECATED/,+2d" configure.ac || die
63 + fi
64 + eautoreconf
65 +}
66 +
67 +src_configure() {
68 + if use cblas-external; then
69 + export CBLAS_LIBS="$($(tc-getPKG_CONFIG) --libs cblas)"
70 + export CBLAS_CFLAGS="$($(tc-getPKG_CONFIG) --cflags cblas)"
71 + fi
72 + econf \
73 + --enable-shared \
74 + $(use_with cblas-external) \
75 + $(use_enable static-libs static)
76 +}
77 +
78 +src_test() {
79 + local MAKEOPTS="${MAKEOPTS} -j1"
80 + default
81 +}
82 +
83 +src_install() {
84 + default
85 +
86 + find "${ED}" -name '*.la' -exec rm -f {} +
87 +}