commit: e1e7819e118d0c4ea95de4d5d03e7b298102b37c
Author: Marek Szuba gentoo org>
AuthorDate: Mon Nov 30 17:50:12 2020 +
Commit: Marek Szuba gentoo org>
CommitDate: Mon Nov 30 18:32:04 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1e7819e
games-engines/solarus: migrate to lua-single.eclass
Simple enough. upstream build scripts explicitly support only LuaJIT and
Lua5.1.
Closes: https://bugs.gentoo.org/752687
Signed-off-by: Marek Szuba gentoo.org>
games-engines/solarus/solarus-1.3.1-r100.ebuild | 56 +
profiles/package.mask | 1 +
2 files changed, 57 insertions(+)
diff --git a/games-engines/solarus/solarus-1.3.1-r100.ebuild
b/games-engines/solarus/solarus-1.3.1-r100.ebuild
new file mode 100644
index 000..7d865fec410
--- /dev/null
+++ b/games-engines/solarus/solarus-1.3.1-r100.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-1 luajit )
+
+inherit cmake lua-single
+
+DESCRIPTION="An open-source Zelda-like 2D game engine"
+HOMEPAGE="https://www.solarus-games.org/;
+SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}-src.tar.gz;
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="${LUA_DEPS}
+ dev-games/physfs
+ media-libs/libmodplug
+ >=media-libs/libsdl2-2.0.1[X,joystick,video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl2-image[png]
+ >=media-libs/sdl2-ttf-2.0.12"
+DEPEND="${RDEPEND}"
+BDEPEND="doc? ( app-doc/doxygen )"
+
+src_prepare() {
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSOLARUS_INSTALL_DESTINATION="/usr/bin"
+ -DSOLARUS_USE_LUAJIT="$(usex lua_single_target_luajit)"
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ if use doc ; then
+ cd doc || die
+ doxygen || die
+ fi
+}
+
+src_install() {
+ cmake_src_install
+ doman solarus.6
+ use doc && dodoc -r doc/${PV%.*}/html/*
+}
diff --git a/profiles/package.mask b/profiles/package.mask
index 2d571ee47da..8aa2d3de29b 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -561,6 +561,7 @@ dev-lua/luacrypto
>=games-engines/love-0.7.2-r100:0.7
>=games-engines/love-0.8.0-r100:0.8
>=games-engines/love-11.3-r100:0
+>=games-engines/solarus-1.3.1-r100
>=games-roguelike/stone-soup-0.25.1-r100
>=mail-filter/imapfilter-2.6.16-r100
>=media-gfx/geeqie-1.5.1-r1