1 |
commit: d032b5ba37c8c6de3dc0496e92ab64565e1252b4 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 2 11:48:57 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 2 11:49:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d032b5ba |
7 |
|
8 |
games-engines/devilutionx: Synced live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
games-engines/devilutionx/devilutionx-9999.ebuild | 22 +++++++++++++++++++--- |
14 |
1 file changed, 19 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/games-engines/devilutionx/devilutionx-9999.ebuild b/games-engines/devilutionx/devilutionx-9999.ebuild |
17 |
index 6d3bda7a2fb..b363bc7378a 100644 |
18 |
--- a/games-engines/devilutionx/devilutionx-9999.ebuild |
19 |
+++ b/games-engines/devilutionx/devilutionx-9999.ebuild |
20 |
@@ -25,10 +25,11 @@ fi |
21 |
LICENSE="public-domain" |
22 |
SLOT="0" |
23 |
|
24 |
-IUSE="debug" |
25 |
+IUSE="debug lto" |
26 |
|
27 |
RDEPEND=" |
28 |
dev-libs/libsodium |
29 |
+ media-fonts/sil-charis |
30 |
media-libs/libsdl2[haptic] |
31 |
media-libs/sdl2-mixer |
32 |
media-libs/sdl2-ttf |
33 |
@@ -38,17 +39,32 @@ BDEPEND=" |
34 |
virtual/pkgconfig |
35 |
" |
36 |
|
37 |
+src_prepare() { |
38 |
+ sed "/PROJECT_VERSION/s|@PROJECT_VERSION@|${PV}|" \ |
39 |
+ -i SourceS/config.h.in || die |
40 |
+ sed 's/CharisSILB.ttf/CharisSIL-B.ttf/g' \ |
41 |
+ -i SourceX/DiabloUI/fonts.h || die |
42 |
+ cmake_src_prepare |
43 |
+} |
44 |
+ |
45 |
src_configure() { |
46 |
local mycmakeargs=( |
47 |
- -DBINARY_RELEASE=ON |
48 |
+ -DASAN="OFF" |
49 |
-DDEBUG="$(usex debug)" |
50 |
+ -DDIST="ON" |
51 |
+ -DFASTER="OFF" |
52 |
+ -DLTO="$(usex lto)" |
53 |
+ -DUBSAN="OFF" |
54 |
) |
55 |
cmake_src_configure |
56 |
} |
57 |
|
58 |
src_install() { |
59 |
dobin "${BUILD_DIR}/${PN}" |
60 |
- make_desktop_entry ${PN} "Diablo devolved" |
61 |
+ |
62 |
+ newicon -s 32 Packaging/resources/Diablo_32.png ${PN}.png |
63 |
+ newicon -s 48 Packaging/resources/Diablo_48.png ${PN}.png |
64 |
+ make_desktop_entry ${PN} "Diablo devolved" "/usr/share/icons/hicolor/48x48/apps/devilutionx.png" |
65 |
} |
66 |
|
67 |
pkg_postinst() { |