Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159158 - pyopengl2.0.0.44 won't build with default ebuild
Summary: pyopengl2.0.0.44 won't build with default ebuild
Status: RESOLVED DUPLICATE of bug 147809
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-26 13:03 UTC by Jill Mitchell
Modified: 2006-12-26 13:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jill Mitchell 2006-12-26 13:03:43 UTC
Several packages died during emerge, with the message that the this statement:

if built-with-use dev-lang/python tk; then

was causing an error, something about the tk use clause being deprecated. I was able to get around this by commenting out that portion of the if/then statement, and my installation went on just fine from there. Here's a paste of the modified ebuild:

# Copyright 1999-2006 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.14 2006/09/12 14:18:01 marienz 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"
IUSE=""

DEPEND="virtual/python
	virtual/glut
	|| ( ( x11-libs/libXi
			x11-libs/libXmu
		)
		virtual/x11
	)
	virtual/opengl"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/config.diff
	epatch ${FILESDIR}/${P}-fix_togl.patch

#	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}" setup/togl_setup.py
}
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-26 13:09:23 UTC
Re-emerge python.

*** This bug has been marked as a duplicate of 147809 ***