summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-11-19 19:24:13 +0100
committerDavid Seifert <soap@gentoo.org>2017-11-19 19:24:46 +0100
commit6d3cab3bae5ec7c84496bb9b882142297b765768 (patch)
treeb60ff87e3e3f1e64d616a07ee89f90c15bc87b96 /games-strategy
parentmedia-libs/lcms: stable 2.9 for hppa/ppc/ppc64, bug #628478 (diff)
downloadgentoo-6d3cab3bae5ec7c84496bb9b882142297b765768.tar.gz
gentoo-6d3cab3bae5ec7c84496bb9b882142297b765768.tar.bz2
gentoo-6d3cab3bae5ec7c84496bb9b882142297b765768.zip
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
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/hedgewars/hedgewars-0.9.23.ebuild13
1 files 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 4d270e4dde16..39c51648164e 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