diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2007-05-29 22:35:37 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2007-05-29 22:35:37 +0000 |
commit | a5436f8d98da631b8e84787049d1774a35a63fa5 (patch) | |
tree | de6d5d66b8a6ee3d99ef4cb475db625eefc6146e /games-strategy/lightyears | |
parent | Remove stale file. (diff) | |
download | gentoo-2-a5436f8d98da631b8e84787049d1774a35a63fa5.tar.gz gentoo-2-a5436f8d98da631b8e84787049d1774a35a63fa5.tar.bz2 gentoo-2-a5436f8d98da631b8e84787049d1774a35a63fa5.zip |
Byte compile .py files for some speedup, bug #180191
(Portage version: 2.1.2.7)
Diffstat (limited to 'games-strategy/lightyears')
-rw-r--r-- | games-strategy/lightyears/ChangeLog | 5 | ||||
-rw-r--r-- | games-strategy/lightyears/lightyears-1.2a.ebuild | 13 |
2 files changed, 15 insertions, 3 deletions
diff --git a/games-strategy/lightyears/ChangeLog b/games-strategy/lightyears/ChangeLog index 977fbd7a9bbf..d0a97411adc0 100644 --- a/games-strategy/lightyears/ChangeLog +++ b/games-strategy/lightyears/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-strategy/lightyears # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/ChangeLog,v 1.3 2007/04/30 13:13:06 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/ChangeLog,v 1.4 2007/05/29 22:35:37 nyhm Exp $ + + 29 May 2007; Tristan Heaven <nyhm@gentoo.org> lightyears-1.2a.ebuild: + Byte compile .py files for some speedup, bug #180191 30 Apr 2007; Tristan Heaven <nyhm@gentoo.org> lightyears-1.2a.ebuild: keyword ~x86 diff --git a/games-strategy/lightyears/lightyears-1.2a.ebuild b/games-strategy/lightyears/lightyears-1.2a.ebuild index 80d86905ab07..fc87843c816e 100644 --- a/games-strategy/lightyears/lightyears-1.2a.ebuild +++ b/games-strategy/lightyears/lightyears-1.2a.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/lightyears-1.2a.ebuild,v 1.3 2007/04/30 13:13:06 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/lightyears-1.2a.ebuild,v 1.4 2007/05/29 22:35:37 nyhm Exp $ -inherit eutils games +inherit eutils python games MY_PN=LightYears MY_P=${MY_PN}-${PV} @@ -54,3 +54,12 @@ src_install() { make_desktop_entry ${PN} "Light Years Into Space" prepgamesdirs } + +pkg_postinst() { + games_pkg_postinst + python_mod_optimize "$(games_get_libdir)/${PN}" +} + +pkg_postrm() { + python_mod_cleanup "$(games_get_libdir)/${PN}" +} |