Force python2 fixing bug #312289
authorAlfredo Tupone <tupone@gentoo.org>
Wed, 5 May 2010 05:27:23 +0000 (05:27 +0000)
committerAlfredo Tupone <tupone@gentoo.org>
Wed, 5 May 2010 05:27:23 +0000 (05:27 +0000)
Package-Manager: portage-2.1.8.3/cvs/Linux i686

games-util/mattricks/ChangeLog
games-util/mattricks/mattricks-0.7.ebuild

index 8ebccf9dd1ff99f3217fae813962023214c519f0..ccc0360545a9a85d9c2d1dfe595007ea9095c7d3 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for games-util/mattricks
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-util/mattricks/ChangeLog,v 1.9 2007/12/07 00:04:32 dirtyepic Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/mattricks/ChangeLog,v 1.10 2010/05/05 05:27:23 tupone Exp $
+
+  05 May 2010; Tupone Alfredo <tupone@gentoo.org> mattricks-0.7.ebuild:
+  Force python2 fixing bug #312289 by arfrever@gentoo.org
 
   07 Dec 2007; Ryan Hill <dirtyepic@gentoo.org>
   +files/mattricks-0.7-wxversion.patch, mattricks-0.7.ebuild:
index 4356bc5a1cf65fcb29ff01268c29fd89ebd8c713..0b8875b97406b4903c10808fc59cf6b27376c01d 100644 (file)
@@ -1,8 +1,9 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-util/mattricks/mattricks-0.7.ebuild,v 1.5 2007/12/07 00:04:32 dirtyepic Exp $
-
-inherit distutils eutils
+# $Header: /var/cvsroot/gentoo-x86/games-util/mattricks/mattricks-0.7.ebuild,v 1.6 2010/05/05 05:27:23 tupone Exp $
+EAPI="2"
+PYTHON_DEPEND="2"
+inherit eutils python distutils
 
 MY_P=${P/m/M}
 DESCRIPTION="Hattrick Manager"
@@ -19,7 +20,12 @@ DEPEND="<dev-python/wxpython-2.8
 
 S=${WORKDIR}/${MY_P}
 
-src_unpack() {
-       distutils_src_unpack
+pkg_setup() {
+       python_set_active_version 2
+}
+
+src_prepare() {
+       distutils_src_prepare
        epatch "${FILESDIR}"/${P}-wxversion.patch
+       python_convert_shebangs -r 2 .
 }