/[gentoo-x86]/sci-libs/hypre/hypre-2.8.0b-r1.ebuild
Gentoo

Contents of /sci-libs/hypre/hypre-2.8.0b-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Apr 22 17:27:17 2014 UTC (6 years, 2 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Forced fortran and lapack settings when mpi is set, secure mpi toolchain propagation, bug #508030 thanks Matthias Maier

(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/hypre/hypre-2.8.0b-r1.ebuild,v 1.10 2013/12/26 21:15:27 jlec Exp $
4
5 EAPI=4
6
7 FORTRAN_NEEDED=fortran
8
9 inherit eutils fortran-2 toolchain-funcs
10
11 DESCRIPTION="Parallel matrix preconditioners library"
12 HOMEPAGE="http://acts.nersc.gov/hypre/"
13 SRC_URI="https://computation.llnl.gov/casc/hypre/download/${P}.tar.gz"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE="blas doc examples fortran lapack mpi"
19
20 RDEPEND="
21 sci-libs/superlu
22 blas? ( virtual/blas )
23 lapack? ( virtual/lapack )
24 mpi? ( virtual/mpi )"
25 DEPEND="${RDEPEND}
26 virtual/pkgconfig"
27
28 DOCS=( "${WORKDIR}"/${P}/{CHANGELOG,COPYRIGHT,README} )
29
30 S="${WORKDIR}/${P}/src"
31
32 src_prepare() {
33 # link with system superlu and propagate LDFLAGS
34 sed -i \
35 -e 's:@LIBS@:@LIBS@ -lsuperlu:' \
36 -e 's:_SHARED@:_SHARED@ $(LDFLAGS):g' \
37 config/Makefile.config.in || die
38 sed \
39 -e '/HYPRE_ARCH/s: = :=:g' \
40 -i configure || die
41 tc-export CC CXX
42 }
43
44 src_configure() {
45 local myeconfargs+=(
46 --enable-shared
47 --without-superlu
48 --without-strict-checking
49 $(use_enable fortran)
50 $(use_with mpi MPI)
51 )
52 if use blas; then
53 myeconfargs+=(
54 --with-blas-libs="$($(tc-getPKG_CONFIG) --libs-only-l blas | sed -e 's/-l//g')"
55 --with-blas-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L blas | sed -e 's/-L//g')"
56 )
57 else
58 myeconfargs+=( --without-blas )
59 fi
60 if use lapack; then
61 myeconfargs+=(
62 --with-lapack-libs="$($(tc-getPKG_CONFIG) --libs-only-l lapack | sed -e 's/-l//g')"
63 --with-lapack-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L lapack | sed -e 's/-L//g')"
64 )
65 else
66 myeconfargs+=( --without-lapack )
67 fi
68 econf "${myeconfargs[@]}"
69 }
70
71 src_install() {
72 dolib.so hypre/lib/lib*
73 insinto /usr/include/hypre
74 doins -r hypre/include/*
75
76 use doc && dodoc "${WORKDIR}"/${P}/docs/*.pdf
77 if use examples; then
78 insinto /usr/share/doc/${PF}
79 doins -r examples
80 fi
81 }

  ViewVC Help
Powered by ViewVC 1.1.20