1 |
commit: e7bf83d2deca54a9abaada14fbca800551be9942 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 10 18:40:03 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 10 19:24:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7bf83d2 |
7 |
|
8 |
games-simulation/openrct2: bump to version 0.2.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
games-simulation/openrct2/Manifest | 3 + |
14 |
games-simulation/openrct2/openrct2-0.2.6.ebuild | 162 ++++++++++++++++++++++++ |
15 |
2 files changed, 165 insertions(+) |
16 |
|
17 |
diff --git a/games-simulation/openrct2/Manifest b/games-simulation/openrct2/Manifest |
18 |
index 98c1c90754f..4a7f65a9c9a 100644 |
19 |
--- a/games-simulation/openrct2/Manifest |
20 |
+++ b/games-simulation/openrct2/Manifest |
21 |
@@ -1,7 +1,10 @@ |
22 |
DIST openrct2-0.2.4.tar.gz 6805976 BLAKE2B 7860746d1705804682756097ff37d4584d0ebb20c450c08b88134795e9f3c375dfb888a67302f530cd55700eaa5cd13149c365c30a5d267d382b39225f06d210 SHA512 956044b5fa5e55256a33f352d2d1e8a4eb6738b98dc9894807b3628b5c5c08f3229c952fbf8b33ad867771f88c6d7e17ad1a8a4e050f8f269a6152d013afce03 |
23 |
DIST openrct2-0.2.5.tar.gz 11076466 BLAKE2B 7e3aff0e2a322b1a0319df6ebdc335052d5aeb0c35dc97123fcf316272e95171ced5f9f41695d986b69b93cdacfa755fef924e2ff87a3f2441e03fd33175a2cc SHA512 8ab091788a52408ef37d603581841a12ffbe5a5eced43504d8e19e89d26b1320010dc0b4a4b67080260e66e24edeb2c780d7bad9b88b58e6a7216f4e393fc516 |
24 |
+DIST openrct2-0.2.6.tar.gz 11094308 BLAKE2B 4aed899fee4735a0237558c1c34f67f37ecc9b8138f8a66314a9abc013cf10ad3a9f80fd5159afc5860ded780d4c705fd9e394b38f981aac90c8cee883356996 SHA512 abe7c344b7588b169c95ffe0ab9028f72614d9b5783d81fa4f97f206d90d8cbaa0b91f04314c10926dbd5f68bba166558c428557f598abb343d306800611fb24 |
25 |
DIST openrct2-objects-1.0.12.zip 2173875 BLAKE2B d344dde3dc376004b9e303a489c058a574c2f8babcce8c9998ef12f2b91e3fe7d3e22e1afc81aadd39637f3f91a5d36c4267aed06980686fd909cc515f4c8fde SHA512 d17d2197b66d22e33a246651a0c544a49a6d6a809612d26a851dc4b40bb9e1bf5079bbe5b1a3b7d41f541fc41ce41717d772a5579aa2cdc9ec1dfea72b5a3144 |
26 |
DIST openrct2-objects-1.0.13.zip 2214431 BLAKE2B 6301c787364cb16a4f599c2b94d475237abd098715a98a0bfe87fc067d490f8939c5f25235350d9fed02c37d4f92a29c2bb021a9acf1615f161e5b5d95b8fd63 SHA512 690255506e3286bff00076f3dcb3ce50e98606dfc1e522aa679d5e6c7e01c5f56a6624a65bb8aab5915d7d71ae21de310642c16cd5154db6b096bedd77d5797e |
27 |
+DIST openrct2-objects-1.0.14.zip 2237331 BLAKE2B 39a0c92674abc0d16fc3dd463b68e2ee8f3f7dd1c2a944d5448173ca58e6c3c4a79092a40e66ac8e919f75be2d2d691a76dc046e41caf7237138815a4e6ad526 SHA512 66e7a55ca894f2ea11af1c6300f934ef00f659137dded06f54bf749f490ff6063f95da800ae3cbfbbffe1c3e7d995e307d1281d57e4454ded6fed5affde84f8e |
28 |
DIST openrct2-replays-0.0.4.zip 1098833 BLAKE2B efe4f72b16285d8e6508313f16b892b02f1b124cf9b4d146731280f5090d071d3351834e6d4ab51122804fbbcb49044be4e681182141aac93795c3b1953b6590 SHA512 5c2469bfdaa94a6007f6788878f4e80d87fbbfd48b522e1bd2a22c2aa0c98583159b9559fd45f7f9450d544a99a59b6c17399d9ac91a171a86135f0e1a5b3e71 |
29 |
DIST openrct2-replays-0.0.8.zip 1038537 BLAKE2B 7b6da300cb588676aceb75c440b0e7d4bcdf0e44d889a21a381d45c8b3237f362bd33c53998795845904a2b6ea8bde38efa5bcea5f4d73d1b2ed876382abaa3e SHA512 60b95d89691c83054627829ddc4aa8c7c85dd7f4e2b268834e05aba724bf42e3968d14b158d6277fcf74fa81c1ec4f063c20cf6c940b8707538747d86eeacd94 |
30 |
+DIST openrct2-replays-0.0.9.zip 1817119 BLAKE2B 3c63a0acf991487e667ae43ac987b8ee936ce77ad4eb75209d09e41f85b72550856c84d93bdbee1541a994ffbf9bc956b5366d77d760ebd7ed1dab0dffbf7885 SHA512 8066a664c12df047e64b9a049e39da6a4e366adfc60824a7a6c33e526c3a5a9afbc05d1dd11ff81eddbec0783445275d2be8cbe8141031fbeaefe8ea95cd1a7b |
31 |
DIST openrct2-title-sequences-0.1.2c.zip 2980030 BLAKE2B f91168bea0a4f88a801c95ea45759e0d1c887a89c18dbbded5887d2914db7119dd65c231aa422e4f8a964a81d832eae05bffaa8b7908fac39a63792d082b53a0 SHA512 0e544d236d5f6ac7f68d75ba1f56f043c76c77676cbb92e6fdbf68a6ae2dc6c41dbdad6083ceec36b2f774bcdd99f64f28de73b208d6a39a8218a9e95502d46e |
32 |
|
33 |
diff --git a/games-simulation/openrct2/openrct2-0.2.6.ebuild b/games-simulation/openrct2/openrct2-0.2.6.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..d18f745158a |
36 |
--- /dev/null |
37 |
+++ b/games-simulation/openrct2/openrct2-0.2.6.ebuild |
38 |
@@ -0,0 +1,162 @@ |
39 |
+# Copyright 1999-2020 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=7 |
43 |
+ |
44 |
+inherit cmake-utils readme.gentoo-r1 xdg-utils |
45 |
+ |
46 |
+MY_PN="OpenRCT2" |
47 |
+MY_PN_OBJ="objects" |
48 |
+MY_PN_RPL="replays" |
49 |
+MY_PN_TS="title-sequences" |
50 |
+MY_PV_OBJ="1.0.14" |
51 |
+MY_PV_RPL="0.0.9" |
52 |
+MY_PV_TS="0.1.2c" |
53 |
+ |
54 |
+DESCRIPTION="An open source re-implementation of Chris Sawyer's RollerCoaster Tycoon 2" |
55 |
+HOMEPAGE="https://openrct2.org/" |
56 |
+SRC_URI=" |
57 |
+ https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
58 |
+ https://github.com/${MY_PN}/${MY_PN_OBJ}/releases/download/v${MY_PV_OBJ}/${MY_PN_OBJ}.zip -> ${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}.zip |
59 |
+ https://github.com/${MY_PN}/${MY_PN_TS}/releases/download/v${MY_PV_TS}/${MY_PN_TS}.zip -> ${PN}-${MY_PN_TS}-${MY_PV_TS}.zip |
60 |
+ test? ( https://github.com/${MY_PN}/${MY_PN_RPL}/releases/download/v${MY_PV_RPL}/${MY_PN_RPL}.zip -> ${PN}-${MY_PN_RPL}-${MY_PV_RPL}.zip ) |
61 |
+" |
62 |
+ |
63 |
+LICENSE="GPL-3" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+IUSE="dedicated libressl +lightfx +opengl test +truetype twitch" |
67 |
+ |
68 |
+COMMON_DEPEND=" |
69 |
+ dev-libs/icu:= |
70 |
+ dev-libs/jansson |
71 |
+ dev-libs/libzip:= |
72 |
+ media-libs/libpng:0= |
73 |
+ sys-libs/zlib |
74 |
+ !dedicated? ( |
75 |
+ media-libs/libsdl2 |
76 |
+ media-libs/speexdsp |
77 |
+ opengl? ( virtual/opengl ) |
78 |
+ twitch? ( |
79 |
+ net-misc/curl[ssl] |
80 |
+ ) |
81 |
+ ) |
82 |
+ libressl? ( dev-libs/libressl:0= ) |
83 |
+ !libressl? ( dev-libs/openssl:0= ) |
84 |
+ truetype? ( |
85 |
+ media-libs/fontconfig:1.0 |
86 |
+ media-libs/freetype:2 |
87 |
+ ) |
88 |
+" |
89 |
+ |
90 |
+RDEPEND=" |
91 |
+ ${COMMON_DEPEND} |
92 |
+ dedicated? ( |
93 |
+ acct-group/openrct2 |
94 |
+ acct-user/openrct2 |
95 |
+ ) |
96 |
+" |
97 |
+ |
98 |
+DEPEND=" |
99 |
+ ${COMMON_DEPEND} |
100 |
+ test? ( dev-cpp/gtest ) |
101 |
+" |
102 |
+ |
103 |
+BDEPEND=" |
104 |
+ app-arch/unzip |
105 |
+ virtual/pkgconfig |
106 |
+" |
107 |
+ |
108 |
+RESTRICT="!test? ( test )" |
109 |
+ |
110 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
111 |
+ |
112 |
+PATCHES=( |
113 |
+ "${FILESDIR}/${PN}-0.2.4-include-additional-paths.patch" |
114 |
+) |
115 |
+ |
116 |
+src_unpack() { |
117 |
+ unpack "${P}".tar.gz |
118 |
+ |
119 |
+ mkdir -p "${S}"/data/title || die |
120 |
+ cd "${S}"/data/title || die |
121 |
+ unpack "${PN}-${MY_PN_TS}-${MY_PV_TS}".zip |
122 |
+ |
123 |
+ mkdir -p "${S}"/data/object || die |
124 |
+ cd "${S}"/data/object || die |
125 |
+ unpack "${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}".zip |
126 |
+ |
127 |
+ if use test; then |
128 |
+ mkdir -p "${S}"/testdata/replays || die |
129 |
+ cd "${S}"/testdata/replays || die |
130 |
+ unpack "${PN}-${MY_PN_RPL}-${MY_PV_RPL}".zip |
131 |
+ fi |
132 |
+} |
133 |
+ |
134 |
+src_prepare() { |
135 |
+ cmake-utils_src_prepare |
136 |
+ |
137 |
+ # Don't treat warnings as errors. |
138 |
+ sed -e 's/-Werror//' -i CMakeLists.txt || die |
139 |
+} |
140 |
+ |
141 |
+src_configure() { |
142 |
+ # Note: There is currently no support for Disord-RPC and Google Benchmark, |
143 |
+ # as both packages do not exist in Gentoo, so support for them has been disabled. |
144 |
+ local mycmakeargs=( |
145 |
+ -DDISABLE_DISCORD_RPC=ON |
146 |
+ -DDISABLE_GOOGLE_BENCHMARK=ON |
147 |
+ -DDISABLE_GUI=$(usex dedicated) |
148 |
+ -DDISABLE_HTTP_TWITCH=$(usex !twitch) |
149 |
+ -DDISABLE_NETWORK=OFF |
150 |
+ $(usex !dedicated "-DDISABLE_OPENGL=$(usex !opengl)" "") |
151 |
+ -DDISABLE_TTF=$(usex !truetype) |
152 |
+ -DDOWNLOAD_OBJECTS=OFF |
153 |
+ -DDOWNLOAD_REPLAYS=OFF |
154 |
+ -DDOWNLOAD_TITLE_SEQUENCES=OFF |
155 |
+ -DENABLE_LIGHTFX=$(usex lightfx) |
156 |
+ -DPORTABLE=OFF |
157 |
+ -DSTATIC=OFF |
158 |
+ $(usex test "-DSYSTEM_GTEST=ON" "") |
159 |
+ -DWITH_TESTS=$(usex test) |
160 |
+ -DUSE_MMAP=ON |
161 |
+ ) |
162 |
+ |
163 |
+ cmake-utils_src_configure |
164 |
+} |
165 |
+ |
166 |
+src_test() { |
167 |
+ # Since the tests need the OpenRCT2 data, |
168 |
+ # we need to symlink them into the build directory, |
169 |
+ # otherwise some tests will fail, as they don't find the OpenRCT2 data. |
170 |
+ # It is currently not possible to override that path. |
171 |
+ # See: https://github.com/OpenRCT2/OpenRCT2/issues/6473 |
172 |
+ ln -s "${S}"/data "${BUILD_DIR}" || die |
173 |
+ |
174 |
+ cmake-utils_src_test |
175 |
+} |
176 |
+ |
177 |
+src_install() { |
178 |
+ cmake-utils_src_install |
179 |
+ |
180 |
+ if use dedicated; then |
181 |
+ newinitd "${FILESDIR}"/openrct2.initd openrct2 |
182 |
+ newconfd "${FILESDIR}"/openrct2.confd openrct2 |
183 |
+ fi |
184 |
+ |
185 |
+ readme.gentoo_create_doc |
186 |
+} |
187 |
+ |
188 |
+pkg_postinst() { |
189 |
+ readme.gentoo_print_elog |
190 |
+ |
191 |
+ xdg_desktop_database_update |
192 |
+ xdg_icon_cache_update |
193 |
+ xdg_mimeinfo_database_update |
194 |
+} |
195 |
+ |
196 |
+pkg_postrm() { |
197 |
+ xdg_desktop_database_update |
198 |
+ xdg_icon_cache_update |
199 |
+ xdg_mimeinfo_database_update |
200 |
+} |