games-fps/doomsday: Switch to python-any-r1 and allow Python 3
authorJames Le Cuirot <chewi@gentoo.org>
Sat, 4 May 2019 08:38:41 +0000 (09:38 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Sat, 4 May 2019 09:13:56 +0000 (10:13 +0100)
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
games-fps/doomsday/doomsday-2.1.1.ebuild

index def51c66cb8e7b14c4dd305f22f2ab07cf3be486..31b010dcafaf51a88a156fb54a28774b988cc5d0 100644 (file)
@@ -3,20 +3,17 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python2_7 python3_{6,7} )
 
-inherit cmake-utils python-r1 readme.gentoo-r1
+inherit cmake-utils python-any-r1 readme.gentoo-r1
 
 DESCRIPTION="A modern gaming engine for Doom, Heretic, and Hexen"
 HOMEPAGE="https://www.dengine.net"
 SRC_URI="https://downloads.sourceforge.net/project/deng/Doomsday%20Engine/${PV}/${P}.tar.gz"
-
 LICENSE="GPL-3+ LGPL-3+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-
 IUSE="demo fmod freedoom fluidsynth openal tools"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="
        dev-qt/qtcore:5=
@@ -62,7 +59,7 @@ src_prepare() {
        sed -e "10s:/texc:/${PF}:" -i tools/texc/CMakeLists.txt || die
 }
 
-internal_src_configure() {
+src_configure() {
        export QT_SELECT=qt5
        local mycmakeargs=(
                -DDENG_ASSIMP_EMBEDDED="OFF"
@@ -72,10 +69,6 @@ internal_src_configure() {
        cmake-utils_src_configure
 }
 
-src_configure() {
-       python_foreach_impl internal_src_configure
-}
-
 src_install() {
        cmake-utils_src_install