# 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:
MD5 0246f744e5c1e39713f9db49e8489172 pyopengl-2.0.0.44.ebuild 1475
RMD160 3f0750a4d8a349dbd13cf40b6a91b175d6d307cd pyopengl-2.0.0.44.ebuild 1475
SHA256 201c336cab598b723fa239a9680714328482b33bbcbd8f5e29b517baa49f913c pyopengl-2.0.0.44.ebuild 1475
+EBUILD pyopengl-2.0.1.09-r1.ebuild 1640 RMD160 a25c4072149951a5d49383773903e07ba71c5c1f SHA1 741a52e063dcc0f991b9ed5279bede67640b3f56 SHA256 e13667d7bf774a24802324308f52e6e2cdca3531d27ca69b253b355f7633a4cb
+MD5 511d1331a207140b9a9445c00e5dc24f pyopengl-2.0.1.09-r1.ebuild 1640
+RMD160 a25c4072149951a5d49383773903e07ba71c5c1f pyopengl-2.0.1.09-r1.ebuild 1640
+SHA256 e13667d7bf774a24802324308f52e6e2cdca3531d27ca69b253b355f7633a4cb pyopengl-2.0.1.09-r1.ebuild 1640
EBUILD pyopengl-2.0.1.09.ebuild 1532 RMD160 f56e72f6e72eb82acfedfc1a1469191e386ffeb3 SHA1 b83fa5936d721564052a6e302a78e35991ddfd14 SHA256 817c95dc23551dab538fd76749889a2b597508507f0002369ba27a95bef7e4d7
MD5 80602cc61667120931928e19e889333b pyopengl-2.0.1.09.ebuild 1532
RMD160 f56e72f6e72eb82acfedfc1a1469191e386ffeb3 pyopengl-2.0.1.09.ebuild 1532
SHA256 817c95dc23551dab538fd76749889a2b597508507f0002369ba27a95bef7e4d7 pyopengl-2.0.1.09.ebuild 1532
-MISC ChangeLog 5423 RMD160 3509c5b270c7289aea1796fe05d613c657bff8b7 SHA1 d8a176f0883bdf2a606e866a2f2ef000ca3fc1e5 SHA256 496a76c55e70e24951f82bca93780ca4f7f46d7f225730422bfa51e2a89aabc5
-MD5 b766032d4021e27a50defe6d728e4142 ChangeLog 5423
-RMD160 3509c5b270c7289aea1796fe05d613c657bff8b7 ChangeLog 5423
-SHA256 496a76c55e70e24951f82bca93780ca4f7f46d7f225730422bfa51e2a89aabc5 ChangeLog 5423
+MISC ChangeLog 5626 RMD160 56a78836f51b3c27bce51a0e65fc7ceb88053196 SHA1 8aff7aa982b86366c41982befceae26ec76cef22 SHA256 4f8b0e999c7c681ff76080640f145894c316a01379b319d71bc89113c979c57d
+MD5 e7bfc302b99a1a45100c9b07dc18d77d ChangeLog 5626
+RMD160 56a78836f51b3c27bce51a0e65fc7ceb88053196 ChangeLog 5626
+SHA256 4f8b0e999c7c681ff76080640f145894c316a01379b319d71bc89113c979c57d ChangeLog 5626
MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4
MD5 71c4638c9c88af75b58e5f5cb54fe008 metadata.xml 159
RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f metadata.xml 159
MD5 9487753988999b35ede86f7f987a829c files/digest-pyopengl-2.0.1.09 256
RMD160 23b5d7481a9249ad4b87b11b8145da218a7d3a8e files/digest-pyopengl-2.0.1.09 256
SHA256 00ad842f48e8b8ec789283fcc56a862afaca6ed4b3865b94ce7555f9e9dba683 files/digest-pyopengl-2.0.1.09 256
+MD5 9487753988999b35ede86f7f987a829c files/digest-pyopengl-2.0.1.09-r1 256
+RMD160 23b5d7481a9249ad4b87b11b8145da218a7d3a8e files/digest-pyopengl-2.0.1.09-r1 256
+SHA256 00ad842f48e8b8ec789283fcc56a862afaca6ed4b3865b94ce7555f9e9dba683 files/digest-pyopengl-2.0.1.09-r1 256
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
+Version: GnuPG v2.0.1 (GNU/Linux)
-iD8DBQFFBsGqUElL7eJpfEQRAuhHAKCPIK2u3ree637S7sRp7in1r1JiGQCeOZGF
-SL27zSkO+SRBQGkYjD2MQ+U=
-=WsiG
+iD8DBQFFu9U42jLqHNfbg2URAldrAJ40jZZAOaJ7KAd5zg6RMkCxIwRrzgCcDjgO
+qRwkhceGWLgeuRsmt3KpTyU=
+=hYqb
-----END PGP SIGNATURE-----
--- /dev/null
+# 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
+}