diff options
author | Nick Hadaway <raker@gentoo.org> | 2002-08-29 16:36:59 +0000 |
---|---|---|
committer | Nick Hadaway <raker@gentoo.org> | 2002-08-29 16:36:59 +0000 |
commit | d630b1091100ecddffa5e6c3ea68372bea002a9c (patch) | |
tree | 09049e5c11b3015c70d04c4886514a6c6aa9c1a5 /dev-python | |
parent | unmasked cjk ebuilds (diff) | |
download | gentoo-2-d630b1091100ecddffa5e6c3ea68372bea002a9c.tar.gz gentoo-2-d630b1091100ecddffa5e6c3ea68372bea002a9c.tar.bz2 gentoo-2-d630b1091100ecddffa5e6c3ea68372bea002a9c.zip |
Adding PyOpenGL in order to support the opengl enabled build of wxPython
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/PyOpenGL/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/PyOpenGL/PyOpenGL-2.0.0.44.ebuild | 46 | ||||
-rw-r--r-- | dev-python/PyOpenGL/files/config.diff | 14 | ||||
-rw-r--r-- | dev-python/PyOpenGL/files/digest-PyOpenGL-2.0.0.44 | 1 |
4 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/PyOpenGL/ChangeLog b/dev-python/PyOpenGL/ChangeLog new file mode 100644 index 000000000000..af7bd5f356e2 --- /dev/null +++ b/dev-python/PyOpenGL/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for <dev-python/PyOpenGL +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/PyOpenGL/ChangeLog,v 1.1 2002/08/29 16:36:59 raker Exp $ + +*PyOpenGL-2.0.0.44 (29 Aug 2002) + + 29 Aug 2002; Nick Hadaway <raker@gentoo.org> PyOpenGL-2.0.0.44.ebuild, + files/digest-PyOpenGL-2.0.0.44, files/config.diff : + New ebuild added to support a wxPython opengl enabled build. This ebuild + requires a local or remote xserver running in order to complete the + build. diff --git a/dev-python/PyOpenGL/PyOpenGL-2.0.0.44.ebuild b/dev-python/PyOpenGL/PyOpenGL-2.0.0.44.ebuild new file mode 100644 index 000000000000..fd50c2f7dfed --- /dev/null +++ b/dev-python/PyOpenGL/PyOpenGL-2.0.0.44.ebuild @@ -0,0 +1,46 @@ +# 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.1 2002/08/29 16:36:59 raker Exp $ + +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 + x11-base/xfree + virtual/opengl" + +S="${WORKDIR}/${P}" + +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 + + python setup.py build || die "build failed" + +} + +src_install () { + + python setup.py install --prefix=${D}/usr || die "install failed" + +} diff --git a/dev-python/PyOpenGL/files/config.diff b/dev-python/PyOpenGL/files/config.diff new file mode 100644 index 000000000000..033b7af6faef --- /dev/null +++ b/dev-python/PyOpenGL/files/config.diff @@ -0,0 +1,14 @@ +diff -urN PyOpenGL-2.0.0.44/config/linux.cfg PyOpenGL-2.0.0.44-modified/config/linux.cfg +--- PyOpenGL-2.0.0.44/config/linux.cfg Wed Aug 22 16:05:44 2001 ++++ PyOpenGL-2.0.0.44-modified/config/linux.cfg Fri Aug 23 11:25:42 2002 +@@ -11,8 +11,8 @@ + [General] + build_togl=1 + gl_platform=GLX +-include_dirs=/usr/include:/usr/local/include:/usr/X11/include +-library_dirs=/usr/lib:/usr/local/lib:/usr/X11/lib ++include_dirs=/usr/include:/usr/local/include:/usr/X11R6/include ++library_dirs=/usr/lib:/usr/local/lib:/usr/X11R6/lib + + ; a sys.pathsep separated list of the libs needed when linking GL + [GL] diff --git a/dev-python/PyOpenGL/files/digest-PyOpenGL-2.0.0.44 b/dev-python/PyOpenGL/files/digest-PyOpenGL-2.0.0.44 new file mode 100644 index 000000000000..0d0382623d08 --- /dev/null +++ b/dev-python/PyOpenGL/files/digest-PyOpenGL-2.0.0.44 @@ -0,0 +1 @@ +MD5 87066d1ebce1ecda2f562182332c658b PyOpenGL-2.0.0.44.tar.gz 1281640 |