summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-05-04 22:04:36 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-05-04 22:04:36 +0000
commit81eeb6f1b989a48a943f704ebd01ecdf14df6999 (patch)
tree04342c1e79915f59cf60b865ca6847b5abda4d6d /games-rpg/adonthell
parentVersion bump (diff)
downloadgentoo-2-81eeb6f1b989a48a943f704ebd01ecdf14df6999.tar.gz
gentoo-2-81eeb6f1b989a48a943f704ebd01ecdf14df6999.tar.bz2
gentoo-2-81eeb6f1b989a48a943f704ebd01ecdf14df6999.zip
Force python2 fixing bug #312271
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-rpg/adonthell')
-rw-r--r--games-rpg/adonthell/ChangeLog5
-rw-r--r--games-rpg/adonthell/adonthell-0.3.5.ebuild15
2 files changed, 15 insertions, 5 deletions
diff --git a/games-rpg/adonthell/ChangeLog b/games-rpg/adonthell/ChangeLog
index a1419e596de9..fe656f30bcd4 100644
--- a/games-rpg/adonthell/ChangeLog
+++ b/games-rpg/adonthell/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-rpg/adonthell
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/ChangeLog,v 1.20 2010/01/06 12:51:55 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/ChangeLog,v 1.21 2010/05/04 22:04:36 tupone Exp $
+
+ 04 May 2010; Tupone Alfredo <tupone@gentoo.org> adonthell-0.3.5.ebuild:
+ Force python2 fixing bug #312271 by arfrever@gentoo.org
06 Jan 2010; Joseph Jezak <josejx@gentoo.org> adonthell-0.3.5.ebuild:
Marked ppc stable for bug #288816.
diff --git a/games-rpg/adonthell/adonthell-0.3.5.ebuild b/games-rpg/adonthell/adonthell-0.3.5.ebuild
index 827f025d552e..78b31bfb9445 100644
--- a/games-rpg/adonthell/adonthell-0.3.5.ebuild
+++ b/games-rpg/adonthell/adonthell-0.3.5.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/adonthell-0.3.5.ebuild,v 1.4 2010/01/06 12:51:55 josejx Exp $
-
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/adonthell-0.3.5.ebuild,v 1.5 2010/05/04 22:04:36 tupone Exp $
+PYTHON_DEPEND="2"
EAPI=2
-inherit autotools eutils games
+inherit autotools eutils python games
DESCRIPTION="roleplaying game engine"
HOMEPAGE="http://adonthell.linuxgames.com/"
@@ -21,7 +21,6 @@ RDEPEND="media-libs/sdl-ttf
media-libs/freetype
media-libs/libogg
media-libs/libvorbis
- dev-lang/python
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
dev-lang/swig
@@ -33,10 +32,18 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${PN}-${PV/a/}
+pkg_setup() {
+ python_set_active_version 2
+ games_pkg_setup
+}
+
src_prepare() {
epatch \
"${FILESDIR}"/${P}-configure.in.patch \
"${FILESDIR}"/${P}-glibc-2.10.patch
+ sed -i \
+ -e "/AC_PATH_PROGS/s:python:$(PYTHON):" \
+ configure.in || die "sed failed"
rm -f ac{local,include}.m4
eautoreconf
}