1 |
commit: 1cc76ec334765d9ee6bcee9f4c85424f8a61c9f4 |
2 |
Author: Hendrik v. Raven <hendrik <AT> consetetur <DOT> de> |
3 |
AuthorDate: Sat Aug 4 12:11:23 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 19 12:59:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cc76ec3 |
7 |
|
8 |
games-simulation/openrct2: version bump to 0.2.0 |
9 |
|
10 |
also apply the ebuild updates to the nightly version. |
11 |
|
12 |
0.2.0 requires a patch disabling some tests requiring game files. This |
13 |
in no longer needed in nightly. |
14 |
|
15 |
Package-Manager: Portage-2.3.44, Repoman-2.3.10 |
16 |
|
17 |
games-simulation/openrct2/Manifest | 4 +- |
18 |
.../openrct2-0.2.0-disable-tests-with-assets.patch | 50 ++++++++++++++++++++++ |
19 |
...{openrct2-9999.ebuild => openrct2-0.2.0.ebuild} | 24 ++++++++--- |
20 |
games-simulation/openrct2/openrct2-9999.ebuild | 15 ++++--- |
21 |
4 files changed, 80 insertions(+), 13 deletions(-) |
22 |
|
23 |
diff --git a/games-simulation/openrct2/Manifest b/games-simulation/openrct2/Manifest |
24 |
index 1da0e45b5c0..9aafa6ade4d 100644 |
25 |
--- a/games-simulation/openrct2/Manifest |
26 |
+++ b/games-simulation/openrct2/Manifest |
27 |
@@ -1,3 +1,5 @@ |
28 |
DIST openrct2-0.1.2.tar.gz 6769785 BLAKE2B 0cc6ef6c68c1db6c822dd6038bc2d115f487a52b5891316273ee36db1713913baa2f119dabace88a37c16f87c90b14cf84df75a24b26b22571e98966afd2adbc SHA512 489dac96e1eda1449680f98a4b500eeb7b3f1ffbdaa5a5c701300071eb3a7862c65fa5a81e769083927b95a14914db54307724756a9841cff0c769c9e5471adc |
29 |
-DIST openrct2-objects-v1.0.zip 2050225 BLAKE2B 52ae6f5ab4de5d4b121cea6a3d6711b04f1c4857795c995f7568e3be2862409104be55e233781ff6708c7e821f49af8e91f9f4c87c037b6a8a77698534747925 SHA512 a125fee04c12c49ffd16880eb5b8722e25c5fb82adae305d9904c3a6251c83e73e4a29c7e3694acee3abf336894759cfbff94018c6b210df4d794ca3ec34dc84 |
30 |
+DIST openrct2-0.2.0.tar.gz 6481521 BLAKE2B b3a17d4dd7b0d3e68d4a0a200a81307fa598ac9bafd0636fc2fe62cc0921d1e620cf29a31f2fd5d9258d5b79cd952887e853c005ed719f5990744e9849ad0ee8 SHA512 ac42509ceb52eab20964bf95d7a140dc00d9b4c2569fab1200faff31548f063e209acde29f8ca4ee14858fcf5f6781eebe6d5f7de3d4e01fd43c43ee8905863b |
31 |
+DIST openrct2-objects-v1.0.2.zip 2068705 BLAKE2B 4f291289a7f331bad19080ffc63d204819973682710ea62c3fc66fb9d05b63c267e2146d6c533f59eac3baa9760b85953ae344b6da4bb778e5ccd249f6160525 SHA512 814d52ee5c071f33c17d88bc53711a509d7988ece12381996b3d233b9b46c79739fd2dafbed57f00537b19c78e290e2481d72b2824b5574734f6876a0af0c359 |
32 |
+DIST openrct2-objects-v1.0.3.zip 2070513 BLAKE2B 3499b022f1d1f2b05da003f87f5f885de8463ed63d751653b0d8d48e2a339496d84d025eb2e44619012aa76360f6880541a519312e6d339eca862f6274d2b73b SHA512 9012a6337df7abd2743e94e3606266cde306335f33bf4f7869cca90c9c31758806c063b697bc3a6e21af7c733841551f2b29072592850cc51090d58f5f685f99 |
33 |
DIST openrct2-title-sequence-v0.1.2.zip 4073116 BLAKE2B a36fb07e8da62afce129f2224f4cf5cc226922094132a3dc515fda1f02e0f8bbe07c973363f824ae58a54a26f252ad96f3f673bf5f142be5c964f45b6f712ed6 SHA512 7592c5397ceb27347c127ae5c4f8e11d7ef2ff23c97f627b354f941894420f546ffdcff88e2348e42c82d182ccf620e739c745d894a9b5650a0d7d028b68a106 |
34 |
|
35 |
diff --git a/games-simulation/openrct2/files/openrct2-0.2.0-disable-tests-with-assets.patch b/games-simulation/openrct2/files/openrct2-0.2.0-disable-tests-with-assets.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..0b4c7275558 |
38 |
--- /dev/null |
39 |
+++ b/games-simulation/openrct2/files/openrct2-0.2.0-disable-tests-with-assets.patch |
40 |
@@ -0,0 +1,50 @@ |
41 |
+From 86b45a7a4a4fc9b038bcd0e720cf575b934fb462 Mon Sep 17 00:00:00 2001 |
42 |
+From: "Hendrik v. Raven" <hendrik@××××××××××.de> |
43 |
+Date: Sat, 4 Aug 2018 13:58:31 +0200 |
44 |
+Subject: [PATCH] reintroduce DISABLE_RCT2_TESTS compile option |
45 |
+ |
46 |
+the option was removing when restructuring the CI system, but it is |
47 |
+still usefull for package maintainers. |
48 |
+--- |
49 |
+ test/tests/CMakeLists.txt | 10 +++++++--- |
50 |
+ 1 file changed, 7 insertions(+), 3 deletions(-) |
51 |
+ |
52 |
+diff --git a/test/tests/CMakeLists.txt b/test/tests/CMakeLists.txt |
53 |
+index 1f862153d..34ab5c884 100644 |
54 |
+--- a/test/tests/CMakeLists.txt |
55 |
++++ b/test/tests/CMakeLists.txt |
56 |
+@@ -1,5 +1,6 @@ |
57 |
+ cmake_minimum_required(VERSION 2.6) |
58 |
+ |
59 |
++option(DISABLE_RCT2_TESTS "Disable tests that require RollerCoaster Tycoon 2 assets.") |
60 |
+ option(SYSTEM_GTEST "Use the googletest library provided by the system.") |
61 |
+ |
62 |
+ if (SYSTEM_GTEST) |
63 |
+@@ -172,18 +173,21 @@ set(RIDE_RATINGS_TEST_SOURCES "${CMAKE_CURRENT_LIST_DIR}/RideRatings.cpp" |
64 |
+ "${CMAKE_CURRENT_LIST_DIR}/TestData.cpp") |
65 |
+ add_executable(test_ride_ratings ${RIDE_RATINGS_TEST_SOURCES}) |
66 |
+ target_link_libraries(test_ride_ratings ${GTEST_LIBRARIES} libopenrct2 ${LDL} z) |
67 |
+-add_test(NAME ride_ratings COMMAND test_ride_ratings) |
68 |
+ |
69 |
+ # Multi-launch test |
70 |
+ set(MULTILAUNCH_TEST_SOURCES "${CMAKE_CURRENT_LIST_DIR}/MultiLaunch.cpp" |
71 |
+ "${CMAKE_CURRENT_LIST_DIR}/TestData.cpp") |
72 |
+ add_executable(test_multilaunch ${MULTILAUNCH_TEST_SOURCES}) |
73 |
+ target_link_libraries(test_multilaunch ${GTEST_LIBRARIES} libopenrct2 ${LDL} z) |
74 |
+-add_test(NAME multilaunch COMMAND test_multilaunch) |
75 |
+ |
76 |
+ # Tile element test |
77 |
+ set(TILE_ELEMENT_TEST_SOURCES "${CMAKE_CURRENT_LIST_DIR}/TileElements.cpp" |
78 |
+ "${CMAKE_CURRENT_LIST_DIR}/TestData.cpp") |
79 |
+ add_executable(test_tile_elements ${TILE_ELEMENT_TEST_SOURCES}) |
80 |
+ target_link_libraries(test_tile_elements ${GTEST_LIBRARIES} libopenrct2 ${LDL} z) |
81 |
+-add_test(NAME tile_elements COMMAND test_tile_elements) |
82 |
++ |
83 |
++if (NOT DISABLE_RCT2_TESTS) |
84 |
++ add_test(NAME ride_ratings COMMAND test_ride_ratings) |
85 |
++ add_test(NAME multilaunch COMMAND test_multilaunch) |
86 |
++ add_test(NAME tile_elements COMMAND test_tile_elements) |
87 |
++endif () |
88 |
+-- |
89 |
+2.18.0 |
90 |
+ |
91 |
|
92 |
diff --git a/games-simulation/openrct2/openrct2-9999.ebuild b/games-simulation/openrct2/openrct2-0.2.0.ebuild |
93 |
similarity index 83% |
94 |
copy from games-simulation/openrct2/openrct2-9999.ebuild |
95 |
copy to games-simulation/openrct2/openrct2-0.2.0.ebuild |
96 |
index 1058facd68f..f8059872fa8 100644 |
97 |
--- a/games-simulation/openrct2/openrct2-9999.ebuild |
98 |
+++ b/games-simulation/openrct2/openrct2-0.2.0.ebuild |
99 |
@@ -14,15 +14,18 @@ if [[ ${PV} == 9999 ]]; then |
100 |
SRC_URI="" |
101 |
else |
102 |
KEYWORDS="~amd64 ~x86" |
103 |
- SRC_URI="https://github.com/OpenRCT2/OpenRCT2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
104 |
+ SRC_URI="https://github.com/OpenRCT2/OpenRCT2/archive/v${PV}.tar.gz |
105 |
+ -> ${P}.tar.gz" |
106 |
S="${WORKDIR}/OpenRCT2-${PV}" |
107 |
fi |
108 |
|
109 |
TSV="0.1.2" |
110 |
-SRC_URI+=" https://github.com/OpenRCT2/title-sequences/releases/download/v${TSV}/title-sequence-v${TSV}.zip -> ${PN}-title-sequence-v${TSV}.zip " |
111 |
- |
112 |
-OBJV="1.0" |
113 |
-SRC_URI+=" https://github.com/OpenRCT2/objects/releases/download/v${OBJV}/objects.zip -> ${PN}-objects-v${OBJV}.zip" |
114 |
+OBJV="1.0.2" |
115 |
+SRC_URI+=" |
116 |
+ https://github.com/OpenRCT2/title-sequences/releases/download/v${TSV}/title-sequence-v${TSV}.zip |
117 |
+ -> ${PN}-title-sequence-v${TSV}.zip |
118 |
+ https://github.com/OpenRCT2/objects/releases/download/v${OBJV}/objects.zip |
119 |
+ -> ${PN}-objects-v${OBJV}.zip" |
120 |
|
121 |
LICENSE="GPL-3" |
122 |
SLOT="0" |
123 |
@@ -50,6 +53,10 @@ DEPEND="${RDEPEND} |
124 |
test? ( dev-cpp/gtest ) |
125 |
" |
126 |
|
127 |
+PATCHES=( |
128 |
+ "${FILESDIR}/${PN}-0.2.0-disable-tests-with-assets.patch" |
129 |
+) |
130 |
+ |
131 |
src_unpack() { |
132 |
if [[ ${PV} == 9999 ]]; then |
133 |
git-r3_src_unpack |
134 |
@@ -83,9 +90,14 @@ src_configure() { |
135 |
-DWITH_TESTS="$(usex test)" |
136 |
-DDOWNLOAD_TITLE_SEQUENCES=OFF |
137 |
-DDOWNLOAD_OBJECTS=OFF |
138 |
- -DSYSTEM_GTEST=ON |
139 |
-DBUILD_SHARED_LIBS=ON |
140 |
) |
141 |
+ if use test ; then |
142 |
+ mycmakeargs+=( |
143 |
+ -DSYSTEM_GTEST=ON |
144 |
+ -DDISABLE_RCT2_TESTS=ON |
145 |
+ ) |
146 |
+ fi |
147 |
|
148 |
cmake-utils_src_configure |
149 |
} |
150 |
|
151 |
diff --git a/games-simulation/openrct2/openrct2-9999.ebuild b/games-simulation/openrct2/openrct2-9999.ebuild |
152 |
index 1058facd68f..d9c56e6aeb0 100644 |
153 |
--- a/games-simulation/openrct2/openrct2-9999.ebuild |
154 |
+++ b/games-simulation/openrct2/openrct2-9999.ebuild |
155 |
@@ -14,15 +14,18 @@ if [[ ${PV} == 9999 ]]; then |
156 |
SRC_URI="" |
157 |
else |
158 |
KEYWORDS="~amd64 ~x86" |
159 |
- SRC_URI="https://github.com/OpenRCT2/OpenRCT2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
160 |
+ SRC_URI="https://github.com/OpenRCT2/OpenRCT2/archive/v${PV}.tar.gz |
161 |
+ -> ${P}.tar.gz" |
162 |
S="${WORKDIR}/OpenRCT2-${PV}" |
163 |
fi |
164 |
|
165 |
TSV="0.1.2" |
166 |
-SRC_URI+=" https://github.com/OpenRCT2/title-sequences/releases/download/v${TSV}/title-sequence-v${TSV}.zip -> ${PN}-title-sequence-v${TSV}.zip " |
167 |
- |
168 |
-OBJV="1.0" |
169 |
-SRC_URI+=" https://github.com/OpenRCT2/objects/releases/download/v${OBJV}/objects.zip -> ${PN}-objects-v${OBJV}.zip" |
170 |
+OBJV="1.0.3" |
171 |
+SRC_URI+=" |
172 |
+ https://github.com/OpenRCT2/title-sequences/releases/download/v${TSV}/title-sequence-v${TSV}.zip |
173 |
+ -> ${PN}-title-sequence-v${TSV}.zip |
174 |
+ https://github.com/OpenRCT2/objects/releases/download/v${OBJV}/objects.zip |
175 |
+ -> ${PN}-objects-v${OBJV}.zip" |
176 |
|
177 |
LICENSE="GPL-3" |
178 |
SLOT="0" |
179 |
@@ -83,9 +86,9 @@ src_configure() { |
180 |
-DWITH_TESTS="$(usex test)" |
181 |
-DDOWNLOAD_TITLE_SEQUENCES=OFF |
182 |
-DDOWNLOAD_OBJECTS=OFF |
183 |
- -DSYSTEM_GTEST=ON |
184 |
-DBUILD_SHARED_LIBS=ON |
185 |
) |
186 |
+ use test && mycmakeargs+=( -DSYSTEM_GTEST=ON ) |
187 |
|
188 |
cmake-utils_src_configure |
189 |
} |