diff options
author | Matt Turner <mattst88@gentoo.org> | 2011-09-06 18:40:49 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2011-09-06 18:40:49 +0000 |
commit | 85209d010b397b0d523fb54bf5355a0d4e73f49f (patch) | |
tree | 94637095724432b863d5457a1bbeb2ea2f050456 /gnome-extra | |
parent | [add] perl-core/Data-Dumper-2.131.0 (diff) | |
download | gentoo-2-85209d010b397b0d523fb54bf5355a0d4e73f49f.tar.gz gentoo-2-85209d010b397b0d523fb54bf5355a0d4e73f49f.tar.bz2 gentoo-2-85209d010b397b0d523fb54bf5355a0d4e73f49f.zip |
Don't use the package system to byte-compile python, bug 381587. Patch from Chris Mayo.
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra')
-rw-r--r-- | gnome-extra/gnome-dvb-daemon/ChangeLog | 6 | ||||
-rw-r--r-- | gnome-extra/gnome-dvb-daemon/gnome-dvb-daemon-0.2.2.ebuild | 25 |
2 files changed, 29 insertions, 2 deletions
diff --git a/gnome-extra/gnome-dvb-daemon/ChangeLog b/gnome-extra/gnome-dvb-daemon/ChangeLog index 94471134ea82..7d263c567f3a 100644 --- a/gnome-extra/gnome-dvb-daemon/ChangeLog +++ b/gnome-extra/gnome-dvb-daemon/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for gnome-extra/gnome-dvb-daemon # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-dvb-daemon/ChangeLog,v 1.3 2011/08/31 23:18:27 mattst88 Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-dvb-daemon/ChangeLog,v 1.4 2011/09/06 18:40:49 mattst88 Exp $ + + 06 Sep 2011; Matt Turner <mattst88@gentoo.org> gnome-dvb-daemon-0.2.2.ebuild: + Don't use the package system to byte-compile python, bug 381587. Patch from + Chris Mayo. 31 Aug 2011; Matt Turner <mattst88@gentoo.org> gnome-dvb-daemon-0.2.2.ebuild: Pass --with-totem-plugin-dir since totem-2 doesn't ship a .pc file, bug diff --git a/gnome-extra/gnome-dvb-daemon/gnome-dvb-daemon-0.2.2.ebuild b/gnome-extra/gnome-dvb-daemon/gnome-dvb-daemon-0.2.2.ebuild index ec04fc11087c..32bb85619981 100644 --- a/gnome-extra/gnome-dvb-daemon/gnome-dvb-daemon-0.2.2.ebuild +++ b/gnome-extra/gnome-dvb-daemon/gnome-dvb-daemon-0.2.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-dvb-daemon/gnome-dvb-daemon-0.2.2.ebuild,v 1.2 2011/08/31 23:18:27 mattst88 Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-dvb-daemon/gnome-dvb-daemon-0.2.2.ebuild,v 1.3 2011/09/06 18:40:49 mattst88 Exp $ EAPI="3" @@ -45,3 +45,26 @@ pkg_setup() { python_set_active_version 2 python_pkg_setup } + +src_prepare() { + # Disable byte-compilation of Python modules. + ln -s $(type -P true) py-compile + + gnome2_src_prepare +} + +pkg_postinst() { + python_mod_optimize gnomedvb + if use totem; then + python_mod_optimize "/usr/$(get_libdir)/totem/plugins" + fi + gnome2_pkg_postinst +} + +pkg_postrm() { + python_mod_cleanup gnomedvb + if use totem; then + python_mod_cleanup "/usr/$(get_libdir)/totem/plugins" + fi + gnome2_pkg_postrm +} |