From 2eb1b533b5dac0ba88168c71f213c67f0294a885 Mon Sep 17 00:00:00 2001 From: Lukasz Strzygowski Date: Sat, 27 Jan 2007 22:41:46 +0000 Subject: [PATCH] Added doc use-flag and fixed to install docs in /usr/share/doc (bug #158511). Package-Manager: portage-2.1.2-r1 --- dev-python/pyopengl/ChangeLog | 10 ++- dev-python/pyopengl/Manifest | 23 ++++--- .../files/digest-pyopengl-2.0.1.09-r1 | 3 + .../pyopengl/pyopengl-2.0.1.09-r1.ebuild | 62 +++++++++++++++++++ 4 files changed, 88 insertions(+), 10 deletions(-) create mode 100644 dev-python/pyopengl/files/digest-pyopengl-2.0.1.09-r1 create mode 100644 dev-python/pyopengl/pyopengl-2.0.1.09-r1.ebuild 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 + +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 pyopengl-2.0.0.44.ebuild, pyopengl-2.0.1.09.ebuild: diff --git a/dev-python/pyopengl/Manifest b/dev-python/pyopengl/Manifest index 97240e840b80..29e3835f1edb 100644 --- a/dev-python/pyopengl/Manifest +++ b/dev-python/pyopengl/Manifest @@ -19,14 +19,18 @@ EBUILD pyopengl-2.0.0.44.ebuild 1475 RMD160 3f0750a4d8a349dbd13cf40b6a91b175d6d3 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 @@ -37,10 +41,13 @@ SHA256 9e82fa86b6d9890d1acab25c0dd117ed1f2423cdc8030f85ef3d26e609174cdf files/di 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----- 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 +} -- 2.26.2