summaryrefslogtreecommitdiff
blob: 3d3ad61d83b95a13d6c28fff77da2c122ed1a59f (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
56
57
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gchemutils/gchemutils-0.10.3.ebuild,v 1.2 2009/02/28 00:40:51 je_fro Exp $

inherit gnome2 autotools

MY_P="gnome-chemistry-utils-${PV}"
DESCRIPTION="C++ classes and Gtk+-2 widgets related to chemistry"
HOMEPAGE="http://www.nongnu.org/gchemutils/"
SRC_URI="http://savannah.nongnu.org/download/gchemutils/0.10/${MY_P}.tar.bz2"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="=gnome-base/libglade-2*
		>=gnome-base/libgnomeprintui-2.4.0
		>=x11-libs/goffice-0.6.5
		x11-libs/gtkglext
		app-text/gnome-doc-utils
		>=sci-chemistry/openbabel-2.1.1
		sci-chemistry/bodr
		sci-chemistry/chemical-mime-data"

DEPEND="${RDEPEND}
	dev-util/pkgconfig
	!sci-chemistry/gchempaint"

S=${WORKDIR}/${MY_P}

pkg_setup() {
	if ! built_with_use x11-libs/goffice:0.6 gnome ; then
		eerror "Please rebuild >=x11-libs/goffice-0.6.5 with gnome support enabled."
		eerror "This needs gnome-extra/libgsf to be built with gnome support."
		eerror "echo \"x11-libs/goffice gnome\" >> /etc/portage/package.use"
		eerror "and"
		eerror "echo \"gnome-extra/libgsf gnome\" >> /etc/portage/package.use"
		eerror "or add  \"gnome\" to your USE string in /etc/make.conf"
		die "No Gnome support found in goffice."

	fi
}

src_unpack() {
	gnome2_src_unpack
	eautoreconf
}

src_compile() {
	gnome2_src_compile --disable-update-databases --docdir=/usr/share/doc/${PN}/html
}

pkg_postinst() {
	elog "You can safely ignore any 'Unknown media type in type blah' warnings above."
	elog "For more info see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420795 "
}