1 |
commit: d0cfe5ab38f5fdb283ed9148064490ca944597a9 |
2 |
Author: Hendrik v. Raven <hendrik <AT> consetetur <DOT> de> |
3 |
AuthorDate: Wed Apr 25 10:56:37 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 9 12:26:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0cfe5ab |
7 |
|
8 |
games-simulation/openrct2: update nightly |
9 |
|
10 |
currently some tests fail due to data not beeing found |
11 |
|
12 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
13 |
|
14 |
games-simulation/openrct2/Manifest | 2 +- |
15 |
games-simulation/openrct2/openrct2-9999.ebuild | 50 +++++++++++++++++--------- |
16 |
2 files changed, 34 insertions(+), 18 deletions(-) |
17 |
|
18 |
diff --git a/games-simulation/openrct2/Manifest b/games-simulation/openrct2/Manifest |
19 |
index 6df07396a3b..1da0e45b5c0 100644 |
20 |
--- a/games-simulation/openrct2/Manifest |
21 |
+++ b/games-simulation/openrct2/Manifest |
22 |
@@ -1,3 +1,3 @@ |
23 |
DIST openrct2-0.1.2.tar.gz 6769785 BLAKE2B 0cc6ef6c68c1db6c822dd6038bc2d115f487a52b5891316273ee36db1713913baa2f119dabace88a37c16f87c90b14cf84df75a24b26b22571e98966afd2adbc SHA512 489dac96e1eda1449680f98a4b500eeb7b3f1ffbdaa5a5c701300071eb3a7862c65fa5a81e769083927b95a14914db54307724756a9841cff0c769c9e5471adc |
24 |
-DIST openrct2-title-sequence-v0.1.0.zip 1766393 BLAKE2B 19612ba78572c4f271349387a24fc9caf389552ad78841ed86ff069c20686da339c83cabe041a1ae240055721984372f1ef20bd009f1ac8b38bf3ff82297b29a SHA512 0d1b47c5fc5d1d9e5580b30d0f43d5532b388f1a5685060ca9313ec2f76c61a5fc96b8aa37689072b71edd9fb1aedddd46fa38c237ccb7198841d7bc33bf2a2b |
25 |
+DIST openrct2-objects-v1.0.zip 2050225 BLAKE2B 52ae6f5ab4de5d4b121cea6a3d6711b04f1c4857795c995f7568e3be2862409104be55e233781ff6708c7e821f49af8e91f9f4c87c037b6a8a77698534747925 SHA512 a125fee04c12c49ffd16880eb5b8722e25c5fb82adae305d9904c3a6251c83e73e4a29c7e3694acee3abf336894759cfbff94018c6b210df4d794ca3ec34dc84 |
26 |
DIST openrct2-title-sequence-v0.1.2.zip 4073116 BLAKE2B a36fb07e8da62afce129f2224f4cf5cc226922094132a3dc515fda1f02e0f8bbe07c973363f824ae58a54a26f252ad96f3f673bf5f142be5c964f45b6f712ed6 SHA512 7592c5397ceb27347c127ae5c4f8e11d7ef2ff23c97f627b354f941894420f546ffdcff88e2348e42c82d182ccf620e739c745d894a9b5650a0d7d028b68a106 |
27 |
|
28 |
diff --git a/games-simulation/openrct2/openrct2-9999.ebuild b/games-simulation/openrct2/openrct2-9999.ebuild |
29 |
index cc286b38589..8a3a26a6c95 100644 |
30 |
--- a/games-simulation/openrct2/openrct2-9999.ebuild |
31 |
+++ b/games-simulation/openrct2/openrct2-9999.ebuild |
32 |
@@ -3,7 +3,7 @@ |
33 |
|
34 |
EAPI=6 |
35 |
|
36 |
-inherit cmake-utils gnome2-utils |
37 |
+inherit cmake-utils gnome2-utils xdg-utils |
38 |
|
39 |
DESCRIPTION="An open source re-implementation of RollerCoaster Tycoon 2" |
40 |
HOMEPAGE="https://openrct2.website/" |
41 |
@@ -18,16 +18,16 @@ else |
42 |
S="${WORKDIR}/OpenRCT2-${PV}" |
43 |
fi |
44 |
|
45 |
-TSV="0.1.0" |
46 |
+TSV="0.1.2" |
47 |
SRC_URI+=" https://github.com/OpenRCT2/title-sequences/releases/download/v${TSV}/title-sequence-v${TSV}.zip -> ${PN}-title-sequence-v${TSV}.zip " |
48 |
|
49 |
+OBJV="1.0" |
50 |
+SRC_URI+=" https://github.com/OpenRCT2/objects/releases/download/v${OBJV}/objects.zip -> ${PN}-objects-v${OBJV}.zip" |
51 |
+ |
52 |
LICENSE="GPL-3" |
53 |
SLOT="0" |
54 |
IUSE="libressl +multiplayer opengl test truetype +twitch" |
55 |
|
56 |
-# This is needed because of this bug: https://github.com/OpenRCT2/OpenRCT2/issues/5469 |
57 |
-REQUIRED_USE="multiplayer? ( twitch )" |
58 |
- |
59 |
RDEPEND=" |
60 |
>=dev-libs/jansson-2.5 |
61 |
>=dev-libs/libzip-1.0 |
62 |
@@ -47,15 +47,33 @@ RDEPEND=" |
63 |
twitch? ( net-misc/curl[ssl] ) |
64 |
" |
65 |
DEPEND="${RDEPEND} |
66 |
+ app-arch/unzip |
67 |
test? ( dev-cpp/gtest ) |
68 |
" |
69 |
|
70 |
-if [[ ${PV} == 9999 ]]; then |
71 |
src_unpack() { |
72 |
- default |
73 |
- git-r3_src_unpack |
74 |
+ if [[ ${PV} == 9999 ]]; then |
75 |
+ git-r3_src_unpack |
76 |
+ else |
77 |
+ unpack ${P}.tar.gz |
78 |
+ fi |
79 |
+ |
80 |
+ mkdir -p "${S}/data/title" || die |
81 |
+ pushd "${S}/data/title" || die |
82 |
+ unpack ${PN}-title-sequence-v${TSV}.zip |
83 |
+ popd || die |
84 |
+ |
85 |
+ mkdir -p "${S}/data/object" || die |
86 |
+ pushd "${S}/data/object" || die |
87 |
+ unpack ${PN}-objects-v${OBJV}.zip |
88 |
+ popd || die |
89 |
+} |
90 |
+ |
91 |
+src_prepare() { |
92 |
+ sed -i CMakeLists.txt -e 's/-Werror//' || die |
93 |
+ |
94 |
+ cmake-utils_src_prepare |
95 |
} |
96 |
-fi |
97 |
|
98 |
src_configure() { |
99 |
local mycmakeargs=( |
100 |
@@ -65,20 +83,14 @@ src_configure() { |
101 |
-DDISABLE_TTF="$(usex !truetype)" |
102 |
-DWITH_TESTS="$(usex test)" |
103 |
-DDOWNLOAD_TITLE_SEQUENCES=OFF |
104 |
- -DDISABLE_RCT2_TESTS=ON |
105 |
+ -DDOWNLOAD_OBJECTS=OFF |
106 |
-DSYSTEM_GTEST=ON |
107 |
+ -DBUILD_SHARED_LIBS=ON |
108 |
) |
109 |
|
110 |
cmake-utils_src_configure |
111 |
} |
112 |
|
113 |
-src_install() { |
114 |
- cmake-utils_src_install |
115 |
- |
116 |
- insinto /usr/share/openrct2/title |
117 |
- doins "${WORKDIR}"/*.parkseq |
118 |
-} |
119 |
- |
120 |
pkg_postinst() { |
121 |
if [[ -z ${REPLACING_VERSIONS} ]]; then |
122 |
ewarn "" |
123 |
@@ -87,8 +99,12 @@ pkg_postinst() { |
124 |
ewarn "" |
125 |
fi |
126 |
gnome2_icon_cache_update |
127 |
+ xdg_desktop_database_update |
128 |
+ xdg_mimeinfo_database_update |
129 |
} |
130 |
|
131 |
pkg_postrm() { |
132 |
gnome2_icon_cache_update |
133 |
+ xdg_desktop_database_update |
134 |
+ xdg_mimeinfo_database_update |
135 |
} |