summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-04-06 14:41:38 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-04-06 14:41:38 +0000
commit0cee184c0812ad3dbf634a28a02c792a50d6da06 (patch)
tree55fc7f9ddb0796fd1d05ccf8ee6948b36133f241 /games-strategy/lightyears
parentVersion bump. (diff)
downloadgentoo-2-0cee184c0812ad3dbf634a28a02c792a50d6da06.tar.gz
gentoo-2-0cee184c0812ad3dbf634a28a02c792a50d6da06.tar.bz2
gentoo-2-0cee184c0812ad3dbf634a28a02c792a50d6da06.zip
Force python version to 2 . Bug #312285
(Portage version: 2.1.7.17/cvs/Linux i686)
Diffstat (limited to 'games-strategy/lightyears')
-rw-r--r--games-strategy/lightyears/ChangeLog7
-rw-r--r--games-strategy/lightyears/lightyears-1.3a.ebuild14
2 files changed, 15 insertions, 6 deletions
diff --git a/games-strategy/lightyears/ChangeLog b/games-strategy/lightyears/ChangeLog
index 7af0ef3152d9..b532b5e3f01f 100644
--- a/games-strategy/lightyears/ChangeLog
+++ b/games-strategy/lightyears/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-strategy/lightyears
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/ChangeLog,v 1.10 2009/11/21 19:32:20 maekke Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/ChangeLog,v 1.11 2010/04/06 14:41:38 tupone Exp $
+
+ 06 Apr 2010; Tupone Alfredo <tupone@gentoo.org> lightyears-1.3a.ebuild:
+ Force python version to 2 . Bug #312285 by arfrever@gentoo.org
21 Nov 2009; Markus Meier <maekke@gentoo.org> lightyears-1.3a.ebuild:
x86 stable, bug #289136
diff --git a/games-strategy/lightyears/lightyears-1.3a.ebuild b/games-strategy/lightyears/lightyears-1.3a.ebuild
index 61f2068fed7a..c2d57b4fffe2 100644
--- a/games-strategy/lightyears/lightyears-1.3a.ebuild
+++ b/games-strategy/lightyears/lightyears-1.3a.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/lightyears-1.3a.ebuild,v 1.4 2009/11/21 19:32:20 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/lightyears-1.3a.ebuild,v 1.5 2010/04/06 14:41:38 tupone Exp $
EAPI=2
+PYTHON_DEPEND="2"
inherit eutils python games
DESCRIPTION="a single-player game with a science-fiction theme"
@@ -14,8 +15,7 @@ SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
-DEPEND="dev-lang/python
- dev-python/pygame"
+DEPEND="dev-python/pygame"
src_prepare() {
epatch "${FILESDIR}/${P}"-gentoo.patch
@@ -23,6 +23,7 @@ src_prepare() {
-e "s:@GENTOO_LIBDIR@:$(games_get_libdir)/${PN}:" \
-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
${PN} || die "Changing library path failed"
+ python_convert_shebangs -r 2 .
}
src_install() {
@@ -41,6 +42,11 @@ src_install() {
prepgamesdirs
}
+pkg_setup() {
+ python_set_active_version 2
+ games_pkg_setup
+}
+
pkg_postinst() {
python_mod_optimize "$(games_get_libdir)/${PN}"
games_pkg_postinst