blob: ba903e1c933e982c2275930ddd5403fc65686d77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/qrupdate/qrupdate-1.1.1.ebuild,v 1.4 2011/12/17 03:48:33 bicatali Exp $
EAPI=4
inherit eutils fortran-2 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 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos"
IUSE="static-libs"
RDEPEND="virtual/fortran
virtual/lapack"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${P}-Makefiles.patch
sed -i Makeconf \
-e "s:gfortran:$(tc-getFC):g" \
-e "s:FFLAGS=.*:FFLAGS=${FFLAGS}:" \
-e "s:BLAS=.*:BLAS=$(pkg-config --libs blas):" \
-e "s:LAPACK=.*:LAPACK=$(pkg-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
}
|