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

Contents of /sci-libs/superlu/superlu-4.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Dec 12 20:31:31 2012 UTC (23 months, 2 weeks ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +9 -4 lines
sci-libs/superlu: Respect AR and RANLIB

(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.3.ebuild,v 1.6 2012/12/11 18:29:59 bicatali Exp $
4
5 EAPI=4
6
7 AUTOTOOLS_AUTORECONF=true
8 AUTOTOOLS_IN_SOURCE_BUILD=1
9
10 inherit autotools-utils fortran-2 toolchain-funcs multilib
11
12 MY_PN=SuperLU
13
14 DESCRIPTION="Sparse LU factorization library"
15 HOMEPAGE="http://crd.lbl.gov/~xiaoye/SuperLU/"
16 SRC_URI="${HOMEPAGE}/${PN}_${PV}.tar.gz"
17
18 LICENSE="BSD"
19 SLOT="0"
20 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
21 IUSE="doc examples static-libs test"
22
23 RDEPEND="
24 virtual/blas"
25 DEPEND="${RDEPEND}
26 virtual/pkgconfig
27 test? ( app-shells/tcsh )"
28
29 S="${WORKDIR}/${MY_PN}_${PV}"
30
31 PATCHES=( "${FILESDIR}"/${P}-autotools.patch )
32
33 src_prepare() {
34 unset VERBOSE
35 sed \
36 -e "s:= ar:= $(tc-getAR):g" \
37 -e "s:= ranlib:= $(tc-getRANLIB):g" \
38 -i make.inc || die
39
40 autotools-utils_src_prepare
41 }
42
43 src_configure() {
44 local myeconfargs=( --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" )
45 autotools-utils_src_configure
46 rm EXAMPLE/*itersol1 || die
47 }
48
49 src_test() {
50 cd "${BUILD_DIR}"/TESTING
51 emake -j1 \
52 CC="$(tc-getCC)" \
53 FORTRAN="$(tc-getFC)" \
54 LOADER="$(tc-getCC)" \
55 CFLAGS="${CFLAGS}" \
56 FFLAGS="${FFLAGS}" \
57 LOADOPTS="${LDFLAGS}" \
58 BLASLIB="$($(tc-getPKG_CONFIG) --libs blas)" \
59 SUPERLULIB="${S}/SRC/.libs/libsuperlu$(get_libname)" \
60 LD_LIBRARY_PATH="${S}/SRC/.libs" \
61 DYLD_LIBRARY_PATH="${S}/SRC/.libs"
62 }
63
64 src_install() {
65 autotools-utils_src_install
66 use doc && dodoc DOC/ug.pdf && dohtml DOC/html/*
67 if use examples; then
68 insinto /usr/share/doc/${PF}/examples
69 doins -r EXAMPLE FORTRAN
70 fi
71 }

  ViewVC Help
Powered by ViewVC 1.1.20