diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-06-22 23:11:15 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-06-22 23:29:23 -0400 |
commit | 54be0f79213bfbb565e2c52e519d067aa243dba8 (patch) | |
tree | 5c6ba201cd1c919118c70f98ec5335c02b383c7a /games-arcade/epiar/epiar-0.5.1-r1.ebuild | |
parent | gui-libs/egl-wayland: drop 1.1.6 (diff) | |
download | gentoo-54be0f79213bfbb565e2c52e519d067aa243dba8.tar.gz gentoo-54be0f79213bfbb565e2c52e519d067aa243dba8.tar.bz2 gentoo-54be0f79213bfbb565e2c52e519d067aa243dba8.zip |
games-arcade/epiar: fix startup, update deps
Unsure when this last worked, but it tries to load a missing
font path and either fails on assert failure or segfaults if
-DNDEBUG.
For now just install the font.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-arcade/epiar/epiar-0.5.1-r1.ebuild')
-rw-r--r-- | games-arcade/epiar/epiar-0.5.1-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/games-arcade/epiar/epiar-0.5.1-r1.ebuild b/games-arcade/epiar/epiar-0.5.1-r1.ebuild new file mode 100644 index 000000000000..ba4c0b862a2c --- /dev/null +++ b/games-arcade/epiar/epiar-0.5.1-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 ) +inherit autotools lua-single + +DESCRIPTION="Space adventure/combat game" +HOMEPAGE="https://epiar.net/" +SRC_URI="https://github.com/cthielen/Epiar/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND=" + ${LUA_DEPS} + dev-games/physfs + dev-libs/libxml2 + media-libs/ftgl + media-libs/libsdl[opengl,sound,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + virtual/opengl" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.1-unbundle-lua5.1.patch + "${FILESDIR}"/${PN}-0.5.1-fix-bashisms.patch +) + +src_prepare() { + default + + # Remove bundled Lua 5.1 + rm -r source/lua || die + + eautoreconf +} + +src_install() { + default + + # Game fails to start without this otherwise missing font. + insinto /usr/share/epiar/resources/Fonts + doins resources/Fonts/FreeSansBold.ttf +} |