1 |
commit: 14ca01dbeba3097beef76581824497c27998d1ab |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 3 20:21:31 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 3 20:24:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14ca01db |
7 |
|
8 |
games-strategy/widelands: [QA] Remove PREFIX setting for CMake |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
games-strategy/widelands/widelands-0.18-r1.ebuild | 42 +++++++++++------------ |
13 |
1 file changed, 21 insertions(+), 21 deletions(-) |
14 |
|
15 |
diff --git a/games-strategy/widelands/widelands-0.18-r1.ebuild b/games-strategy/widelands/widelands-0.18-r1.ebuild |
16 |
index 8b1942ab2fe..68633a78a37 100644 |
17 |
--- a/games-strategy/widelands/widelands-0.18-r1.ebuild |
18 |
+++ b/games-strategy/widelands/widelands-0.18-r1.ebuild |
19 |
@@ -1,11 +1,13 @@ |
20 |
-# Copyright 1999-2016 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=6 |
25 |
+ |
26 |
inherit eutils versionator cmake-utils |
27 |
|
28 |
MY_PV=build$(get_version_component_range 2) |
29 |
MY_P=${PN}-${MY_PV}-src |
30 |
+ |
31 |
DESCRIPTION="A game similar to Settlers 2" |
32 |
HOMEPAGE="http://www.widelands.org/" |
33 |
SRC_URI="https://launchpad.net/widelands/${MY_PV}/build-$(get_version_component_range 2)/+download/${MY_P}.tar.bz2" |
34 |
@@ -15,10 +17,11 @@ SLOT="0" |
35 |
KEYWORDS="~amd64 ~ppc ~x86" |
36 |
IUSE="" |
37 |
|
38 |
-DEPEND="dev-lang/lua:0 |
39 |
- >=dev-libs/boost-1.48 |
40 |
- media-libs/glew |
41 |
- media-libs/libpng:0 |
42 |
+RDEPEND=" |
43 |
+ dev-lang/lua:0 |
44 |
+ >=dev-libs/boost-1.48:= |
45 |
+ media-libs/glew:0= |
46 |
+ media-libs/libpng:0= |
47 |
media-libs/libsdl[video] |
48 |
media-libs/sdl-gfx |
49 |
media-libs/sdl-image[jpeg,png] |
50 |
@@ -26,21 +29,18 @@ DEPEND="dev-lang/lua:0 |
51 |
media-libs/sdl-net |
52 |
media-libs/sdl-ttf |
53 |
sys-libs/zlib[minizip]" |
54 |
-RDEPEND="${DEPEND}" |
55 |
+DEPEND="${RDEPEND}" |
56 |
|
57 |
S=${WORKDIR}/${MY_P} |
58 |
|
59 |
CMAKE_BUILD_TYPE=Release |
60 |
|
61 |
-# Game is NOT happy being moved from /usr/share/games |
62 |
-PREFIX="/usr/share/games/${PN}" |
63 |
- |
64 |
PATCHES=( |
65 |
"${FILESDIR}"/${P}-cxxflags.patch |
66 |
) |
67 |
|
68 |
src_prepare() { |
69 |
- default |
70 |
+ cmake-utils_src_prepare |
71 |
|
72 |
sed -i -e 's:__ppc__:__PPC__:' src/s2map.cc || die |
73 |
sed -i -e '/WL_VERSION_MINOR/s/17/18/' CMakeLists.txt || die |
74 |
@@ -48,22 +48,22 @@ src_prepare() { |
75 |
|
76 |
src_configure() { |
77 |
local mycmakeargs=( |
78 |
- '-DWL_VERSION_STANDARD=true' |
79 |
- "-DWL_INSTALL_PREFIX=/usr/games" |
80 |
- "-DWL_INSTALL_DATADIR=/usr/share/games/${PN}" |
81 |
- "-DWL_INSTALL_LOCALEDIR=/usr/share/games/${PN}/locale" |
82 |
- "-DWL_INSTALL_BINDIR=/usr/bin" |
83 |
+ -DWL_VERSION_STANDARD=true |
84 |
+ |
85 |
+ # Game is NOT happy being moved from /usr/share/games |
86 |
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr/share/games/${PN} |
87 |
+ |
88 |
+ -DWL_INSTALL_PREFIX="${EPREFIX}"/usr/games |
89 |
+ -DWL_INSTALL_DATADIR="${EPREFIX}"/usr/share/games/${PN} |
90 |
+ -DWL_INSTALL_LOCALEDIR="${EPREFIX}"/usr/share/games/${PN}/locale |
91 |
+ -DWL_INSTALL_BINDIR="${EPREFIX}"/usr/bin |
92 |
) |
93 |
cmake-utils_src_configure |
94 |
} |
95 |
|
96 |
-src_compile() { |
97 |
- cmake-utils_src_compile |
98 |
-} |
99 |
- |
100 |
src_install() { |
101 |
cmake-utils_src_install |
102 |
+ |
103 |
newicon pics/wl-ico-128.png ${PN}.png |
104 |
- make_desktop_entry ${PN} Widelands |
105 |
- dodoc ChangeLog CREDITS |
106 |
+ make_desktop_entry ${PN} ${PN^} |
107 |
} |