commit:     0a1e8a4363f135e88b95d2f0d080e85fe878b76d
Author:     Meik Frischke <meik.frischke <AT> gmail <DOT> com>
AuthorDate: Thu Jan  2 11:47:32 2020 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Jan  2 11:49:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a1e8a43

games-engines/devilutionx: Use CharisSIL-B.ttf font

Install desktop icons and improved .desktop entry

Closes: https://bugs.gentoo.org/704508
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 games-engines/devilutionx/devilutionx-1.0.0-r1.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/games-engines/devilutionx/devilutionx-1.0.0-r1.ebuild 
b/games-engines/devilutionx/devilutionx-1.0.0-r1.ebuild
index fb3f84ae0c4..b363bc7378a 100644
--- a/games-engines/devilutionx/devilutionx-1.0.0-r1.ebuild
+++ b/games-engines/devilutionx/devilutionx-1.0.0-r1.ebuild
@@ -29,6 +29,7 @@ IUSE="debug lto"
 
 RDEPEND="
        dev-libs/libsodium
+       media-fonts/sil-charis
        media-libs/libsdl2[haptic]
        media-libs/sdl2-mixer
        media-libs/sdl2-ttf
@@ -39,7 +40,10 @@ BDEPEND="
 "
 
 src_prepare() {
-       sed "/PROJECT_VERSION/s|@PROJECT_VERSION@|${PV}|" -i 
SourceS/config.h.in || die
+       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
 }
 
@@ -57,7 +61,10 @@ 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() {

Reply via email to