Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/solarus/
Date: Fri, 28 Oct 2016 17:35:29
Message-Id: 1477676110.92ded880b93a3185302787da265a65ae318124e9.wizardedit@gentoo
1 commit: 92ded880b93a3185302787da265a65ae318124e9
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 28 17:30:11 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 28 17:35:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92ded880
7
8 games-engines/solarus: 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.2
15
16 games-engines/solarus/solarus-1.3.1-r1.ebuild | 55 +++++++++++++++++++++++++++
17 1 file changed, 55 insertions(+)
18
19 diff --git a/games-engines/solarus/solarus-1.3.1-r1.ebuild b/games-engines/solarus/solarus-1.3.1-r1.ebuild
20 new file mode 100644
21 index 00000000..e06034c
22 --- /dev/null
23 +++ b/games-engines/solarus/solarus-1.3.1-r1.ebuild
24 @@ -0,0 +1,55 @@
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 +
31 +inherit cmake-utils
32 +
33 +DESCRIPTION="An open-source Zelda-like 2D game engine"
34 +HOMEPAGE="http://www.solarus-games.org/"
35 +SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}-src.tar.gz"
36 +
37 +LICENSE="GPL-3"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +IUSE="doc luajit"
41 +
42 +RDEPEND="
43 + dev-games/physfs
44 + media-libs/libmodplug
45 + >=media-libs/libsdl2-2.0.1[X,joystick,video]
46 + media-libs/libvorbis
47 + media-libs/openal
48 + media-libs/sdl2-image[png]
49 + >=media-libs/sdl2-ttf-2.0.12
50 + luajit? ( dev-lang/luajit:2 )
51 + !luajit? ( dev-lang/lua:0 )"
52 +DEPEND="${RDEPEND}
53 + doc? ( app-doc/doxygen )"
54 +
55 +src_prepare() {
56 + cmake-utils_src_prepare
57 +}
58 +
59 +src_configure() {
60 + local mycmakeargs=(
61 + -DSOLARUS_INSTALL_DESTINATION="/usr/bin"
62 + -DSOLARUS_USE_LUAJIT="$(usex luajit)"
63 + )
64 + cmake-utils_src_configure
65 +}
66 +
67 +src_compile() {
68 + cmake-utils_src_compile
69 + if use doc ; then
70 + cd doc || die
71 + doxygen || die
72 + fi
73 +}
74 +
75 +src_install() {
76 + cmake-utils_src_install
77 + doman solarus.6
78 + use doc && dodoc -r doc/${PV%.*}/html/*
79 +}