blob: cd360b3c92b648b0d3e5525fd107b4adfe73bd24 (
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-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ghemical/ghemical-2.99.2-r2.ebuild,v 1.1 2010/06/24 21:04:17 jlec Exp $
EAPI="3"
inherit autotools eutils
DESCRIPTION="Chemical quantum mechanics and molecular mechanics"
HOMEPAGE="http://bioinformatics.org/ghemical/"
SRC_URI="http://bioinformatics.org/ghemical/download/current/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="openbabel seamonkey threads"
RDEPEND="
dev-libs/glib:2
gnome-base/libglade
sci-chemistry/mpqc
>=sci-libs/libghemical-2.99
>=x11-libs/liboglappth-0.98
virtual/opengl
x11-libs/pango
x11-libs/gtk+:2
x11-libs/gtkglext
openbabel? ( sci-chemistry/openbabel )"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.15"
src_prepare() {
epatch "${FILESDIR}"/${PV}-docs.patch
eautoreconf
}
src_configure() {
# With amd64, if you want gamess I recommend adding gamess and gtk-gamess to package.provided for now.
# Change the built-in help browser.
if use seamonkey ; then
sed -i -e 's|mozilla|seamonkey|g' src/gtk_app.cpp || die "sed failed for seamonkey!"
else
sed -i -e 's|mozilla|firefox|g' src/gtk_app.cpp || die "sed failed for firefox!"
fi
econf \
$(use_enable openbabel) \
$(use_enable threads)
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
make_desktop_entry /usr/bin/ghemical ${PN} /usr/share/ghemical/${PV}/pixmaps/ghemical.png
}
|