From a6ce09ba64f70d544e7e39cc01f6544d6605bce4 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Thu, 12 May 2011 13:13:42 +0000 Subject: Improved Python-related code. Bug #364851 (Portage version: 2.1.9.48/cvs/Linux x86_64) --- games-puzzle/jools/ChangeLog | 6 +++++- games-puzzle/jools/jools-0.20-r1.ebuild | 19 ++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) (limited to 'games-puzzle/jools') 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 jools-0.20-r1.ebuild: + Improved Python-related code. Bug #364851 by Arfrever Frehtes Taifersar + Arahesis 25 Apr 2011; Arfrever Frehtes Taifersar Arahesis 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} -- cgit v1.2.3-65-gdbad