# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $header$ DESCRIPTION="Python bindings for OpenGL" # Homepage, not used by Portage directly but handy for developer reference HOMEPAGE="http://pyopengl.sourceforge.net" # License of the package. This must match the name of file(s) in # /usr/portage/licenses/. For complex license combination see the developer # docs on gentoo.org for details. LICENSE="PyOpenGL-1.5.5 PyOpenGL-1.5.6 GLE FreeB PyGLUT" SLOT="0" DEPEND=">=python-2.2.1-r2 >=glut-3.7-r2" RDEPEND=${DEPEND} SRC_URI="mirror://sourceforge/pyopengl/${P}.tar.gz" src_unpack() { unpack ${P}.tar.gz || die cd ${S} #togl needs $DISPLAY to be set - disable patch -p0 < ${FILESDIR}/setup-disable-togl.diff #change path to X11R6 instead of X11 patch -p0 < ${FILESDIR}/setup-X11-path.diff } src_compile() { python setup.py build || die } src_install() { python setup.py install --root ${D} || die }