summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2011-05-12 13:13:42 +0000
committerAlfredo Tupone <tupone@gentoo.org>2011-05-12 13:13:42 +0000
commita6ce09ba64f70d544e7e39cc01f6544d6605bce4 (patch)
tree7f6f61273051e5b94788d5352dbdd38cfb00bb1d /games-puzzle/jools
parentInitial commit, looks like decent kde mpd client. (diff)
downloadgentoo-2-a6ce09ba64f70d544e7e39cc01f6544d6605bce4.tar.gz
gentoo-2-a6ce09ba64f70d544e7e39cc01f6544d6605bce4.tar.bz2
gentoo-2-a6ce09ba64f70d544e7e39cc01f6544d6605bce4.zip
Improved Python-related code. Bug #364851
(Portage version: 2.1.9.48/cvs/Linux x86_64)
Diffstat (limited to 'games-puzzle/jools')
-rw-r--r--games-puzzle/jools/ChangeLog6
-rw-r--r--games-puzzle/jools/jools-0.20-r1.ebuild19
2 files changed, 19 insertions, 6 deletions
diff --git a/games-puzzle/jools/ChangeLog b/games-puzzle/jools/ChangeLog
index 925635145d52..aee2ca8af350 100644
--- a/games-puzzle/jools/ChangeLog
+++ b/games-puzzle/jools/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-puzzle/jools
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/jools/ChangeLog,v 1.9 2011/04/25 20:34:59 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/jools/ChangeLog,v 1.10 2011/05/12 13:13:42 tupone Exp $
+
+ 12 May 2011; Tupone Alfredo <tupone@gentoo.org> jools-0.20-r1.ebuild:
+ Improved Python-related code. Bug #364851 by Arfrever Frehtes Taifersar
+ Arahesis
25 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
jools-0.20-r1.ebuild:
diff --git a/games-puzzle/jools/jools-0.20-r1.ebuild b/games-puzzle/jools/jools-0.20-r1.ebuild
index f272c3f04a5c..3a3523aa3cd5 100644
--- a/games-puzzle/jools/jools-0.20-r1.ebuild
+++ b/games-puzzle/jools/jools-0.20-r1.ebuild
@@ -1,6 +1,7 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/jools/jools-0.20-r1.ebuild,v 1.8 2011/04/25 20:43:51 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/jools/jools-0.20-r1.ebuild,v 1.9 2011/05/12 13:13:42 tupone Exp $
+PYTHON_DEPEND="2"
EAPI=3
inherit eutils python games
@@ -21,16 +22,24 @@ DEPEND=""
S=${WORKDIR}/${P}/jools
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
src_unpack() {
unpack ${P}.tar.gz
- cd "${S}"
- echo "MEDIAROOT = \"${GAMES_DATADIR}/${PN}\"" > config.py
- cd music
+ cd "${S}"/music
unpack ${MUS_P}.tar.gz
}
+src_prepare() {
+ echo "MEDIAROOT = \"${GAMES_DATADIR}/${PN}\"" > config.py
+ python_convert_shebangs -r 2 .
+}
+
src_install() {
- games_make_wrapper ${PN} "python ./__init__.py" "$(games_get_libdir)"/${PN}
+ games_make_wrapper ${PN} "$(PYTHON) ./__init__.py" "$(games_get_libdir)"/${PN}
insinto "$(games_get_libdir)"/${PN}
doins *.py || die "doins py failed"
insinto "${GAMES_DATADIR}"/${PN}