1 |
commit: 4e3c1d7c6209e4b36fb34ee9c72d8d34a456ae8a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 31 16:05:39 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 31 16:05:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e3c1d7c |
7 |
|
8 |
games-engines/devilutionx: New bundled font patch for live ebuild |
9 |
|
10 |
Closes: https://bugs.gentoo.org/779547 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
games-engines/devilutionx/devilutionx-9999.ebuild | 2 +- |
14 |
.../devilutionx-1.2.0_pre-no_bundled_font.patch | 40 ++++++++++++++++++++++ |
15 |
2 files changed, 41 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/games-engines/devilutionx/devilutionx-9999.ebuild b/games-engines/devilutionx/devilutionx-9999.ebuild |
18 |
index 3c50e3ab9fb..70c9bb47460 100644 |
19 |
--- a/games-engines/devilutionx/devilutionx-9999.ebuild |
20 |
+++ b/games-engines/devilutionx/devilutionx-9999.ebuild |
21 |
@@ -40,7 +40,7 @@ BDEPEND=" |
22 |
" |
23 |
|
24 |
PATCHES=( |
25 |
- "${FILESDIR}/${PN}-1.1.0-no_bundled_font.patch" #704508 |
26 |
+ "${FILESDIR}/${PN}-1.2.0_pre-no_bundled_font.patch" #704508 |
27 |
) |
28 |
|
29 |
src_configure() { |
30 |
|
31 |
diff --git a/games-engines/devilutionx/files/devilutionx-1.2.0_pre-no_bundled_font.patch b/games-engines/devilutionx/files/devilutionx-1.2.0_pre-no_bundled_font.patch |
32 |
new file mode 100644 |
33 |
index 00000000000..01f4006dd13 |
34 |
--- /dev/null |
35 |
+++ b/games-engines/devilutionx/files/devilutionx-1.2.0_pre-no_bundled_font.patch |
36 |
@@ -0,0 +1,40 @@ |
37 |
+From 6e75bb9550bd8b4c6249fcfc0cd488224336060e Mon Sep 17 00:00:00 2001 |
38 |
+From: Lars Wendler <polynomial-c@g.o> |
39 |
+Date: Wed, 31 Mar 2021 17:55:03 +0200 |
40 |
+Subject: [PATCH] Fix font location |
41 |
+ |
42 |
+https://bugs.gentoo.org/704508 |
43 |
+--- |
44 |
+ SourceS/paths.cpp | 2 +- |
45 |
+ SourceX/DiabloUI/fonts.cpp | 2 +- |
46 |
+ 2 files changed, 2 insertions(+), 2 deletions(-) |
47 |
+ |
48 |
+diff --git a/SourceS/paths.cpp b/SourceS/paths.cpp |
49 |
+index dd60fcb5..1c4f9d69 100644 |
50 |
+--- a/SourceS/paths.cpp |
51 |
++++ b/SourceS/paths.cpp |
52 |
+@@ -11,7 +11,7 @@ |
53 |
+ #endif |
54 |
+ |
55 |
+ #ifndef TTF_FONT_NAME |
56 |
+-#define TTF_FONT_NAME "CharisSILB.ttf" |
57 |
++#define TTF_FONT_NAME "sil-charis/CharisSIL-B.ttf" |
58 |
+ #endif |
59 |
+ |
60 |
+ namespace dvl { |
61 |
+diff --git a/SourceX/DiabloUI/fonts.cpp b/SourceX/DiabloUI/fonts.cpp |
62 |
+index 178dcbe9..5f825886 100644 |
63 |
+--- a/SourceX/DiabloUI/fonts.cpp |
64 |
++++ b/SourceX/DiabloUI/fonts.cpp |
65 |
+@@ -66,7 +66,7 @@ void LoadTtfFont() |
66 |
+ std::string ttf_font_path = GetTtfPath() + GetTtfName(); |
67 |
+ #ifdef __linux__ |
68 |
+ if (!FileExists(ttf_font_path.c_str())) { |
69 |
+- ttf_font_path = "/usr/share/fonts/truetype/" + GetTtfName(); |
70 |
++ ttf_font_path = "/usr/share/fonts/" + GetTtfName(); |
71 |
+ } |
72 |
+ #endif |
73 |
+ font = TTF_OpenFont(ttf_font_path.c_str(), 17); |
74 |
+-- |
75 |
+2.31.1 |
76 |
+ |