diff options
author | Jim Ramsay <lack@gentoo.org> | 2008-06-04 12:37:33 +0000 |
---|---|---|
committer | Jim Ramsay <lack@gentoo.org> | 2008-06-04 12:37:33 +0000 |
commit | 6f9dae333d7c5b5d8ddc3af302893d4f2dd531ac (patch) | |
tree | 3b8656460c18283b9f0c5accf808848570184bbf /eclass | |
parent | Moved python_mod_optimize to pkg_postinst (Bug #224833) (diff) | |
download | historical-6f9dae333d7c5b5d8ddc3af302893d4f2dd531ac.tar.gz historical-6f9dae333d7c5b5d8ddc3af302893d4f2dd531ac.tar.bz2 historical-6f9dae333d7c5b5d8ddc3af302893d4f2dd531ac.zip |
Moved python_mod_optimize to pkg_postinst (Bug #224833)
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/rox.eclass | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/eclass/rox.eclass b/eclass/rox.eclass index bc90d369cfc7..b6124495d989 100644 --- a/eclass/rox.eclass +++ b/eclass/rox.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v 1.27 2008/01/02 13:22:13 lack Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v 1.28 2008/06/04 12:37:33 lack Exp $ # ROX eclass Version 3 @@ -292,12 +292,11 @@ rox_src_install() { # Install the .desktop application file rox_install_desktop - - # Finally, optimize any python files - python_mod_optimize "${D}${APPDIR}/${APPNAME}" >/dev/null 2>&1 } rox_pkg_postinst() { + python_mod_optimize "${APPDIR}/${APPNAME}" >/dev/null 2>&1 + einfo "${APPNAME} has been installed into ${APPDIR}" if [[ "${WRAPPERNAME}" != "skip" ]]; then einfo "You can run it by typing ${WRAPPERNAME} at the command line." @@ -309,4 +308,9 @@ rox_pkg_postinst() { einfo "on ${APPNAME}'s icon, drag it to a panel, desktop, etc." } -EXPORT_FUNCTIONS src_compile src_install pkg_postinst +rox_pkg_postrm() { + python_mod_cleanup +} + + +EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm |