diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-11-30 00:28:35 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-11-30 00:31:16 +0100 |
commit | 1425df15e4d5c03d9218692708a0201680f04553 (patch) | |
tree | a4ce9949dd167dd07719a2cce09da909296ee26f /games-arcade/jvgs/jvgs-0.5-r100.ebuild | |
parent | x11-misc/cbatticon: update GitHub remote in metadata (diff) | |
download | gentoo-1425df15e4d5c03d9218692708a0201680f04553.tar.gz gentoo-1425df15e4d5c03d9218692708a0201680f04553.tar.bz2 gentoo-1425df15e4d5c03d9218692708a0201680f04553.zip |
games-arcade/jvgs: migrate to lua-single.eclass
There is no test phase but I have confirmed that cmake correctly finds
lua5.1 (upstream CMakeLists.txt is locked to that particular version),
that the compilation uses -I/usr/include/lua5.1 and that the linking of
the executable uses -llua5.1.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'games-arcade/jvgs/jvgs-0.5-r100.ebuild')
-rw-r--r-- | games-arcade/jvgs/jvgs-0.5-r100.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/games-arcade/jvgs/jvgs-0.5-r100.ebuild b/games-arcade/jvgs/jvgs-0.5-r100.ebuild new file mode 100644 index 000000000000..cad514054763 --- /dev/null +++ b/games-arcade/jvgs/jvgs-0.5-r100.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 ) + +inherit cmake desktop lua-single + +DESCRIPTION="An open-source platform game with a sketched and minimalistic look" +HOMEPAGE="http://jvgs.sourceforge.net/" +SRC_URI="mirror://sourceforge/jvgs/${P}-src.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="${LUA_DEPS} + media-libs/libsdl[video] + media-libs/sdl-mixer[vorbis] + media-libs/freetype:2 + sys-libs/zlib:= + virtual/opengl" +DEPEND="${RDEPEND}" +BDEPEND="dev-lang/swig" + +S=${WORKDIR}/${P}-src +PATCHES=( "${FILESDIR}"/${PN}-0.5-fix-build-system.patch ) + +src_install() { + dobin src/${PN} + + insinto /usr/share/${PN} + doins -r main.lua resources + + newicon resources/drawing.svg ${PN}.svg + make_desktop_entry ${PN} ${PN} + + einstalldocs +} |