diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2020-01-02 12:48:57 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2020-01-02 12:49:09 +0100 |
commit | d032b5ba37c8c6de3dc0496e92ab64565e1252b4 (patch) | |
tree | 493a37f9b232f2de7a132cbe0190534a8e1373fd /games-engines/devilutionx | |
parent | games-engines/devilutionx: Use CharisSIL-B.ttf font (diff) | |
download | gentoo-d032b5ba37c8c6de3dc0496e92ab64565e1252b4.tar.gz gentoo-d032b5ba37c8c6de3dc0496e92ab64565e1252b4.tar.bz2 gentoo-d032b5ba37c8c6de3dc0496e92ab64565e1252b4.zip |
games-engines/devilutionx: Synced live ebuild
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'games-engines/devilutionx')
-rw-r--r-- | games-engines/devilutionx/devilutionx-9999.ebuild | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/games-engines/devilutionx/devilutionx-9999.ebuild b/games-engines/devilutionx/devilutionx-9999.ebuild index 6d3bda7a2fb8..b363bc7378ac 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() { |