/[gentoo-x86]/sci-libs/superlu/superlu-4.1-r1.ebuild
Gentoo

Contents of /sci-libs/superlu/superlu-4.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed Dec 12 20:14:44 2012 UTC (16 months ago) by jlec
Branch: MAIN
Changes since 1.10: +8 -1 lines
sci-libs/superlu: Respect AR and RANLIB; fix test failure, #430444

(Portage version: 2.2.0_alpha147/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/superlu/superlu-4.1-r1.ebuild,v 1.10 2012/10/16 19:34:38 jlec Exp $
4
5 EAPI="2"
6
7 inherit autotools eutils fortran-2 toolchain-funcs multilib
8
9 MY_PN=SuperLU
10
11 DESCRIPTION="Sparse LU factorization library"
12 HOMEPAGE="http://crd.lbl.gov/~xiaoye/SuperLU/"
13 SRC_URI="${HOMEPAGE}/${PN}_${PV}.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
18 IUSE="doc examples static-libs test"
19
20 RDEPEND="
21 virtual/blas"
22 DEPEND="${RDEPEND}
23 virtual/pkgconfig
24 test? ( app-shells/tcsh )"
25
26 S="${WORKDIR}/${MY_PN}_${PV}"
27
28 src_prepare() {
29 unset VERBOSE
30 epatch "${FILESDIR}"/${P}-autotools.patch
31 sed \
32 -e "s:= ar:= $(tc-getAR):g" \
33 -e "s:= ranlib:= $(tc-getRANLIB):g" \
34 -i make.inc || die
35 eautoreconf
36 }
37
38 src_configure() {
39 econf \
40 --with-blas="$(pkg-config --libs blas)" \
41 $(use_enable static-libs static)
42 }
43
44 src_test() {
45 cd TESTING
46 emake -j1 \
47 CC="$(tc-getCC)" \
48 AR="$(tc-getAR)" \
49 RANLIB="$(tc-getRANLIB)" \
50 FORTRAN="$(tc-getFC)" \
51 LOADER="$(tc-getCC)" \
52 CFLAGS="${CFLAGS}" \
53 FFLAGS="${FFLAGS}" \
54 LOADOPTS="${LDFLAGS}" \
55 BLASLIB="$(pkg-config --libs blas)" \
56 SUPERLULIB="${S}/SRC/.libs/libsuperlu$(get_libname)" \
57 LD_LIBRARY_PATH="${S}/SRC/.libs" \
58 DYLD_LIBRARY_PATH="${S}/SRC/.libs" \
59 || die "emake matrix generation failed"
60 }
61
62 src_install() {
63 emake DESTDIR="${D}" install || die "emake install failed"
64 dodoc README
65
66 if use doc; then
67 dodoc DOC/ug.pdf || die
68 dohtml DOC/html/* || die
69 fi
70 if use examples; then
71 insinto /usr/share/doc/${PF}/examples
72 doins -r EXAMPLE FORTRAN || die
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20