diff options
author | Bryan Østergaard <kloeri@gentoo.org> | 2004-07-20 19:54:12 +0000 |
---|---|---|
committer | Bryan Østergaard <kloeri@gentoo.org> | 2004-07-20 19:54:12 +0000 |
commit | 35f8dc20c87472de4c278e1889603d572fe23b12 (patch) | |
tree | 1272789990f5493d8d3777692fe9dce568d7f218 /dev-python/pyopengl/pyopengl-2.0.0.44.ebuild | |
parent | Rename dev-python/PyOpenGL to dev-python/pyopengl. (Manifest recommit) (diff) | |
download | gentoo-2-35f8dc20c87472de4c278e1889603d572fe23b12.tar.gz gentoo-2-35f8dc20c87472de4c278e1889603d572fe23b12.tar.bz2 gentoo-2-35f8dc20c87472de4c278e1889603d572fe23b12.zip |
Rename dev-python/PyOpenGL to dev-python/pyopengl.
Diffstat (limited to 'dev-python/pyopengl/pyopengl-2.0.0.44.ebuild')
-rw-r--r-- | dev-python/pyopengl/pyopengl-2.0.0.44.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
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..1d77ec658d1b --- /dev/null +++ b/dev-python/pyopengl/pyopengl-2.0.0.44.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2004 Gentoo Foundation +# 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 2004/07/20 19:52:08 kloeri Exp $ + +MY_P=${P/pyopengl/PyOpenGL} +S=${WORKDIR}/${MY_P} + +inherit eutils distutils virtualx + +DESCRIPTION="Python OpenGL bindings" +HOMEPAGE="http://pyopengl.sourceforge.net/" +SRC_URI="mirror://sourceforge/pyopengl/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64" +IUSE="" + +DEPEND="virtual/python + virtual/glut + virtual/x11 + virtual/opengl" + +src_unpack() { + unpack ${A} + EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/config.diff + EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${P}-disable_togl.patch +} + +src_compile() { + export maketype="python" + export python="virtualmake" + distutils_src_compile +} + +src_install() { + export maketype="python" + export python="virtualmake" + distutils_src_install +} + +pkg_setup () { + if [ -e /etc/env.d/09opengl ] + then + # Set up X11 implementation + X11_IMPLEM_P="$(portageq best_version "${ROOT}" virtual/x11)" + X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}" + X11_IMPLEM="${X11_IMPLEM##*\/}" + einfo "X11 implementation is ${X11_IMPLEM}." + + VOID=$(cat /etc/env.d/09opengl | grep ${X11_IMPLEM}) + + USING_X11=$? + if [ ${USING_X11} -eq 1 ] + then + GL_IMPLEM=$(cat /etc/env.d/09opengl | cut -f5 -d/) + opengl-update ${X11_IMPLEM} + fi + else + die "Could not find /etc/env.d/09opengl. Please run opengl-update." + fi +} + +pkg_postinst () { + if [ ${USING_X11} -eq 1 ] + then + opengl-update ${GL_IMPLEM} + fi +} |