commit:     6d3cab3bae5ec7c84496bb9b882142297b765768
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 19 18:24:13 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov 19 18:24:46 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d3cab3b

games-strategy/hedgewars: Pass font path to build system

Bug: https://bugs.gentoo.org/637690
Package-Manager: Portage-2.3.14, Repoman-2.3.6

 games-strategy/hedgewars/hedgewars-0.9.23.ebuild | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/games-strategy/hedgewars/hedgewars-0.9.23.ebuild 
b/games-strategy/hedgewars/hedgewars-0.9.23.ebuild
index 4d270e4dde1..39c51648164 100644
--- a/games-strategy/hedgewars/hedgewars-0.9.23.ebuild
+++ b/games-strategy/hedgewars/hedgewars-0.9.23.ebuild
@@ -56,7 +56,13 @@ src_configure() {
                -DNOSERVER=TRUE
                -DCMAKE_VERBOSE_MAKEFILE=TRUE
                -DPHYSFS_SYSTEM=ON
-               # upstream sets RPATH that leafs to weird breakage
+               # Need to tell the build system where the fonts are located
+               # as it uses PhysFS' symbolic link protection mode which
+               # prevents us from symlinking the fonts into the right directory
+               #   https://hg.hedgewars.org/hedgewars/rev/76ad55807c24
+               #   
https://icculus.org/physfs/docs/html/physfs_8h.html#aad451d9b3f46f627a1be8caee2eef9b7
+               
-DFONTS_DIRS="${EPREFIX}/usr/share/fonts/wqy-zenhei;${EPREFIX}/usr/share/fonts/dejavu"
+               # upstream sets RPATH that leads to weird breakage
                # https://bugzilla.redhat.com/show_bug.cgi?id=1200193
                -DCMAKE_SKIP_RPATH=ON
        )
@@ -66,11 +72,6 @@ src_configure() {
 src_install() {
        cmake-utils_src_install
 
-       rm -f 
"${ED%/}"/usr/share/games/hedgewars/Data/Fonts/{DejaVuSans-Bold.ttf,wqy-zenhei.ttc}
 || die
-       dosym ../../../fonts/dejavu/DejaVuSans-Bold.ttf \
-               /usr/share/${PN}/Data/Fonts/DejaVuSans-Bold.ttf
-       dosym ../../../fonts/wqy-zenhei/wqy-zenhei.ttc \
-               /usr/share/${PN}/Data/Fonts/wqy-zenhei.ttc
        doicon misc/hedgewars.png
        make_desktop_entry ${PN} Hedgewars
        doman man/${PN}.6

Reply via email to