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

Contents of /sci-chemistry/ghemical/ghemical-3.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Feb 2 05:57:09 2013 UTC (4 years, 11 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Bump

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 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.7 2012/05/04 07:02:33 jdhore 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-3.0.0
23 >=x11-libs/liboglappth-1.0.0
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}"/2.99.2-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