Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/openrct2/
Date: Tue, 31 Jan 2023 15:17:45
Message-Id: 1675178128.66a78bdba6f35a48394388a652a6f4a5bc9a6ba9.conikost@gentoo
1 commit: 66a78bdba6f35a48394388a652a6f4a5bc9a6ba9
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 03:15:44 2023 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 15:15:28 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66a78bdb
7
8 games-simulation/openrct2: drop 0.4.2
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 games-simulation/openrct2/Manifest | 3 -
13 games-simulation/openrct2/openrct2-0.4.2.ebuild | 167 ------------------------
14 2 files changed, 170 deletions(-)
15
16 diff --git a/games-simulation/openrct2/Manifest b/games-simulation/openrct2/Manifest
17 index fb35a106804f..5b78a591b0ad 100644
18 --- a/games-simulation/openrct2/Manifest
19 +++ b/games-simulation/openrct2/Manifest
20 @@ -1,7 +1,4 @@
21 -DIST openrct2-0.4.2.tar.gz 16476190 BLAKE2B b1626c8cf8ec4100adb11e346515b68e6d7f5104bb95f756a04f170f0258b84a8ae84235c0defec5d994d1eb6c377feeadde1380d892a714f94469bd0cc5d689 SHA512 b047c4cfa4eb5e6257a9836bc85a1aab66504591c7a8f698b893290132d43d7e187a077d29b9f6fb712bfc62b9fcd063a70e7b5d36e2fc7dd61f3af0aff0163f
22 DIST openrct2-0.4.3.tar.gz 16507904 BLAKE2B 37af2ff01f3ad143ab42dc37c95391480272637e163a8721878ac54b001ac49557d4100eaaafb21961ae6abab30b0f60c150bfba88205d2a77e4229e96e35424 SHA512 2c194e3d63340c61fd8caaf975e3b99a3a9f10aeb5f9ff0ca4f5556f07b2d4765583b0c63d1c77117cc003fcfb8403e8ee025758ff39027e9bd0992931eaa46c
23 -DIST openrct2-objects-1.3.5.zip 4431827 BLAKE2B 238e1f97aae2b4958001b368b0cb7b86ed4a6999f9e45144a2d0e78d890df6f3d0edf49fe7a4e51766dc7ff1c26a6c814c6c5ad5836c46ced35efe34f8cab682 SHA512 7200a04b5f6e0f689859207554afc91fd53d9a3899eb88bc650c6883b18ffa7e6d1420a1efea0ab2e2926e10afeb352484ad04df425531ad3efc00dc6cb2acb1
24 DIST openrct2-objects-1.3.7.zip 4563769 BLAKE2B 5e8d88899d997b550df7b34ef6b2788e216861817b49f7c937127f97ec9ea8e02866e768f00e507ccf6310f7cbdce170decf021e1fddae88f219f370aee80f0c SHA512 b335cdb26a9fb20e25100c24409d3bf6c9e9de1bded79534bf8e62c198954ed6732a7524e261502e3e81941c8ba7b1e7cf9541ab121f448d5a8487bb28eb1b38
25 -DIST openrct2-replays-0.0.69.zip 1479527 BLAKE2B 002735bcac99bd76988977869a82a8652c308fed932e4301bac7f76727dfe568f249367923a31f55eb17b807f2f5ce93a07b45941d5ceaca8b9761ad7bff4d1f SHA512 fd39ad2e4f3bdda9967e76f6e9b9c6845119814a2f00b770592500bce2787218002320b0df28d255cdeb4f707a82bb40dee27b7c01aef6dc5cb0dd6010332195
26 DIST openrct2-replays-0.0.70.zip 1479468 BLAKE2B 862eed6955124d5a5fbe289aee8cfaca2b4b13c680174b041d9e6f79cd02fb5b2cae42c8ae5d58493b1896824fdde75a138c071192be6f46463e0ffa293accbf SHA512 f874c931329cf78c8e4b438eed05c7340bfb920a9b0d6394165a22517543efe4f760f112579aca20e0576659f0103558083af975d9486dfbd307ad61506c811f
27 DIST openrct2-title-sequences-0.4.0.zip 7945853 BLAKE2B 51f07af30c3702754d806829fe612891a883adc70b8e89f64094b28c94879e5c98feca69f3c1f389ceeb33a99175b41afa794a4f2d121280dcce97c428d2ea99 SHA512 fcfabb02fb7cb9dda7f73f8a24fb426e23b1ea4c417deacd7147e4d2e8942223e0cf9d9cc6ae371f7508e8d3b1f3161e05677a301a330ae265b6610e1c5da487
28
29 diff --git a/games-simulation/openrct2/openrct2-0.4.2.ebuild b/games-simulation/openrct2/openrct2-0.4.2.ebuild
30 deleted file mode 100644
31 index a9e342c80f54..000000000000
32 --- a/games-simulation/openrct2/openrct2-0.4.2.ebuild
33 +++ /dev/null
34 @@ -1,167 +0,0 @@
35 -# Copyright 1999-2022 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=8
39 -
40 -inherit cmake readme.gentoo-r1 xdg-utils
41 -
42 -MY_PN="OpenRCT2"
43 -MY_PN_OBJ="objects"
44 -MY_PN_RPL="replays"
45 -MY_PN_TS="title-sequences"
46 -MY_PV_OBJ="1.3.5"
47 -MY_PV_RPL="0.0.69"
48 -MY_PV_TS="0.4.0"
49 -
50 -DESCRIPTION="An open source re-implementation of Chris Sawyer's RollerCoaster Tycoon 2"
51 -HOMEPAGE="https://openrct2.org/"
52 -SRC_URI="
53 - https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
54 - 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
55 - 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
56 - 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 )
57 -"
58 -S="${WORKDIR}/${MY_PN}-${PV}"
59 -
60 -LICENSE="GPL-3"
61 -SLOT="0"
62 -KEYWORDS="amd64 ~arm ~arm64 x86"
63 -IUSE="dedicated +flac +opengl scripting test +truetype +vorbis"
64 -RESTRICT="!test? ( test )"
65 -
66 -COMMON_DEPEND="
67 - dev-libs/icu:=
68 - dev-libs/jansson:=
69 - dev-libs/libzip:=
70 - media-libs/libpng:=
71 - net-misc/curl[ssl]
72 - sys-libs/zlib
73 - !dedicated? (
74 - media-libs/libsdl2
75 - media-libs/speexdsp
76 - flac? ( media-libs/flac:= )
77 - opengl? ( virtual/opengl )
78 - vorbis? ( media-libs/libvorbis )
79 - )
80 - dev-libs/openssl:0=
81 - scripting? ( dev-lang/duktape:= )
82 - truetype? (
83 - media-libs/fontconfig:1.0
84 - media-libs/freetype:2
85 - )
86 -"
87 -
88 -RDEPEND="
89 - ${COMMON_DEPEND}
90 - dedicated? (
91 - acct-group/openrct2
92 - acct-user/openrct2
93 - )
94 -"
95 -
96 -DEPEND="
97 - ${COMMON_DEPEND}
98 - dev-cpp/nlohmann_json
99 - test? ( dev-cpp/gtest )
100 -"
101 -
102 -BDEPEND="
103 - app-arch/unzip
104 - virtual/pkgconfig
105 -"
106 -
107 -PATCHES=(
108 - "${FILESDIR}/${PN}-0.4.0-include-additional-paths.patch"
109 - "${FILESDIR}/${PN}-0.4.1-gtest-1.10.patch"
110 -)
111 -
112 -src_unpack() {
113 - unpack "${P}".tar.gz
114 -
115 - mkdir -p "${S}"/data/sequence || die
116 - cd "${S}"/data/sequence || die
117 - unpack "${PN}-${MY_PN_TS}-${MY_PV_TS}".zip
118 -
119 - mkdir -p "${S}"/data/object || die
120 - cd "${S}"/data/object || die
121 - unpack "${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}".zip
122 -
123 - if use test; then
124 - mkdir -p "${S}"/testdata/replays || die
125 - cd "${S}"/testdata/replays || die
126 - unpack "${PN}-${MY_PN_RPL}-${MY_PV_RPL}".zip
127 - fi
128 -}
129 -
130 -src_prepare() {
131 - cmake_src_prepare
132 -
133 - # Don't treat warnings as errors.
134 - sed -e 's/-Werror//' -i CMakeLists.txt || die
135 -}
136 -
137 -src_configure() {
138 - # Note: There is currently no support for Disord-RPC and Google Benchmark,
139 - # as both packages do not exist in Gentoo, so support for them has been disabled.
140 - local mycmakeargs=(
141 - -DDISABLE_DISCORD_RPC=ON
142 - $(usex !dedicated "-DDISABLE_FLAC=$(usex !flac)" "")
143 - -DDISABLE_GOOGLE_BENCHMARK=ON
144 - -DDISABLE_GUI=$(usex dedicated)
145 - -DDISABLE_HTTP=OFF
146 - -DDISABLE_IPO=ON
147 - -DDISABLE_NETWORK=OFF
148 - $(usex !dedicated "-DDISABLE_OPENGL=$(usex !opengl)" "")
149 - -DDISABLE_TTF=$(usex !truetype)
150 - $(usex !dedicated "-DDISABLE_VORBIS=$(usex !vorbis)" "")
151 - -DDOWNLOAD_OBJECTS=OFF
152 - -DDOWNLOAD_REPLAYS=OFF
153 - -DDOWNLOAD_TITLE_SEQUENCES=OFF
154 - -DENABLE_SCRIPTING=$(usex scripting)
155 - -DOPENRCT2_USE_CCACHE=OFF
156 - -DPORTABLE=OFF
157 - -DSTATIC=OFF
158 - -DWITH_TESTS=$(usex test)
159 - -DUSE_MMAP=ON
160 - )
161 -
162 - cmake_src_configure
163 -}
164 -
165 -src_test() {
166 - # Since the tests need the OpenRCT2 data,
167 - # we need to symlink them into the build directory,
168 - # otherwise some tests will fail, as they don't find the OpenRCT2 data.
169 - # It is currently not possible to override that path.
170 - # See: https://github.com/OpenRCT2/OpenRCT2/issues/6473
171 - ln -s "${S}"/data "${BUILD_DIR}" || die
172 -
173 - cmake_src_test
174 -}
175 -
176 -src_install() {
177 - use scripting && DOCS+=( "distribution/scripting.md" "distribution/openrct2.d.ts" )
178 -
179 - cmake_src_install
180 -
181 - if use dedicated; then
182 - newinitd "${FILESDIR}"/openrct2.initd openrct2
183 - newconfd "${FILESDIR}"/openrct2.confd openrct2
184 - fi
185 -
186 - readme.gentoo_create_doc
187 -}
188 -
189 -pkg_postinst() {
190 - readme.gentoo_print_elog
191 -
192 - xdg_desktop_database_update
193 - xdg_icon_cache_update
194 - xdg_mimeinfo_database_update
195 -}
196 -
197 -pkg_postrm() {
198 - xdg_desktop_database_update
199 - xdg_icon_cache_update
200 - xdg_mimeinfo_database_update
201 -}