diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2006-03-18 15:32:06 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2006-03-18 15:32:06 +0000 |
commit | 937950cd5492b0730a71c032b6e6531075e7a14a (patch) | |
tree | f1831d7eeca7590df5df98d3cb42e41c16b80c9c /sys-libs/libselinux | |
parent | use flag for extramodules in spamassassin 3.1.1 (diff) | |
download | gentoo-2-937950cd5492b0730a71c032b6e6531075e7a14a.tar.gz gentoo-2-937950cd5492b0730a71c032b6e6531075e7a14a.tar.bz2 gentoo-2-937950cd5492b0730a71c032b6e6531075e7a14a.zip |
add missing python bytecode optimize and cleanup.
(Portage version: 2.1_pre6-r1)
Diffstat (limited to 'sys-libs/libselinux')
-rw-r--r-- | sys-libs/libselinux/libselinux-1.30.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys-libs/libselinux/libselinux-1.30.ebuild b/sys-libs/libselinux/libselinux-1.30.ebuild index 12b54ba13cf3..e1f2d5c090bf 100644 --- a/sys-libs/libselinux/libselinux-1.30.ebuild +++ b/sys-libs/libselinux/libselinux-1.30.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-1.30.ebuild,v 1.1 2006/03/18 14:52:15 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-1.30.ebuild,v 1.2 2006/03/18 15:32:06 pebenito Exp $ IUSE="" @@ -40,3 +40,13 @@ src_install() { python_version make DESTDIR="${D}" PYLIBVER="python${PYVER}" install install-pywrap || die } + +pkg_postinst() { + python_version + python_mod_optimize ${ROOT}usr/lib/python${PYVER}/site-packages +} + +pkg_postrm() { + python_version + python_mod_cleanup ${ROOT}usr/lib/python${PYVER}/site-packages +} |