diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-12-29 10:19:01 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-12-29 11:01:53 +0100 |
commit | 30760ff9f36f69c9959aa8eaed2c8fef6d9a574e (patch) | |
tree | c1714f568a556208caf60bfdf00792a84d9e00c8 /sci-libs/qrupdate | |
parent | sci-libs/mkl: Bump to EAPI=5 (diff) | |
download | gentoo-30760ff9f36f69c9959aa8eaed2c8fef6d9a574e.tar.gz gentoo-30760ff9f36f69c9959aa8eaed2c8fef6d9a574e.tar.bz2 gentoo-30760ff9f36f69c9959aa8eaed2c8fef6d9a574e.zip |
sci-libs/qrupdate: Bump to EAPI=5
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sci-libs/qrupdate')
-rw-r--r-- | sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild b/sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild new file mode 100644 index 000000000000..5cf137dc218b --- /dev/null +++ b/sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils fortran-2 multilib versionator toolchain-funcs + +DESCRIPTION="Library for updating of QR and Cholesky decompositions" +HOMEPAGE="http://sourceforge.net/projects/qrupdate" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ppc-macos" +IUSE="static-libs" + +RDEPEND="virtual/lapack" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.1.1-Makefiles.patch \ + "${FILESDIR}"/${PN}-1.1.2-install.patch + sed -i Makeconf \ + -e "s:gfortran:$(tc-getFC):g" \ + -e "s:FFLAGS=.*:FFLAGS=${FFLAGS}:" \ + -e "s:BLAS=.*:BLAS=$($(tc-getPKG_CONFIG) --libs blas):" \ + -e "s:LAPACK=.*:LAPACK=$($(tc-getPKG_CONFIG) --libs lapack):" \ + -e "/^LIBDIR=/a\PREFIX=${EPREFIX}/usr" \ + -e "s:LIBDIR=lib:LIBDIR=$(get_libdir):" \ + || die "Failed to set up Makeconf" +} + +src_compile() { + emake solib + use static-libs && emake lib +} + +src_install() { + emake DESTDIR="${D}" install-shlib + dosym libqrupdate.so.$(get_major_version) /usr/$(get_libdir)/libqrupdate.so + use static-libs && emake DESTDIR="${D}" install-staticlib + dodoc README ChangeLog +} |