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