summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-04-04 18:53:45 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-04-04 18:53:45 +0000
commit6f9aa4564f182d4a9e22f8101c2f57679163cb09 (patch)
treed592bb7a474f9273914060aa4a8480867bd3188b /dev-python/sepolgen/sepolgen-1.0.17-r1.ebuild
parentalpha/ia64/sparc stable wrt #293647 (diff)
downloadhistorical-6f9aa4564f182d4a9e22f8101c2f57679163cb09.tar.gz
historical-6f9aa4564f182d4a9e22f8101c2f57679163cb09.tar.bz2
historical-6f9aa4564f182d4a9e22f8101c2f57679163cb09.zip
Delete calls to deprecated python_version().
Package-Manager: portage-HEAD/cvs/Linux x86_64
Diffstat (limited to 'dev-python/sepolgen/sepolgen-1.0.17-r1.ebuild')
-rw-r--r--dev-python/sepolgen/sepolgen-1.0.17-r1.ebuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/dev-python/sepolgen/sepolgen-1.0.17-r1.ebuild b/dev-python/sepolgen/sepolgen-1.0.17-r1.ebuild
index cc9310918f6b..89dbcf3a7394 100644
--- a/dev-python/sepolgen/sepolgen-1.0.17-r1.ebuild
+++ b/dev-python/sepolgen/sepolgen-1.0.17-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/sepolgen-1.0.17-r1.ebuild,v 1.1 2009/12/16 01:55:00 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/sepolgen-1.0.17-r1.ebuild,v 1.2 2010/04/04 18:53:45 arfrever Exp $
inherit python
@@ -40,18 +40,15 @@ src_test() {
}
src_install() {
- python_version
python_need_rebuild
- make DESTDIR="${D}" PYTHONLIBDIR="/usr/$(get_libdir)/python${PYVER}/site-packages" \
+ make DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" \
install || die "install failed"
}
pkg_postinst() {
- python_version
- python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages
+ python_mod_optimize $(python_get_sitedir)
}
pkg_postrm() {
- python_version
- python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages
+ python_mod_cleanup $(python_get_sitedir)
}