summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <lack@gentoo.org>2008-06-04 12:35:09 +0000
committerJim Ramsay <lack@gentoo.org>2008-06-04 12:35:09 +0000
commitdd48ae050f0a970a40cf17413727fc654ee94332 (patch)
tree903653fa523207af517170ef851c059d3edd332a /rox-base
parentMoved python_mod_optimize to pkg_postinst (Bug #224833) (diff)
downloadgentoo-2-dd48ae050f0a970a40cf17413727fc654ee94332.tar.gz
gentoo-2-dd48ae050f0a970a40cf17413727fc654ee94332.tar.bz2
gentoo-2-dd48ae050f0a970a40cf17413727fc654ee94332.zip
Moved python_mod_optimize to pkg_postinst (Bug #224833)
(Portage version: 2.1.5.2)
Diffstat (limited to 'rox-base')
-rw-r--r--rox-base/traylib/ChangeLog6
-rw-r--r--rox-base/traylib/traylib-0.2.5.ebuild12
-rw-r--r--rox-base/traylib/traylib-0.3.2.1.ebuild12
3 files changed, 25 insertions, 5 deletions
diff --git a/rox-base/traylib/ChangeLog b/rox-base/traylib/ChangeLog
index acb5d769989d..0e7a611bedb1 100644
--- a/rox-base/traylib/ChangeLog
+++ b/rox-base/traylib/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for rox-base/traylib
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/rox-base/traylib/ChangeLog,v 1.4 2008/05/11 15:58:24 lack Exp $
+# $Header: /var/cvsroot/gentoo-x86/rox-base/traylib/ChangeLog,v 1.5 2008/06/04 12:35:09 lack Exp $
+
+ 04 Jun 2008; Jim Ramsay <lack@gentoo.org> traylib-0.2.5.ebuild,
+ traylib-0.3.2.1.ebuild:
+ Moved python_mod_optimize to pkg_postinst (Bug #224833)
*traylib-0.3.2.1 (11 May 2008)
diff --git a/rox-base/traylib/traylib-0.2.5.ebuild b/rox-base/traylib/traylib-0.2.5.ebuild
index 98c44727242a..459b0911fc1d 100644
--- a/rox-base/traylib/traylib-0.2.5.ebuild
+++ b/rox-base/traylib/traylib-0.2.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/rox-base/traylib/traylib-0.2.5.ebuild,v 1.3 2008/04/08 14:59:05 lack Exp $
+# $Header: /var/cvsroot/gentoo-x86/rox-base/traylib/traylib-0.2.5.ebuild,v 1.4 2008/06/04 12:35:09 lack Exp $
NEED_PYTHON="2.3"
inherit python eutils multilib
@@ -21,7 +21,15 @@ src_install() {
local baselibdir="/usr/$(get_libdir)"
dodir "${baselibdir}"
cp -r ${MY_PN}/ "${D}${baselibdir}/${MY_PN}"
- python_mod_optimize "${D}${baselibdir}/${MY_PN}/" >/dev/null 2>&1
dodir /usr/share/doc/
dosym ${baselibdir}/${MY_PN}/Help /usr/share/doc/${P}
}
+
+pkg_postinst() {
+ local baselibdir="/usr/$(get_libdir)"
+ python_mod_optimize "${baselibdir}/${MY_PN}/"
+}
+
+pkg_postrm() {
+ python_mod_cleanup
+}
diff --git a/rox-base/traylib/traylib-0.3.2.1.ebuild b/rox-base/traylib/traylib-0.3.2.1.ebuild
index b9d94d40588c..55ae8c61e924 100644
--- a/rox-base/traylib/traylib-0.3.2.1.ebuild
+++ b/rox-base/traylib/traylib-0.3.2.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/rox-base/traylib/traylib-0.3.2.1.ebuild,v 1.1 2008/05/11 15:58:24 lack Exp $
+# $Header: /var/cvsroot/gentoo-x86/rox-base/traylib/traylib-0.3.2.1.ebuild,v 1.2 2008/06/04 12:35:09 lack Exp $
NEED_PYTHON="2.3"
inherit python eutils multilib
@@ -23,7 +23,15 @@ src_install() {
local baselibdir="/usr/$(get_libdir)"
dodir "${baselibdir}"
cp -r ${MY_PN}/ "${D}${baselibdir}/${MY_PN}"
- python_mod_optimize "${D}${baselibdir}/${MY_PN}/" >/dev/null 2>&1
dodir /usr/share/doc/
dosym ${baselibdir}/${MY_PN}/Help /usr/share/doc/${P}
}
+
+pkg_postinst() {
+ local baselibdir="/usr/$(get_libdir)"
+ python_mod_optimize "${baselibdir}/${MY_PN}/"
+}
+
+pkg_postrm() {
+ python_mod_cleanup
+}