From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4E9461384B4 for ; Tue, 29 Dec 2015 10:02:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25FD621C036; Tue, 29 Dec 2015 10:02:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 36F4D21C01C for ; Tue, 29 Dec 2015 10:02:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6C9673405BB for ; Tue, 29 Dec 2015 10:02:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7A323CFA for ; Tue, 29 Dec 2015 10:02:03 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1451383313.30760ff9f36f69c9959aa8eaed2c8fef6d9a574e.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/qrupdate/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild X-VCS-Directories: sci-libs/qrupdate/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 30760ff9f36f69c9959aa8eaed2c8fef6d9a574e X-VCS-Branch: master Date: Tue, 29 Dec 2015 10:02:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b10af72a-57e7-45f0-9b34-8365fa58aad8 X-Archives-Hash: 564c234c0cfd7cb9b56a9a010fadea1d commit: 30760ff9f36f69c9959aa8eaed2c8fef6d9a574e Author: Justin Lecher gentoo org> AuthorDate: Tue Dec 29 09:19:01 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Tue Dec 29 10:01:53 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30760ff9 sci-libs/qrupdate: Bump to EAPI=5 Package-Manager: portage-2.2.26 Signed-off-by: Justin Lecher gentoo.org> sci-libs/qrupdate/qrupdate-1.1.2-r1.ebuild | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) 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 0000000..5cf137d --- /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 +}