Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/solarus/, profiles/
Date: Mon, 30 Nov 2020 18:32:22
Message-Id: 1606761124.e1e7819e118d0c4ea95de4d5d03e7b298102b37c.marecki@gentoo
1 commit: e1e7819e118d0c4ea95de4d5d03e7b298102b37c
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 17:50:12 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 18:32:04 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1e7819e
7
8 games-engines/solarus: migrate to lua-single.eclass
9
10 Simple enough. upstream build scripts explicitly support only LuaJIT and
11 Lua5.1.
12
13 Closes: https://bugs.gentoo.org/752687
14 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
15
16 games-engines/solarus/solarus-1.3.1-r100.ebuild | 56 +++++++++++++++++++++++++
17 profiles/package.mask | 1 +
18 2 files changed, 57 insertions(+)
19
20 diff --git a/games-engines/solarus/solarus-1.3.1-r100.ebuild b/games-engines/solarus/solarus-1.3.1-r100.ebuild
21 new file mode 100644
22 index 00000000000..7d865fec410
23 --- /dev/null
24 +++ b/games-engines/solarus/solarus-1.3.1-r100.ebuild
25 @@ -0,0 +1,56 @@
26 +# Copyright 1999-2020 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +LUA_COMPAT=( lua5-1 luajit )
32 +
33 +inherit cmake lua-single
34 +
35 +DESCRIPTION="An open-source Zelda-like 2D game engine"
36 +HOMEPAGE="https://www.solarus-games.org/"
37 +SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}-src.tar.gz"
38 +
39 +LICENSE="GPL-3"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="doc"
43 +
44 +REQUIRED_USE="${LUA_REQUIRED_USE}"
45 +
46 +RDEPEND="${LUA_DEPS}
47 + dev-games/physfs
48 + media-libs/libmodplug
49 + >=media-libs/libsdl2-2.0.1[X,joystick,video]
50 + media-libs/libvorbis
51 + media-libs/openal
52 + media-libs/sdl2-image[png]
53 + >=media-libs/sdl2-ttf-2.0.12"
54 +DEPEND="${RDEPEND}"
55 +BDEPEND="doc? ( app-doc/doxygen )"
56 +
57 +src_prepare() {
58 + cmake_src_prepare
59 +}
60 +
61 +src_configure() {
62 + local mycmakeargs=(
63 + -DSOLARUS_INSTALL_DESTINATION="/usr/bin"
64 + -DSOLARUS_USE_LUAJIT="$(usex lua_single_target_luajit)"
65 + )
66 + cmake_src_configure
67 +}
68 +
69 +src_compile() {
70 + cmake_src_compile
71 + if use doc ; then
72 + cd doc || die
73 + doxygen || die
74 + fi
75 +}
76 +
77 +src_install() {
78 + cmake_src_install
79 + doman solarus.6
80 + use doc && dodoc -r doc/${PV%.*}/html/*
81 +}
82
83 diff --git a/profiles/package.mask b/profiles/package.mask
84 index 2d571ee47da..8aa2d3de29b 100644
85 --- a/profiles/package.mask
86 +++ b/profiles/package.mask
87 @@ -561,6 +561,7 @@ dev-lua/luacrypto
88 >=games-engines/love-0.7.2-r100:0.7
89 >=games-engines/love-0.8.0-r100:0.8
90 >=games-engines/love-11.3-r100:0
91 +>=games-engines/solarus-1.3.1-r100
92 >=games-roguelike/stone-soup-0.25.1-r100
93 >=mail-filter/imapfilter-2.6.16-r100
94 >=media-gfx/geeqie-1.5.1-r1