From d032b5ba37c8c6de3dc0496e92ab64565e1252b4 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Thu, 2 Jan 2020 12:48:57 +0100 Subject: [PATCH] games-engines/devilutionx: Synced live ebuild Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Lars Wendler --- .../devilutionx/devilutionx-9999.ebuild | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/games-engines/devilutionx/devilutionx-9999.ebuild b/games-engines/devilutionx/devilutionx-9999.ebuild index 6d3bda7a2fb8f..b363bc7378acf 100644 --- a/games-engines/devilutionx/devilutionx-9999.ebuild +++ b/games-engines/devilutionx/devilutionx-9999.ebuild @@ -25,10 +25,11 @@ fi LICENSE="public-domain" SLOT="0" -IUSE="debug" +IUSE="debug lto" RDEPEND=" dev-libs/libsodium + media-fonts/sil-charis media-libs/libsdl2[haptic] media-libs/sdl2-mixer media-libs/sdl2-ttf @@ -38,17 +39,32 @@ BDEPEND=" virtual/pkgconfig " +src_prepare() { + sed "/PROJECT_VERSION/s|@PROJECT_VERSION@|${PV}|" \ + -i SourceS/config.h.in || die + sed 's/CharisSILB.ttf/CharisSIL-B.ttf/g' \ + -i SourceX/DiabloUI/fonts.h || die + cmake_src_prepare +} + src_configure() { local mycmakeargs=( - -DBINARY_RELEASE=ON + -DASAN="OFF" -DDEBUG="$(usex debug)" + -DDIST="ON" + -DFASTER="OFF" + -DLTO="$(usex lto)" + -DUBSAN="OFF" ) cmake_src_configure } src_install() { dobin "${BUILD_DIR}/${PN}" - make_desktop_entry ${PN} "Diablo devolved" + + newicon -s 32 Packaging/resources/Diablo_32.png ${PN}.png + newicon -s 48 Packaging/resources/Diablo_48.png ${PN}.png + make_desktop_entry ${PN} "Diablo devolved" "/usr/share/icons/hicolor/48x48/apps/devilutionx.png" } pkg_postinst() {