Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/gemrb/
Date: Mon, 01 May 2017 16:17:36
Message-Id: 1493655422.6855ac7b26fa7352ab7329954cabcb091d36ed56.soap@gentoo
1 commit: 6855ac7b26fa7352ab7329954cabcb091d36ed56
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 1 15:39:32 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon May 1 16:17:02 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6855ac7b
7
8 games-engines/gemrb: [QA] Remove WANT_CMAKE
9
10 * Other misc python fixes
11 Bug: https://bugs.gentoo.org/show_bug.cgi?id=616064
12 Package-Manager: Portage-2.3.5, Repoman-2.3.2
13 Closes: https://github.com/gentoo/gentoo/pull/4528
14
15 games-engines/gemrb/gemrb-0.8.3-r1.ebuild | 52 ++++++++++++++-----------------
16 games-engines/gemrb/gemrb-0.8.3.ebuild | 7 +++--
17 2 files changed, 28 insertions(+), 31 deletions(-)
18
19 diff --git a/games-engines/gemrb/gemrb-0.8.3-r1.ebuild b/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
20 index ef446bfd850..6ec09ffb527 100644
21 --- a/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
22 +++ b/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
23 @@ -1,10 +1,11 @@
24 -# Copyright 1999-2016 Gentoo Foundation
25 +# Copyright 1999-2017 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=6
29 +
30 PYTHON_COMPAT=( python2_7 )
31 -WANT_CMAKE=always
32 -inherit eutils python-any-r1 cmake-utils gnome2-utils
33 +
34 +inherit eutils gnome2-utils python-single-r1 cmake-utils
35
36 DESCRIPTION="Reimplementation of the Infinity engine"
37 HOMEPAGE="http://gemrb.sourceforge.net/"
38 @@ -14,9 +15,11 @@ LICENSE="GPL-2"
39 SLOT="0"
40 KEYWORDS="~amd64 ~x86"
41 IUSE=""
42 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
43
44 -RDEPEND="media-libs/freetype
45 - media-libs/libpng:0
46 +RDEPEND="
47 + media-libs/freetype
48 + media-libs/libpng:0=
49 >=media-libs/libsdl-1.2[video]
50 media-libs/libvorbis
51 media-libs/openal
52 @@ -26,12 +29,8 @@ RDEPEND="media-libs/freetype
53 DEPEND="${RDEPEND}
54 virtual/pkgconfig"
55
56 -pkg_setup() {
57 - python-any-r1_pkg_setup
58 -}
59 -
60 src_prepare() {
61 - default
62 + cmake-utils_src_prepare
63
64 sed -i \
65 -e '/COPYING/d' \
66 @@ -39,28 +38,25 @@ src_prepare() {
67 }
68
69 src_configure() {
70 - mycmakeargs=(
71 - -DBIN_DIR="/usr/bin"
72 - -DCMAKE_INSTALL_PREFIX="/usr"
73 - -DDATA_DIR="/usr/share/gemrb"
74 - -DDOC_DIR="/usr/share/doc/${PF}"
75 - -DICON_DIR=/usr/share/pixmaps
76 - -DLIB_DIR="/usr/$(get_libdir)"
77 - -DMAN_DIR=/usr/share/man/man6
78 - -DMENU_DIR=/usr/share/applications
79 - -DSVG_DIR=/usr/share/icons/hicolor/scalable/apps
80 - -DSYSCONF_DIR="/etc/${PN}"
81 - )
82 + local mycmakeargs=(
83 + -DBIN_DIR=bin
84 + -DDATA_DIR=share/gemrb
85 + -DDOC_DIR=share/doc/${PF}
86 + -DICON_DIR=share/pixmaps
87 + -DLIB_DIR=$(get_libdir)
88 + -DMAN_DIR=share/man/man6
89 + -DMENU_DIR=share/applications
90 + -DSVG_DIR=share/icons/hicolor/scalable/apps
91 + -DSYSCONF_DIR=/etc/${PN}
92 + # needed, causes massive QA warnings otherwise
93 + -DCMAKE_SKIP_RPATH=ON
94 + )
95 cmake-utils_src_configure
96 }
97
98 -src_compile() {
99 - cmake-utils_src_compile
100 -}
101 -
102 src_install() {
103 - DOCS="README NEWS AUTHORS" \
104 - cmake-utils_src_install
105 + cmake-utils_src_install
106 + python_fix_shebang "${ED%/}"/usr/bin/extend2da.py
107 }
108
109 pkg_preinst() {
110
111 diff --git a/games-engines/gemrb/gemrb-0.8.3.ebuild b/games-engines/gemrb/gemrb-0.8.3.ebuild
112 index 6fbd80936e1..b7ba53323a6 100644
113 --- a/games-engines/gemrb/gemrb-0.8.3.ebuild
114 +++ b/games-engines/gemrb/gemrb-0.8.3.ebuild
115 @@ -1,9 +1,10 @@
116 -# Copyright 1999-2015 Gentoo Foundation
117 +# Copyright 1999-2017 Gentoo Foundation
118 # Distributed under the terms of the GNU General Public License v2
119
120 EAPI=5
121 +
122 PYTHON_COMPAT=( python2_7 )
123 -WANT_CMAKE=always
124 +
125 inherit eutils python-any-r1 cmake-utils gnome2-utils games
126
127 DESCRIPTION="Reimplementation of the Infinity engine"
128 @@ -38,7 +39,7 @@ src_prepare() {
129 }
130
131 src_configure() {
132 - mycmakeargs=(
133 + local mycmakeargs=(
134 -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
135 -DBIN_DIR="${GAMES_BINDIR}"
136 -DDATA_DIR="${GAMES_DATADIR}/gemrb"