blob: 0c6edf6a2b740e6ad9238da787ca184b7fab1f32 (
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
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/psi/psi-3.2.3.ebuild,v 1.6 2011/06/21 15:58:04 jlec Exp $
inherit autotools fortran-2 eutils
DESCRIPTION="Suite of ab initio quantum chemistry programs to compute various molecular properties"
HOMEPAGE="http://www.psicode.org/"
SRC_URI="mirror://sourceforge/psicode/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
# File collision, see bug #249423
RDEPEND="
virtual/fortran
!sci-visualization/extrema
virtual/blas
virtual/lapack
sci-libs/libint"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}${PV:0:1}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/try-more-compilers.patch
epatch "${FILESDIR}"/try-pthread-for-blas-lapack.patch
epatch "${FILESDIR}"/dont-build-libint.patch
epatch "${FILESDIR}"/use-external-libint.patch
eautoreconf
}
src_compile() {
# This variable gets set sometimes to /usr/lib/src and breaks stuff
unset CLIBS
econf \
--with-opt="${CFLAGS}" \
--datadir=/usr/share/${PN} \
|| die "configure failed"
emake \
SCRATCH="${WORKDIR}/libint" \
|| die "make failed"
}
src_install() {
einstall \
datadir=${D}/usr/share/${PN} \
docdir=${D}/usr/share/doc/${PF} \
|| die "install failed"
}
|