commit:     6855ac7b26fa7352ab7329954cabcb091d36ed56
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon May  1 15:39:32 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon May  1 16:17:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6855ac7b

games-engines/gemrb: [QA] Remove WANT_CMAKE

* Other misc python fixes
Bug: https://bugs.gentoo.org/show_bug.cgi?id=616064
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4528

 games-engines/gemrb/gemrb-0.8.3-r1.ebuild | 52 ++++++++++++++-----------------
 games-engines/gemrb/gemrb-0.8.3.ebuild    |  7 +++--
 2 files changed, 28 insertions(+), 31 deletions(-)

diff --git a/games-engines/gemrb/gemrb-0.8.3-r1.ebuild 
b/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
index ef446bfd850..6ec09ffb527 100644
--- a/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
+++ b/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
@@ -1,10 +1,11 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
+
 PYTHON_COMPAT=( python2_7 )
-WANT_CMAKE=always
-inherit eutils python-any-r1 cmake-utils gnome2-utils
+
+inherit eutils gnome2-utils python-single-r1 cmake-utils
 
 DESCRIPTION="Reimplementation of the Infinity engine"
 HOMEPAGE="http://gemrb.sourceforge.net/";
@@ -14,9 +15,11 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
-RDEPEND="media-libs/freetype
-       media-libs/libpng:0
+RDEPEND="
+       media-libs/freetype
+       media-libs/libpng:0=
        >=media-libs/libsdl-1.2[video]
        media-libs/libvorbis
        media-libs/openal
@@ -26,12 +29,8 @@ RDEPEND="media-libs/freetype
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
-pkg_setup() {
-       python-any-r1_pkg_setup
-}
-
 src_prepare() {
-       default
+       cmake-utils_src_prepare
 
        sed -i \
                -e '/COPYING/d' \
@@ -39,28 +38,25 @@ src_prepare() {
 }
 
 src_configure() {
-       mycmakeargs=(
-               -DBIN_DIR="/usr/bin"
-               -DCMAKE_INSTALL_PREFIX="/usr"
-               -DDATA_DIR="/usr/share/gemrb"
-               -DDOC_DIR="/usr/share/doc/${PF}"
-               -DICON_DIR=/usr/share/pixmaps
-               -DLIB_DIR="/usr/$(get_libdir)"
-               -DMAN_DIR=/usr/share/man/man6
-               -DMENU_DIR=/usr/share/applications
-               -DSVG_DIR=/usr/share/icons/hicolor/scalable/apps
-               -DSYSCONF_DIR="/etc/${PN}"
-               )
+       local mycmakeargs=(
+               -DBIN_DIR=bin
+               -DDATA_DIR=share/gemrb
+               -DDOC_DIR=share/doc/${PF}
+               -DICON_DIR=share/pixmaps
+               -DLIB_DIR=$(get_libdir)
+               -DMAN_DIR=share/man/man6
+               -DMENU_DIR=share/applications
+               -DSVG_DIR=share/icons/hicolor/scalable/apps
+               -DSYSCONF_DIR=/etc/${PN}
+               # needed, causes massive QA warnings otherwise
+               -DCMAKE_SKIP_RPATH=ON
+       )
        cmake-utils_src_configure
 }
 
-src_compile() {
-       cmake-utils_src_compile
-}
-
 src_install() {
-       DOCS="README NEWS AUTHORS" \
-               cmake-utils_src_install
+       cmake-utils_src_install
+       python_fix_shebang "${ED%/}"/usr/bin/extend2da.py
 }
 
 pkg_preinst() {

diff --git a/games-engines/gemrb/gemrb-0.8.3.ebuild 
b/games-engines/gemrb/gemrb-0.8.3.ebuild
index 6fbd80936e1..b7ba53323a6 100644
--- a/games-engines/gemrb/gemrb-0.8.3.ebuild
+++ b/games-engines/gemrb/gemrb-0.8.3.ebuild
@@ -1,9 +1,10 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
+
 PYTHON_COMPAT=( python2_7 )
-WANT_CMAKE=always
+
 inherit eutils python-any-r1 cmake-utils gnome2-utils games
 
 DESCRIPTION="Reimplementation of the Infinity engine"
@@ -38,7 +39,7 @@ src_prepare() {
 }
 
 src_configure() {
-       mycmakeargs=(
+       local mycmakeargs=(
                -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
                -DBIN_DIR="${GAMES_BINDIR}"
                -DDATA_DIR="${GAMES_DATADIR}/gemrb"

Reply via email to