Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/qrupdate/
Date: Tue, 29 Dec 2015 10:02:16
Message-Id: 1451383313.30760ff9f36f69c9959aa8eaed2c8fef6d9a574e.jlec@gentoo
1 commit: 30760ff9f36f69c9959aa8eaed2c8fef6d9a574e
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 09:19:01 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 10:01:53 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30760ff9
7
8 sci-libs/qrupdate: Bump to EAPI=5
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild | 46 ++++++++++++++++++++++++++++++
14 1 file changed, 46 insertions(+)
15
16 diff --git a/sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild b/sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild
17 new file mode 100644
18 index 0000000..5cf137d
19 --- /dev/null
20 +++ b/sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild
21 @@ -0,0 +1,46 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=5
27 +
28 +inherit eutils fortran-2 multilib versionator toolchain-funcs
29 +
30 +DESCRIPTION="Library for updating of QR and Cholesky decompositions"
31 +HOMEPAGE="http://sourceforge.net/projects/qrupdate"
32 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
33 +
34 +LICENSE="GPL-3"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ppc-macos"
37 +IUSE="static-libs"
38 +
39 +RDEPEND="virtual/lapack"
40 +DEPEND="${RDEPEND}
41 + virtual/pkgconfig"
42 +
43 +src_prepare() {
44 + epatch \
45 + "${FILESDIR}"/${PN}-1.1.1-Makefiles.patch \
46 + "${FILESDIR}"/${PN}-1.1.2-install.patch
47 + sed -i Makeconf \
48 + -e "s:gfortran:$(tc-getFC):g" \
49 + -e "s:FFLAGS=.*:FFLAGS=${FFLAGS}:" \
50 + -e "s:BLAS=.*:BLAS=$($(tc-getPKG_CONFIG) --libs blas):" \
51 + -e "s:LAPACK=.*:LAPACK=$($(tc-getPKG_CONFIG) --libs lapack):" \
52 + -e "/^LIBDIR=/a\PREFIX=${EPREFIX}/usr" \
53 + -e "s:LIBDIR=lib:LIBDIR=$(get_libdir):" \
54 + || die "Failed to set up Makeconf"
55 +}
56 +
57 +src_compile() {
58 + emake solib
59 + use static-libs && emake lib
60 +}
61 +
62 +src_install() {
63 + emake DESTDIR="${D}" install-shlib
64 + dosym libqrupdate.so.$(get_major_version) /usr/$(get_libdir)/libqrupdate.so
65 + use static-libs && emake DESTDIR="${D}" install-staticlib
66 + dodoc README ChangeLog
67 +}