summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-08 00:44:34 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-08 00:44:34 +0000
commiteb5534d177d6e3490957396bb66235d6d49213d1 (patch)
treef92ab1f09238c5f8639ffe0b043706b82c39f7a0 /dev-python
parentUse EAPI="3". (diff)
downloadgentoo-2-eb5534d177d6e3490957396bb66235d6d49213d1.tar.gz
gentoo-2-eb5534d177d6e3490957396bb66235d6d49213d1.tar.bz2
gentoo-2-eb5534d177d6e3490957396bb66235d6d49213d1.zip
Delete calls to deprecated python_version().
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pygtk/pygtk-2.14.1-r1.ebuild12
1 files changed, 5 insertions, 7 deletions
diff --git a/dev-python/pygtk/pygtk-2.14.1-r1.ebuild b/dev-python/pygtk/pygtk-2.14.1-r1.ebuild
index 0cb8ec264e9c..712ed9fba80a 100644
--- a/dev-python/pygtk/pygtk-2.14.1-r1.ebuild
+++ b/dev-python/pygtk/pygtk-2.14.1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/pygtk-2.14.1-r1.ebuild,v 1.9 2010/05/22 20:13:01 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/pygtk-2.14.1-r1.ebuild,v 1.10 2010/06/08 00:44:34 arfrever Exp $
EAPI="2"
@@ -76,15 +76,13 @@ src_test() {
}
pkg_postinst() {
- python_version
python_need_rebuild
- python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0
+ python_mod_optimize $(python_get_sitedir)/gtk-2.0
}
pkg_postrm() {
- python_version
python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/gtk-2.0
- rm -f "${ROOT}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.{py,pth}
- alternatives_auto_makesym /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py pygtk.py-[0-9].[0-9]
- alternatives_auto_makesym /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth pygtk.pth-[0-9].[0-9]
+ rm -f "${ROOT}"$(python_get_sitedir)/pygtk.{py,pth}
+ alternatives_auto_makesym $(python_get_sitedir)/pygtk.py pygtk.py-[0-9].[0-9]
+ alternatives_auto_makesym $(python_get_sitedir)/pygtk.pth pygtk.pth-[0-9].[0-9]
}