summaryrefslogtreecommitdiff
blob: ce2577a4299984eb7a9eed146c6783627730a0b3 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyOpenGL/PyOpenGL-2.0.0.44.ebuild,v 1.3 2002/09/11 20:41:52 raker Exp $

inherit virtualx

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

DESCRIPTION="Python OpenGL bindings"
HOMEPAGE="http://pyopengl.sourceforge.net/"
SRC_URI="mirror://sourceforge/pyopengl/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="x86 -ppc -sparc -sparc64"

DEPEND="virtual/python
	>=media-libs/glut-3.7-r2
	x11-base/xfree
	virtual/opengl"
RDEPEND="${DEPEND}"

src_unpack() {

	unpack ${A}
	cd ${S}
	patch -p1 < ${FILESDIR}/config.diff || die "patch failed"

}

src_compile() {

#	IN_X=`env | grep DISPLAY | wc -l`
#	if [ "$IN_X" -eq "0" ]; then
#		einfo "******************************"
#		einfo "You must have XWindows running"
#		einfo "in order to compile PyOpenGL. "
#		einfo "******************************"
#		die "please start xwindows before emerging"
#	fi

	export maketype="python setup.py build"
	virtualmake "$*" || die
#	python setup.py build || die "build failed"

}

src_install () {

	export maketype="python setup.py install --prefix=${D}/usr"
	virtualmake "$*" || die
	#python setup.py install --prefix=${D}/usr || die "install failed"

}