blob: a469819a21897efa1a789bb5f5921207e4867c82 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/xdrawchem/xdrawchem-1.9.9.ebuild,v 1.9 2008/07/27 22:20:58 carlo Exp $
EAPI=1
inherit qt3 eutils
DESCRIPTION="Molecular structure drawing program"
HOMEPAGE="http://xdrawchem.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""
RDEPEND="x11-libs/qt:3
sci-chemistry/openbabel"
DEPEND="${RDEPEND}
>=sys-devel/gcc-3.2
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gcc4.3.patch
}
src_compile() {
# make sure we use moc from Qt, not from eg media-sound/moc
PATH="${QTDIR}/bin:${PATH}"
econf || die "econf failed."
emake || die "emake failed."
}
src_install() {
make DESTDIR="${D}" install || die "make install failed."
cd "${D}"/usr/share
dodir /usr/share/doc
mv xdrawchem/doc doc/${PF}
dosym /usr/share/doc/${PF} /usr/share/xdrawchem/doc
}
|