summaryrefslogtreecommitdiff
blob: b897fc7838dba0362f0be7b6d3e6d3106b267e4c (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/xdrawchem/xdrawchem-1.7.8.ebuild,v 1.1 2004/12/24 17:06:38 ribosome Exp $

inherit flag-o-matic

# There seems to be an issue with gcc 3.3.1, for the moment use -O0 only
filter-flags -O1 -O2 -O3 -Os
CXXFLAGS="-O0 ${CXXFLAGS}"

DESCRIPTION="a molecular structure drawing program"
HOMEPAGE="http://${PN}.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc"
IUSE=""

DEPEND=">=x11-libs/qt-3.1.0
	dev-util/pkgconfig
	>=sci-chemistry/openbabel-1.100.2*"

src_compile() {
	# make sure we use moc from Qt, not from eg media-sound/moc
	PATH="${QTDIR}/bin:${PATH}"
	econf || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install
	cd ${D}/usr/share
	dodir /usr/share/doc
	mv xdrawchem/doc doc/xdrawchem
	dosym /usr/share/doc/xdrawchem /usr/share/xdrawchem/doc
}