1 |
commit: 7b0cfd8d335cfa1f7f5b1159d156d57804e571ef |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 19 22:14:27 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 19 22:44:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b0cfd8d |
7 |
|
8 |
games-simulation/openrct2: update live ebuild |
9 |
|
10 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
games-simulation/openrct2/metadata.xml | 1 + |
14 |
games-simulation/openrct2/openrct2-9999.ebuild | 19 +++++++++++-------- |
15 |
2 files changed, 12 insertions(+), 8 deletions(-) |
16 |
|
17 |
diff --git a/games-simulation/openrct2/metadata.xml b/games-simulation/openrct2/metadata.xml |
18 |
index 4e87269e0d5..533b34deeec 100644 |
19 |
--- a/games-simulation/openrct2/metadata.xml |
20 |
+++ b/games-simulation/openrct2/metadata.xml |
21 |
@@ -16,6 +16,7 @@ |
22 |
</longdescription> |
23 |
<use> |
24 |
<flag name="lightfx">Enables LightFX for better lightning effects.</flag> |
25 |
+ <flag name="scripting">Enable the <pkg>dev-lang/duktape</pkg> scripting engine for executing user scripts.</flag> |
26 |
<flag name="twitch">Enables streaming of ingame content to Twitch.</flag> |
27 |
</use> |
28 |
<upstream> |
29 |
|
30 |
diff --git a/games-simulation/openrct2/openrct2-9999.ebuild b/games-simulation/openrct2/openrct2-9999.ebuild |
31 |
index edadb738265..f0a1d342c95 100644 |
32 |
--- a/games-simulation/openrct2/openrct2-9999.ebuild |
33 |
+++ b/games-simulation/openrct2/openrct2-9999.ebuild |
34 |
@@ -27,25 +27,23 @@ SRC_URI=" |
35 |
LICENSE="GPL-3" |
36 |
SLOT="0" |
37 |
KEYWORDS="" |
38 |
-IUSE="dedicated libressl +lightfx +opengl test +truetype twitch" |
39 |
+IUSE="dedicated libressl +lightfx +opengl scripting test +truetype" |
40 |
|
41 |
COMMON_DEPEND=" |
42 |
- dev-lang/duktape |
43 |
dev-libs/icu:= |
44 |
dev-libs/jansson |
45 |
dev-libs/libzip:= |
46 |
media-libs/libpng:0= |
47 |
+ net-misc/curl[ssl] |
48 |
sys-libs/zlib |
49 |
!dedicated? ( |
50 |
media-libs/libsdl2 |
51 |
media-libs/speexdsp |
52 |
opengl? ( virtual/opengl ) |
53 |
- twitch? ( |
54 |
- net-misc/curl[ssl] |
55 |
- ) |
56 |
) |
57 |
libressl? ( dev-libs/libressl:0= ) |
58 |
!libressl? ( dev-libs/openssl:0= ) |
59 |
+ scripting? ( dev-lang/duktape ) |
60 |
truetype? ( |
61 |
media-libs/fontconfig:1.0 |
62 |
media-libs/freetype:2 |
63 |
@@ -74,13 +72,14 @@ RESTRICT="!test? ( test )" |
64 |
|
65 |
PATCHES=( |
66 |
"${FILESDIR}/${PN}-0.2.4-include-additional-paths.patch" |
67 |
+ "${FILESDIR}/${PN}-0.2.6-gtest-1.10.patch" |
68 |
) |
69 |
|
70 |
src_unpack() { |
71 |
git-r3_src_unpack |
72 |
|
73 |
- mkdir -p "${S}"/data/title || die |
74 |
- cd "${S}"/data/title || die |
75 |
+ mkdir -p "${S}"/data/sequence || die |
76 |
+ cd "${S}"/data/sequence || die |
77 |
unpack "${PN}-${MY_PN_TS}-${MY_PV_TS}".zip |
78 |
|
79 |
mkdir -p "${S}"/data/object || die |
80 |
@@ -108,7 +107,7 @@ src_configure() { |
81 |
-DDISABLE_DISCORD_RPC=ON |
82 |
-DDISABLE_GOOGLE_BENCHMARK=ON |
83 |
-DDISABLE_GUI=$(usex dedicated) |
84 |
- -DDISABLE_HTTP_TWITCH=$(usex !twitch) |
85 |
+ -DDISABLE_HTTP=OFF |
86 |
-DDISABLE_NETWORK=OFF |
87 |
$(usex !dedicated "-DDISABLE_OPENGL=$(usex !opengl)" "") |
88 |
-DDISABLE_TTF=$(usex !truetype) |
89 |
@@ -116,6 +115,8 @@ src_configure() { |
90 |
-DDOWNLOAD_REPLAYS=OFF |
91 |
-DDOWNLOAD_TITLE_SEQUENCES=OFF |
92 |
-DENABLE_LIGHTFX=$(usex lightfx) |
93 |
+ -DENABLE_SCRIPTING=$(usex scripting) |
94 |
+ -DOPENRCT2_USE_CCACHE=OFF |
95 |
-DPORTABLE=OFF |
96 |
-DSTATIC=OFF |
97 |
$(usex test "-DSYSTEM_GTEST=ON" "") |
98 |
@@ -138,6 +139,8 @@ src_test() { |
99 |
} |
100 |
|
101 |
src_install() { |
102 |
+ use scripting && DOCS+=( "distribution/scripting.md" "distribution/openrct2.d.ts" ) |
103 |
+ |
104 |
cmake_src_install |
105 |
|
106 |
if use dedicated; then |