/[gentoo-x86]/sci-chemistry/ghemical/ghemical-2.99.2-r2.ebuild
Gentoo

Contents of /sci-chemistry/ghemical/ghemical-2.99.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri May 4 07:02:33 2012 UTC (6 years, 1 month ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ghemical/ghemical-2.99.2-r2.ebuild,v 1.6 2011/05/28 13:58:12 ranger Exp $
4
5 EAPI="3"
6
7 inherit autotools eutils
8
9 DESCRIPTION="Chemical quantum mechanics and molecular mechanics"
10 HOMEPAGE="http://bioinformatics.org/ghemical/"
11 SRC_URI="http://bioinformatics.org/ghemical/download/current/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE="openbabel seamonkey threads"
17
18 RDEPEND="
19 dev-libs/glib:2
20 gnome-base/libglade:2.0
21 sci-chemistry/mpqc
22 >=sci-libs/libghemical-2.99
23 >=x11-libs/liboglappth-0.98
24 virtual/opengl
25 x11-libs/pango
26 x11-libs/gtk+:2
27 x11-libs/gtkglext
28 openbabel? ( sci-chemistry/openbabel )"
29 DEPEND="${RDEPEND}
30 virtual/pkgconfig"
31
32 src_prepare() {
33 epatch "${FILESDIR}"/${PV}-docs.patch
34 eautoreconf
35 }
36
37 src_configure() {
38 # With amd64, if you want gamess I recommend adding gamess and gtk-gamess to package.provided for now.
39
40 # Change the built-in help browser.
41 if use seamonkey ; then
42 sed -i -e 's|mozilla|seamonkey|g' src/gtk_app.cpp || die "sed failed for seamonkey!"
43 else
44 sed -i -e 's|mozilla|firefox|g' src/gtk_app.cpp || die "sed failed for firefox!"
45 fi
46
47 econf \
48 $(use_enable openbabel) \
49 $(use_enable threads)
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die "install failed"
54 make_desktop_entry /usr/bin/ghemical Ghemical /usr/share/ghemical/${PV}/pixmaps/ghemical.png
55 }

  ViewVC Help
Powered by ViewVC 1.1.20