View | Details | Raw Unified
Collapse All | Expand All

(-) wxpython-2.4.2.4-r2.ebuild.orig (-4 / +5 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.4.2.4-r2.ebuild,v 1.7 2005/06/17 20:28:29 hansmi Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.4.2.4-r2.ebuild,v 1.7 2005/06/17 20:28:29 hansmi Exp $
inherit eutils wxwidgets python
inherit eutils wxwidgets python multilib
MY_P="${P/wxpython-/wxPythonSrc-}"
MY_P="${P/wxpython-/wxPythonSrc-}"
S="${WORKDIR}/${MY_P}/wxPython"
S="${WORKDIR}/${MY_P}/wxPython"
 Lines 69-75    Link Here 
	local mypyconf
	local mypyconf
	local dest
	local dest
	local wx_name
	local wx_name
	local site_pkgs=/usr/lib/python${PYVER}/site-packages
	local site_pkgs=/usr/$(get_libdir)/python${PYVER}/site-packages
	use opengl \
	use opengl \
		&& mypyconf="${mypyconf} BUILD_GLCANVAS=1" \
		&& mypyconf="${mypyconf} BUILD_GLCANVAS=1" \
 Lines 79-85    Link Here 
		|| mypyconf="${mypyconf} WXPORT=gtk"
		|| mypyconf="${mypyconf} WXPORT=gtk"
	use unicode && mypyconf="${mypyconf} UNICODE=1"
	use unicode && mypyconf="${mypyconf} UNICODE=1"
	python setup.py ${mypyconf} install --prefix=/usr --root=${D} || die
	python setup.py ${mypyconf} install --prefix=/usr \
	--install-lib=/usr/$(get_libdir)/ --root=${D} || die
	# This can all be removed when 2.4.3 is released:
	# This can all be removed when 2.4.3 is released:
	# Future: Make sure we don't clobber existing wxversion.py or wx.pth
	# Future: Make sure we don't clobber existing wxversion.py or wx.pth
 Lines 123-129    Link Here 
pkg_postrm() {
pkg_postrm() {
	python_version
	python_version
	site_pkgs=/usr/lib/python${PYVER}/site-packages
	site_pkgs=/usr/$(get_libdir)/python${PYVER}/site-packages
	cd ${site_pkgs}
	cd ${site_pkgs}
	#If 2.4 is removed, set 2.6 as default version:
	#If 2.4 is removed, set 2.6 as default version:
	for wxver in "wx-2.6-gtk2-unicode" "wx-2.6-gtk2-ansi" "wx-2.6-gtk"
	for wxver in "wx-2.6-gtk2-unicode" "wx-2.6-gtk2-ansi" "wx-2.6-gtk"