mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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 <marecki@gentoo.org>
This commit is contained in:
56
games-engines/solarus/solarus-1.3.1-r100.ebuild
Normal file
56
games-engines/solarus/solarus-1.3.1-r100.ebuild
Normal file
@@ -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/*
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user