summaryrefslogtreecommitdiff
blob: a345434ba448da9718d235fc3709d93a35abbdaa (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/viewmol/viewmol-2.4.1.ebuild,v 1.3 2007/07/22 07:23:58 dberkholz Exp $

inherit toolchain-funcs eutils

DESCRIPTION="Open-source graphical front end for computational chemistry programs"
HOMEPAGE="http://viewmol.sourceforge.net/"
SRC_URI="mirror://sourceforge/viewmol/${P}.src.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="media-libs/tiff
	virtual/opengl
	virtual/motif
	media-libs/libpng
	>=dev-lang/python-2.2
	x11-libs/libXmu
	x11-libs/libXaw
	x11-libs/libXp
	x11-libs/libXi"
DEPEND="${RDEPEND}
	x11-proto/inputproto
	x11-proto/xproto"

S="${WORKDIR}/${P}/source"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PV}-remove-icc-check.patch
	epatch ${FILESDIR}/${PV}-look-for-python-in-right-place.patch
	epatch ${FILESDIR}/${PV}-use-root-for-app-defaults.patch
	epatch ${FILESDIR}/${PV}-change-default-path-to-usr.patch
}

src_compile() {
	./getmachine
	emake -j1 \
		COMPILER=$(tc-getCC) \
		OPT="${CFLAGS}" || die "emake failed"
}

src_install() {
	./install ${D}/usr || die
}