public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/gemrb/
Date: Mon,  1 May 2017 16:17:32 +0000 (UTC)	[thread overview]
Message-ID: <1493655422.6855ac7b26fa7352ab7329954cabcb091d36ed56.soap@gentoo> (raw)

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	other threads:[~2017-05-01 16:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-01 16:17 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-06-01  9:13 [gentoo-commits] repo/gentoo:master commit in: games-engines/gemrb/ Agostino Sarubbo
2017-05-27 16:39 Agostino Sarubbo
2016-11-11 19:39 Austin English
2015-12-03 13:28 Agostino Sarubbo
2015-12-03 10:07 Agostino Sarubbo
2015-11-02 18:06 Michael Sterrett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493655422.6855ac7b26fa7352ab7329954cabcb091d36ed56.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox