Lines 1-6
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2007 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/abinit/abinit-5.4.4.ebuild,v 1.1 2008/07/05 01:10:36 dberkholz Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/abinit/abinit-5.3.4.ebuild,v 1.1 2007/05/09 06:47:17 dberkholz Exp $ |
4 |
|
4 |
|
5 |
inherit fortran toolchain-funcs |
5 |
inherit fortran toolchain-funcs |
6 |
|
6 |
|
Lines 11-20
Link Here
|
11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
KEYWORDS="~amd64 ~ppc ~x86" |
13 |
KEYWORDS="~amd64 ~ppc ~x86" |
14 |
IUSE="mpi test" |
14 |
IUSE="mpi netcdf test" |
15 |
|
15 |
|
16 |
RDEPEND="virtual/blas |
16 |
RDEPEND="virtual/blas |
17 |
virtual/lapack" |
17 |
virtual/lapack |
|
|
18 |
mpi? ( virtual/mpi ) |
19 |
netcdf? ( sci-libs/netcdf )" |
18 |
DEPEND="${RDEPEND}" |
20 |
DEPEND="${RDEPEND}" |
19 |
|
21 |
|
20 |
# F90 code, g77 won't work |
22 |
# F90 code, g77 won't work |
Lines 39-55
Link Here
|
39 |
epatch "${FILESDIR}"/5.3.4-change-default-directories.patch |
41 |
epatch "${FILESDIR}"/5.3.4-change-default-directories.patch |
40 |
epatch "${FILESDIR}"/5.2.3-fix-64bit-detection.patch |
42 |
epatch "${FILESDIR}"/5.2.3-fix-64bit-detection.patch |
41 |
|
43 |
|
42 |
# bug #223111: Our eautoreconf directory detection breaks |
|
|
43 |
sed -i -e "s:@abinit_srcdir@/::" Makefile.am |
44 |
|
45 |
# bug #223111: libtool 2.2 fix (taken from bug #230271) |
46 |
if [ -f '/usr/share/aclocal/ltsugar.m4' ]; then |
47 |
cat "/usr/share/aclocal/ltsugar.m4" >> config/m4/libtool.m4 |
48 |
cat "/usr/share/aclocal/ltversion.m4" >> config/m4/libtool.m4 |
49 |
cat "/usr/share/aclocal/lt~obsolete.m4" >> config/m4/libtool.m4 |
50 |
cat "/usr/share/aclocal/ltoptions.m4" >> config/m4/libtool.m4 |
51 |
fi |
52 |
|
53 |
# Yea for breaking compatibility with no ChangeLog entry in 2.60 |
44 |
# Yea for breaking compatibility with no ChangeLog entry in 2.60 |
54 |
if has_version '>=sys-devel/autoconf-2.60'; then |
45 |
if has_version '>=sys-devel/autoconf-2.60'; then |
55 |
sed -i -e "s:_AC_SRCPATHS:_AC_SRCDIRS:g" config/m4/init.m4 |
46 |
sed -i -e "s:_AC_SRCPATHS:_AC_SRCDIRS:g" config/m4/init.m4 |
Lines 59-76
Link Here
|
59 |
} |
50 |
} |
60 |
|
51 |
|
61 |
src_compile() { |
52 |
src_compile() { |
|
|
53 |
if use mpi; then |
54 |
CC="mpicc" |
55 |
FC="mpif90" |
56 |
else |
57 |
FC="${FORTRANC}" |
58 |
CC="$(tc-getCC)" |
59 |
fi |
62 |
econf \ |
60 |
econf \ |
63 |
--with-install-type=debian \ |
61 |
--with-install-type=debian \ |
64 |
--disable-config-file \ |
62 |
--disable-config-file \ |
65 |
--disable-library-search \ |
63 |
--disable-library-search \ |
66 |
$(use_enable mpi) \ |
64 |
$(use_enable mpi) \ |
|
|
65 |
$(use_enable netcdf) \ |
67 |
--with-blas-prefix=/usr \ |
66 |
--with-blas-prefix=/usr \ |
68 |
--with-lapack-prefix=/usr \ |
67 |
--with-lapack-prefix=/usr \ |
69 |
--with-c-optflags="${CFLAGS}" \ |
68 |
--with-c-optflags="${CFLAGS}" \ |
70 |
--with-fortran-optflags="${FFLAGS}" \ |
69 |
--with-fortran-optflags="${FFLAGS}" \ |
71 |
--with-fortran-ldflags='-lpthread' \ |
70 |
--with-fortran-ldflags='-lpthread' \ |
72 |
FC="${FORTRANC}" \ |
|
|
73 |
CC="$(tc-getCC)" \ |
74 |
LD="$(tc-getLD)" \ |
71 |
LD="$(tc-getLD)" \ |
75 |
|| die "configure failed" |
72 |
|| die "configure failed" |
76 |
|
73 |
|