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