From 54be0f79213bfbb565e2c52e519d067aa243dba8 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Tue, 22 Jun 2021 23:11:15 -0400 Subject: [PATCH] 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 --- ...iar-0.5.1.ebuild => epiar-0.5.1-r1.ebuild} | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) rename games-arcade/epiar/{epiar-0.5.1.ebuild => epiar-0.5.1-r1.ebuild} (63%) diff --git a/games-arcade/epiar/epiar-0.5.1.ebuild b/games-arcade/epiar/epiar-0.5.1-r1.ebuild similarity index 63% rename from games-arcade/epiar/epiar-0.5.1.ebuild rename to games-arcade/epiar/epiar-0.5.1-r1.ebuild index 83ff1fd13f13b..ba4c0b862a2c2 100644 --- a/games-arcade/epiar/epiar-0.5.1.ebuild +++ b/games-arcade/epiar/epiar-0.5.1-r1.ebuild @@ -6,34 +6,26 @@ EAPI=7 LUA_COMPAT=( lua5-1 ) inherit autotools lua-single -DESCRIPTION="A space adventure/combat game" +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[video] + media-libs/libsdl[opengl,sound,video] media-libs/sdl-image[png] - media-libs/sdl-mixer - ${LUA_DEPS} -" -DEPEND=" - ${RDEPEND} - x11-libs/libX11 - virtual/opengl -" -BDEPEND=" - app-arch/unzip - virtual/pkgconfig -" + media-libs/sdl-mixer[vorbis] + virtual/opengl" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}"/${PN}-0.5.1-unbundle-lua5.1.patch @@ -44,7 +36,15 @@ src_prepare() { default # Remove bundled Lua 5.1 - rm -rf source/lua || die + 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 +}