1 |
commit: 6d3cab3bae5ec7c84496bb9b882142297b765768 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 19 18:24:13 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 19 18:24:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d3cab3b |
7 |
|
8 |
games-strategy/hedgewars: Pass font path to build system |
9 |
|
10 |
Bug: https://bugs.gentoo.org/637690 |
11 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
12 |
|
13 |
games-strategy/hedgewars/hedgewars-0.9.23.ebuild | 13 +++++++------ |
14 |
1 file changed, 7 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/games-strategy/hedgewars/hedgewars-0.9.23.ebuild b/games-strategy/hedgewars/hedgewars-0.9.23.ebuild |
17 |
index 4d270e4dde1..39c51648164 100644 |
18 |
--- a/games-strategy/hedgewars/hedgewars-0.9.23.ebuild |
19 |
+++ b/games-strategy/hedgewars/hedgewars-0.9.23.ebuild |
20 |
@@ -56,7 +56,13 @@ src_configure() { |
21 |
-DNOSERVER=TRUE |
22 |
-DCMAKE_VERBOSE_MAKEFILE=TRUE |
23 |
-DPHYSFS_SYSTEM=ON |
24 |
- # upstream sets RPATH that leafs to weird breakage |
25 |
+ # Need to tell the build system where the fonts are located |
26 |
+ # as it uses PhysFS' symbolic link protection mode which |
27 |
+ # prevents us from symlinking the fonts into the right directory |
28 |
+ # https://hg.hedgewars.org/hedgewars/rev/76ad55807c24 |
29 |
+ # https://icculus.org/physfs/docs/html/physfs_8h.html#aad451d9b3f46f627a1be8caee2eef9b7 |
30 |
+ -DFONTS_DIRS="${EPREFIX}/usr/share/fonts/wqy-zenhei;${EPREFIX}/usr/share/fonts/dejavu" |
31 |
+ # upstream sets RPATH that leads to weird breakage |
32 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1200193 |
33 |
-DCMAKE_SKIP_RPATH=ON |
34 |
) |
35 |
@@ -66,11 +72,6 @@ src_configure() { |
36 |
src_install() { |
37 |
cmake-utils_src_install |
38 |
|
39 |
- rm -f "${ED%/}"/usr/share/games/hedgewars/Data/Fonts/{DejaVuSans-Bold.ttf,wqy-zenhei.ttc} || die |
40 |
- dosym ../../../fonts/dejavu/DejaVuSans-Bold.ttf \ |
41 |
- /usr/share/${PN}/Data/Fonts/DejaVuSans-Bold.ttf |
42 |
- dosym ../../../fonts/wqy-zenhei/wqy-zenhei.ttc \ |
43 |
- /usr/share/${PN}/Data/Fonts/wqy-zenhei.ttc |
44 |
doicon misc/hedgewars.png |
45 |
make_desktop_entry ${PN} Hedgewars |
46 |
doman man/${PN}.6 |