blob: fc078eab89d0c76cc105a807ed3b575625d65326 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ghemical/ghemical-1.02.ebuild,v 1.6 2006/06/17 01:02:47 spyderous Exp $
inherit eutils
DESCRIPTION="Chemical quantum mechanics and molecular mechanics"
HOMEPAGE="http://bioinformatics.org/ghemical/"
SRC_URI="http://www.uku.fi/~thassine/ghemical/download/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="mpqc gtk"
DEPEND="dev-libs/libf2c
sci-chemistry/mopac7
=sci-chemistry/openbabel-1.1*
sci-chemistry/mpqc
virtual/glut
dev-libs/libxml
>=dev-util/pkgconfig-0.15
=x11-libs/gtkglarea-1.2*
=gnome-base/libglade-0*
gtk? (
gnome-base/gnome-libs
)"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/gcc3.4-r1.patch
}
src_compile() {
./configure \
--prefix=/usr \
$(use_enable mpqc) \
$(use_enable gtk) || die "Configure failed"
emake || die "Make failed"
}
src_install() {
sed -e "s:^prefix=.*:prefix=${D}/usr:" -i Makefile
make install || die "Install failed"
}
|