From a6266c63b23ed0ee16865627ca53e4f5353f0a5c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 17 Jul 2022 02:30:06 +0100 Subject: gentoo auto-resync : 17:07:2022 - 02:30:06 --- games-simulation/openrct2/Manifest | 4 +- games-simulation/openrct2/openrct2-0.4.1-r1.ebuild | 168 +++++++++++++++++++++ games-simulation/openrct2/openrct2-0.4.1.ebuild | 164 -------------------- games-simulation/openrct2/openrct2-9999.ebuild | 6 +- 4 files changed, 175 insertions(+), 167 deletions(-) create mode 100644 games-simulation/openrct2/openrct2-0.4.1-r1.ebuild delete mode 100644 games-simulation/openrct2/openrct2-0.4.1.ebuild (limited to 'games-simulation/openrct2') diff --git a/games-simulation/openrct2/Manifest b/games-simulation/openrct2/Manifest index f9f2e341173e..c9bcb238431b 100644 --- a/games-simulation/openrct2/Manifest +++ b/games-simulation/openrct2/Manifest @@ -11,6 +11,6 @@ DIST openrct2-objects-1.3.2.zip 3954437 BLAKE2B 21d79e35a3bad343a4f96e152f8b5f04 DIST openrct2-replays-0.0.67.zip 1479146 BLAKE2B 78e2872013e20ce389dd24d70aeeeb2fe3822dbc3bb6059308ad0f2014d0550fe26f85b7dbce7ed8373235e688e5a8e2817b16231a751871d22301d9e3d1ecf7 SHA512 41745238b61128777ae4fee1ecb7e9284d84d9b420d653b5371d1349bd00473a98beeaa41688903081390ad38b693cd5e54d230bfc2c255beabbef93ec326f69 DIST openrct2-title-sequences-0.4.0.zip 7945853 BLAKE2B 51f07af30c3702754d806829fe612891a883adc70b8e89f64094b28c94879e5c98feca69f3c1f389ceeb33a99175b41afa794a4f2d121280dcce97c428d2ea99 SHA512 fcfabb02fb7cb9dda7f73f8a24fb426e23b1ea4c417deacd7147e4d2e8942223e0cf9d9cc6ae371f7508e8d3b1f3161e05677a301a330ae265b6610e1c5da487 EBUILD openrct2-0.4.0.ebuild 3924 BLAKE2B 4a8d315a3cf45b6d27e012bb4c138d74cd45fe2f168d424dc277ddfd8c9d359e40e947ca48c5d0c0518d692e6f309ac7f985770f7adc4d6dbed0fd5991ade044 SHA512 1ccd0bb98691b68a125c2ed7ef2aa88326e979d34f6d9e81f1b132bd45fde59172fe23546b640fa19c4bf65a7c455ac071b087e3025670492c43f13a8ab6b155 -EBUILD openrct2-0.4.1.ebuild 3886 BLAKE2B 12d938638cb770f82e09c6c989f98460d981ea82f7fde60f0a9fa38b3469078b1b98428602615e4e65050250ec88102199b7038ee817dd49c9da93671b6a6122 SHA512 d4cfd4d674589c4c34e6da1b2a50f19f3721c781eebd903f250183df11e1c015ddcbb34fdba81db5ec4e9a27e5a08f7fd211415ceb543a65615bf800a2a10d5d -EBUILD openrct2-9999.ebuild 3845 BLAKE2B c96028650a16d8ec637b116ce6fddb55046d3fbb5b8a33cf58e2b07cd8aeb73968849ea12ee761032388a4d45da93bac6424c610bd28e0669762d5507a781bf3 SHA512 fa7c4005cb39cb5680e3bacc104cefa5a3704c76e8b029596cc74b1d2705e2f23c30035d3bb744d5fd5a1b15a6a2b617fea5d586914aeefd980c7d63412c5bf4 +EBUILD openrct2-0.4.1-r1.ebuild 4077 BLAKE2B 018a8ada5b3ebe2a00f33efcb7e143abd060770c2acd6b43ff524acc192bdda87145114ab76d2312282d669c9f9447a3f007f7693cde134a5d61ed744044373a SHA512 1e0885dd9a368df169b39348e02e1fabeea27a0c3b5918c9e5566b7c674622fb7087e8d426868dc28dec44291c86a030fe86a7679b5633b303f4dd7c2fc19297 +EBUILD openrct2-9999.ebuild 4036 BLAKE2B 90f163adea505584eb8a83e96940e1e3b8f316ac4388077ed1e4b6d25da9f2e27e737f9a94b8452b88feb59a1ca12db61b4cad749f62d47e6e61d0b798e26efc SHA512 6df7be32434c38e5b3d1910f076ff0fb5183607b3472248f4f2042498ddb273d23dd7d04608540cbe40d3678323f809e247c8e9a0f111090f3ac0e886e4378a4 MISC metadata.xml 1276 BLAKE2B 23704f52521432dde611251039fdefc1d1ed97615fb4dac1e137c309ee6b11d91ea25e4368e6d0d2520a2755b3c15eb2eb129ad4aa1593466ccd2168dbae0ed0 SHA512 c9ed6b7f79f32996d65309a70d850d1e4a8f1a46f805774a5dc7007d34a126f51b543392dc1248ad6d93c82854de942e3e68a1516c5ed84287108a0c337db395 diff --git a/games-simulation/openrct2/openrct2-0.4.1-r1.ebuild b/games-simulation/openrct2/openrct2-0.4.1-r1.ebuild new file mode 100644 index 000000000000..a3c712df2773 --- /dev/null +++ b/games-simulation/openrct2/openrct2-0.4.1-r1.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake readme.gentoo-r1 xdg-utils + +MY_PN="OpenRCT2" +MY_PN_OBJ="objects" +MY_PN_RPL="replays" +MY_PN_TS="title-sequences" +MY_PV_OBJ="1.3.2" +MY_PV_RPL="0.0.67" +MY_PV_TS="0.4.0" + +DESCRIPTION="An open source re-implementation of Chris Sawyer's RollerCoaster Tycoon 2" +HOMEPAGE="https://openrct2.org/" +SRC_URI=" + https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + 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 + 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 + 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 ) +" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 x86" +IUSE="dedicated +flac +lightfx +opengl scripting test +truetype +vorbis" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + dev-libs/icu:= + dev-libs/jansson:= + dev-libs/libzip:= + media-libs/libpng:0= + net-misc/curl[ssl] + sys-libs/zlib + !dedicated? ( + media-libs/libsdl2 + media-libs/speexdsp + flac? ( media-libs/flac ) + opengl? ( virtual/opengl ) + vorbis? ( media-libs/libvorbis ) + ) + dev-libs/openssl:0= + scripting? ( dev-lang/duktape:= ) + truetype? ( + media-libs/fontconfig:1.0 + media-libs/freetype:2 + ) +" + +RDEPEND=" + ${COMMON_DEPEND} + dedicated? ( + acct-group/openrct2 + acct-user/openrct2 + ) +" + +DEPEND=" + ${COMMON_DEPEND} + dev-cpp/nlohmann_json + test? ( dev-cpp/gtest ) +" + +BDEPEND=" + app-arch/unzip + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}/${PN}-0.4.0-include-additional-paths.patch" + "${FILESDIR}/${PN}-0.4.1-gtest-1.10.patch" +) + +src_unpack() { + unpack "${P}".tar.gz + + mkdir -p "${S}"/data/sequence || die + cd "${S}"/data/sequence || die + unpack "${PN}-${MY_PN_TS}-${MY_PV_TS}".zip + + mkdir -p "${S}"/data/object || die + cd "${S}"/data/object || die + unpack "${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}".zip + + if use test; then + mkdir -p "${S}"/testdata/replays || die + cd "${S}"/testdata/replays || die + unpack "${PN}-${MY_PN_RPL}-${MY_PV_RPL}".zip + fi +} + +src_prepare() { + cmake_src_prepare + + # Don't treat warnings as errors. + sed -e 's/-Werror//' -i CMakeLists.txt || die +} + +src_configure() { + # Note: There is currently no support for Disord-RPC and Google Benchmark, + # as both packages do not exist in Gentoo, so support for them has been disabled. + local mycmakeargs=( + -DDISABLE_DISCORD_RPC=ON + $(usex !dedicated "-DDISABLE_FLAC=$(usex !flac)" "") + -DDISABLE_GOOGLE_BENCHMARK=ON + -DDISABLE_GUI=$(usex dedicated) + -DDISABLE_HTTP=OFF + -DDISABLE_IPO=ON + -DDISABLE_NETWORK=OFF + $(usex !dedicated "-DDISABLE_OPENGL=$(usex !opengl)" "") + -DDISABLE_TTF=$(usex !truetype) + $(usex !dedicated "-DDISABLE_VORBIS=$(usex !vorbis)" "") + -DDOWNLOAD_OBJECTS=OFF + -DDOWNLOAD_REPLAYS=OFF + -DDOWNLOAD_TITLE_SEQUENCES=OFF + -DENABLE_LIGHTFX=$(usex lightfx) + -DENABLE_SCRIPTING=$(usex scripting) + -DOPENRCT2_USE_CCACHE=OFF + -DPORTABLE=OFF + -DSTATIC=OFF + -DWITH_TESTS=$(usex test) + -DUSE_MMAP=ON + ) + + cmake_src_configure +} + +src_test() { + # Since the tests need the OpenRCT2 data, + # we need to symlink them into the build directory, + # otherwise some tests will fail, as they don't find the OpenRCT2 data. + # It is currently not possible to override that path. + # See: https://github.com/OpenRCT2/OpenRCT2/issues/6473 + ln -s "${S}"/data "${BUILD_DIR}" || die + + cmake_src_test +} + +src_install() { + use scripting && DOCS+=( "distribution/scripting.md" "distribution/openrct2.d.ts" ) + + cmake_src_install + + if use dedicated; then + newinitd "${FILESDIR}"/openrct2.initd openrct2 + newconfd "${FILESDIR}"/openrct2.confd openrct2 + fi + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} diff --git a/games-simulation/openrct2/openrct2-0.4.1.ebuild b/games-simulation/openrct2/openrct2-0.4.1.ebuild deleted file mode 100644 index 086cc24d58f0..000000000000 --- a/games-simulation/openrct2/openrct2-0.4.1.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake readme.gentoo-r1 xdg-utils - -MY_PN="OpenRCT2" -MY_PN_OBJ="objects" -MY_PN_RPL="replays" -MY_PN_TS="title-sequences" -MY_PV_OBJ="1.3.2" -MY_PV_RPL="0.0.67" -MY_PV_TS="0.4.0" - -DESCRIPTION="An open source re-implementation of Chris Sawyer's RollerCoaster Tycoon 2" -HOMEPAGE="https://openrct2.org/" -SRC_URI=" - https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - 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 - 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 - 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 ) -" -S="${WORKDIR}/${MY_PN}-${PV}" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 x86" -IUSE="dedicated +lightfx +opengl scripting test +truetype" -RESTRICT="!test? ( test )" - -COMMON_DEPEND=" - dev-libs/icu:= - dev-libs/jansson:= - dev-libs/libzip:= - media-libs/libpng:0= - net-misc/curl[ssl] - sys-libs/zlib - !dedicated? ( - media-libs/libsdl2 - media-libs/speexdsp - opengl? ( virtual/opengl ) - ) - dev-libs/openssl:0= - scripting? ( dev-lang/duktape:= ) - truetype? ( - media-libs/fontconfig:1.0 - media-libs/freetype:2 - ) -" - -RDEPEND=" - ${COMMON_DEPEND} - dedicated? ( - acct-group/openrct2 - acct-user/openrct2 - ) -" - -DEPEND=" - ${COMMON_DEPEND} - dev-cpp/nlohmann_json - test? ( dev-cpp/gtest ) -" - -BDEPEND=" - app-arch/unzip - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/${PN}-0.4.0-include-additional-paths.patch" - "${FILESDIR}/${PN}-0.4.1-gtest-1.10.patch" -) - -src_unpack() { - unpack "${P}".tar.gz - - mkdir -p "${S}"/data/sequence || die - cd "${S}"/data/sequence || die - unpack "${PN}-${MY_PN_TS}-${MY_PV_TS}".zip - - mkdir -p "${S}"/data/object || die - cd "${S}"/data/object || die - unpack "${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}".zip - - if use test; then - mkdir -p "${S}"/testdata/replays || die - cd "${S}"/testdata/replays || die - unpack "${PN}-${MY_PN_RPL}-${MY_PV_RPL}".zip - fi -} - -src_prepare() { - cmake_src_prepare - - # Don't treat warnings as errors. - sed -e 's/-Werror//' -i CMakeLists.txt || die -} - -src_configure() { - # Note: There is currently no support for Disord-RPC and Google Benchmark, - # as both packages do not exist in Gentoo, so support for them has been disabled. - local mycmakeargs=( - -DDISABLE_DISCORD_RPC=ON - -DDISABLE_GOOGLE_BENCHMARK=ON - -DDISABLE_GUI=$(usex dedicated) - -DDISABLE_HTTP=OFF - -DDISABLE_IPO=ON - -DDISABLE_NETWORK=OFF - $(usex !dedicated "-DDISABLE_OPENGL=$(usex !opengl)" "") - -DDISABLE_TTF=$(usex !truetype) - -DDOWNLOAD_OBJECTS=OFF - -DDOWNLOAD_REPLAYS=OFF - -DDOWNLOAD_TITLE_SEQUENCES=OFF - -DENABLE_LIGHTFX=$(usex lightfx) - -DENABLE_SCRIPTING=$(usex scripting) - -DOPENRCT2_USE_CCACHE=OFF - -DPORTABLE=OFF - -DSTATIC=OFF - -DWITH_TESTS=$(usex test) - -DUSE_MMAP=ON - ) - - cmake_src_configure -} - -src_test() { - # Since the tests need the OpenRCT2 data, - # we need to symlink them into the build directory, - # otherwise some tests will fail, as they don't find the OpenRCT2 data. - # It is currently not possible to override that path. - # See: https://github.com/OpenRCT2/OpenRCT2/issues/6473 - ln -s "${S}"/data "${BUILD_DIR}" || die - - cmake_src_test -} - -src_install() { - use scripting && DOCS+=( "distribution/scripting.md" "distribution/openrct2.d.ts" ) - - cmake_src_install - - if use dedicated; then - newinitd "${FILESDIR}"/openrct2.initd openrct2 - newconfd "${FILESDIR}"/openrct2.confd openrct2 - fi - - readme.gentoo_create_doc -} - -pkg_postinst() { - readme.gentoo_print_elog - - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} diff --git a/games-simulation/openrct2/openrct2-9999.ebuild b/games-simulation/openrct2/openrct2-9999.ebuild index 63415cb53ad0..45c46cdb7566 100644 --- a/games-simulation/openrct2/openrct2-9999.ebuild +++ b/games-simulation/openrct2/openrct2-9999.ebuild @@ -27,7 +27,7 @@ SRC_URI=" LICENSE="GPL-3" SLOT="0" KEYWORDS="" -IUSE="dedicated +lightfx +opengl scripting test +truetype" +IUSE="dedicated +flac +lightfx +opengl scripting test +truetype +vorbis" COMMON_DEPEND=" dev-libs/icu:= @@ -39,7 +39,9 @@ COMMON_DEPEND=" !dedicated? ( media-libs/libsdl2 media-libs/speexdsp + flac? ( media-libs/flac ) opengl? ( virtual/opengl ) + vorbis? ( media-libs/libvorbis ) ) dev-libs/openssl:0= scripting? ( dev-lang/duktape:= ) @@ -105,6 +107,7 @@ src_configure() { # as both packages do not exist in Gentoo, so support for them has been disabled. local mycmakeargs=( -DDISABLE_DISCORD_RPC=ON + $(usex !dedicated "-DDISABLE_FLAC=$(usex !flac)" "") -DDISABLE_GOOGLE_BENCHMARK=ON -DDISABLE_GUI=$(usex dedicated) -DDISABLE_HTTP=OFF @@ -112,6 +115,7 @@ src_configure() { -DDISABLE_NETWORK=OFF $(usex !dedicated "-DDISABLE_OPENGL=$(usex !opengl)" "") -DDISABLE_TTF=$(usex !truetype) + $(usex !dedicated "-DDISABLE_VORBIS=$(usex !vorbis)" "") -DDOWNLOAD_OBJECTS=OFF -DDOWNLOAD_REPLAYS=OFF -DDOWNLOAD_TITLE_SEQUENCES=OFF -- cgit v1.2.3