Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 212212 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sci-chemistry/openbabel/openbabel-2.2.0.ebuild (-7 / +47 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2009 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel/openbabel-2.2.0.ebuild,v 1.2 2008/11/02 07:46:39 vapier Exp $
3
# $Header: $
4
5
EAPI=1
4
6
5
inherit eutils
7
inherit eutils
6
8
Lines 11-28 Link Here
11
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
13
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
12
SLOT="0"
14
SLOT="0"
13
LICENSE="GPL-2"
15
LICENSE="GPL-2"
14
IUSE=""
16
IUSE="doc +zlib"
15
17
16
RDEPEND="!sci-chemistry/babel
18
RDEPEND="!sci-chemistry/babel
17
	dev-libs/libxml2"
19
	>=dev-libs/libxml2-2.6.5
20
	zlib? ( sys-libs/zlib )"
21
18
DEPEND="${RDEPEND}
22
DEPEND="${RDEPEND}
19
	dev-libs/boost
23
	>=dev-libs/boost-1.33.1
20
	dev-lang/perl"
24
	dev-lang/perl
25
	doc? ( app-doc/doxygen )"
26
27
src_unpack() {
28
	unpack ${A}
29
	cd "${S}"
30
31
	epatch "${FILESDIR}/${P}-doxyfile.patch" || die "Failed to apply ${P}-doxyfile.patch"
32
}
33
34
src_compile() {
35
	econf \
36
		--enable-static \
37
		$(use_with zlib) \
38
		|| die "econf failed"
39
	emake || die "emake failed"
40
	if use doc ; then
41
		emake docs || "make docs failed"
42
	fi
43
}
44
45
src_test() {
46
	emake check || die "make check failed"
47
}
21
48
22
src_install() {
49
src_install() {
23
	emake DESTDIR="${D}" install || die "make install failed."
50
	emake DESTDIR="${D}" install || die "make install failed"
24
	dodoc AUTHORS ChangeLog NEWS README THANKS
51
	dodoc AUTHORS ChangeLog NEWS README THANKS
25
	cd doc
52
	cd doc
26
	dohtml *.html *.png
53
	dohtml *.html *.png
27
	dodoc *.inc README* *.inc *.mol2
54
	dodoc *.inc README* *.inc *.mol2
55
	if use doc ;then
56
		dodir /usr/share/doc/${PF}/API/html
57
		insinto /usr/share/doc/${PF}/API/html
58
		cd API/html
59
		doins *
60
	fi
61
}
62
63
pkg_postinst() {
64
	echo
65
	elog "This version of OpenBabel includes InChI version 1 (software version"
66
	elog "1.02_beta). It does not produce Standard InChI/InChIKey."
67
	elog "To get Standard InChI/InChIKey software version 1.02 must be used."
28
}
68
}

Return to bug 212212