blob: 0aa10927f21f63ac4ea410890f923d5837e179ba (
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
|
# Copyright 1999-2005 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.2 2005/12/02 19:49:40 spyderous 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
)
virtual/x11
)"
DEPEND="${RDEPEND}
|| ( (
x11-proto/inputproto
x11-proto/xproto
)
virtual/x11
)"
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
}
|