diff options
author | Lukasz Strzygowski <lucass@gentoo.org> | 2007-01-27 22:41:46 +0000 |
---|---|---|
committer | Lukasz Strzygowski <lucass@gentoo.org> | 2007-01-27 22:41:46 +0000 |
commit | aa78aa14313affa12b7382b40f4d905aed6515ab (patch) | |
tree | 0607a70bdf5a5340cc0e64a2544dce2d48921307 /dev-python/pyopengl | |
parent | Stable on MIPS; bug #145409 (diff) | |
download | gentoo-2-aa78aa14313affa12b7382b40f4d905aed6515ab.tar.gz gentoo-2-aa78aa14313affa12b7382b40f4d905aed6515ab.tar.bz2 gentoo-2-aa78aa14313affa12b7382b40f4d905aed6515ab.zip |
Added doc use-flag and fixed to install docs in /usr/share/doc (bug #158511).
(Portage version: 2.1.2-r1)
Diffstat (limited to 'dev-python/pyopengl')
-rw-r--r-- | dev-python/pyopengl/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/pyopengl/files/digest-pyopengl-2.0.1.09-r1 | 3 | ||||
-rw-r--r-- | dev-python/pyopengl/pyopengl-2.0.1.09-r1.ebuild | 62 |
3 files changed, 73 insertions, 2 deletions
diff --git a/dev-python/pyopengl/ChangeLog b/dev-python/pyopengl/ChangeLog index 5e44aa08800b..7183ce364bdc 100644 --- a/dev-python/pyopengl/ChangeLog +++ b/dev-python/pyopengl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/pyopengl -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopengl/ChangeLog,v 1.16 2006/09/12 14:18:01 marienz Exp $ +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopengl/ChangeLog,v 1.17 2007/01/27 22:41:46 lucass Exp $ + +*pyopengl-2.0.1.09-r1 (27 Jan 2007) + + 27 Jan 2007; Lukasz Strzygowski <lucass@gentoo.org> + +pyopengl-2.0.1.09-r1.ebuild: + Added doc use-flag and fixed to install docs in /usr/share/doc (bug #158511). 12 Sep 2006; Marien Zwart <marienz@gentoo.org> pyopengl-2.0.0.44.ebuild, pyopengl-2.0.1.09.ebuild: diff --git a/dev-python/pyopengl/files/digest-pyopengl-2.0.1.09-r1 b/dev-python/pyopengl/files/digest-pyopengl-2.0.1.09-r1 new file mode 100644 index 000000000000..48853e3579c5 --- /dev/null +++ b/dev-python/pyopengl/files/digest-pyopengl-2.0.1.09-r1 @@ -0,0 +1,3 @@ +MD5 505b5f28ea676194e2e10333c56d5936 PyOpenGL-2.0.1.09.tar.gz 2180479 +RMD160 d5558ff9af52f2cdcc95c6897377d28a52120066 PyOpenGL-2.0.1.09.tar.gz 2180479 +SHA256 143baf9f29303c0c0090c3ec3499b4d5c16531db1da5e7a33f590b104e2d4236 PyOpenGL-2.0.1.09.tar.gz 2180479 diff --git a/dev-python/pyopengl/pyopengl-2.0.1.09-r1.ebuild b/dev-python/pyopengl/pyopengl-2.0.1.09-r1.ebuild new file mode 100644 index 000000000000..5deda03769a8 --- /dev/null +++ b/dev-python/pyopengl/pyopengl-2.0.1.09-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopengl/pyopengl-2.0.1.09-r1.ebuild,v 1.1 2007/01/27 22:41:46 lucass Exp $ + +MY_P=${P/pyopengl/PyOpenGL} +S=${WORKDIR}/${MY_P} + +inherit eutils distutils + +DESCRIPTION="Python OpenGL bindings" +HOMEPAGE="http://pyopengl.sourceforge.net/" +SRC_URI="mirror://sourceforge/pyopengl/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="doc" + +DEPEND="virtual/python + virtual/glut + || ( ( x11-libs/libXi + x11-libs/libXmu + ) + virtual/x11 + ) + virtual/opengl" + +src_unpack() { + unpack ${A} + cd "${S}"/setup + + if built_with_use dev-lang/python tk; then + tkv=$(grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/') + TKLIBRARY="'\/usr\/$(get_libdir)\/tk${tkv}'" + tclv=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/') + TCLLIBRARY="'\/usr\/$(get_libdir)\/tcl${tclv}'" + TKEQ="True" + else + TKLIBRARY="'/usr/lib/'" + TCLLIBRARY="'/usr/lib/'" + TKEQ="None" + fi + SEDED=""" +s:tk = Tkinter.Tk():tk = ${TKEQ}:; +s:tk.getvar('tk_version'):str(Tkinter.TkVersion):g; +s:tk.getvar( 'tk_version' ):str(Tkinter.TkVersion):g; +s:tk.getvar('tcl_version'):str(Tkinter.TclVersion):g; +s:tk.getvar('tk_library'):${TKLIBRARY}:g; +s:tk.getvar('tcl_library'):${TCLLIBRARY}:g;""" + sed -i -e "${SEDED}" togl_setup.py + + # replace malloc.h with stdlib.h for freebsd (#140940) + cd "${S}" + epatch ${FILESDIR}/${P}-malloc.patch +} + +src_install() { + use doc && dohtml -r -A xml OpenGL/doc/* + rm -rf OpenGL/doc + + distutils_src_install +} |