summaryrefslogtreecommitdiff
path: root/games-emulation
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/Manifest.gzbin9532 -> 9534 bytes
-rw-r--r--games-emulation/pcsx2/Manifest4
-rw-r--r--games-emulation/pcsx2/pcsx2-1.7.3820.ebuild (renamed from games-emulation/pcsx2/pcsx2-1.7.3818.ebuild)0
-rw-r--r--games-emulation/ppsspp/Manifest11
-rw-r--r--games-emulation/ppsspp/ppsspp-1.13.2.ebuild100
-rw-r--r--games-emulation/ppsspp/ppsspp-1.14.2.ebuild65
6 files changed, 69 insertions, 111 deletions
diff --git a/games-emulation/Manifest.gz b/games-emulation/Manifest.gz
index 798fa0d75c52..858cd6632b45 100644
--- a/games-emulation/Manifest.gz
+++ b/games-emulation/Manifest.gz
Binary files differ
diff --git a/games-emulation/pcsx2/Manifest b/games-emulation/pcsx2/Manifest
index 53bcdc6e91b3..58a666609fa1 100644
--- a/games-emulation/pcsx2/Manifest
+++ b/games-emulation/pcsx2/Manifest
@@ -10,13 +10,13 @@ AUX pcsx2-1.7.3773-lto.patch 316 BLAKE2B 1c6e1d302545f5711a89058898616e4280c9694
AUX pcsx2-1.7.3803-rapidyaml-0.5.0.patch 2452 BLAKE2B 69584d5871eb8888eef5240a0cdc8bb0c2470e08f5e103733a6662a59e4b25f3e6f5f1cddfcb0a4036c876820f6ee0284655d388192f43848d632835cc7518f7 SHA512 a4f22eea623460f8e0b7a5d5965646e8b7f94d4b2cca28d123d05d8738194d844c5d5bd09f01f178f006990682c7b19c197703e8e450d7aef16569d836737149
DIST pcsx2-1.6.0.tar.gz 17963332 BLAKE2B d1370fd089e1f8716a3365b9f499fef9418c4a9464e701cf0dbac8296cf59a2c6fc9b85ed680c514d8128da7b5c47aa8a067d48cac9eb0482ef2ba5f9234e60e SHA512 0a3e01a25384719fc72b636a1e9cf1cd966d0c978c1c3adfb46d6b3f76f43a25f90ef63d27a1d8092cdf444c5dc7560ce807ca81908d11ade9715e7eaaad6253
DIST pcsx2-1.7.3738.tar.gz 15935061 BLAKE2B 51e113e2148c94861a3d6baab8de5b8ed613cdb6e3aa3574445f0a66e628dffb3bf26a6a3b54e0be65d71a90088fe6e79f65055d54e580d46ad4db1dadbb8a66 SHA512 7da8dd46cd065fefc4c2bb4ab76b8fc2bf9769dba78f47759c59b2a21e62cf0e5d53e9f800e16bf09238bf156cd7fa63a4ca75a47f41b78df9512a701536c789
-DIST pcsx2-1.7.3818.tar.gz 9165699 BLAKE2B adfff6d4c1fc74e6fab052a03ec42b519f3cd9898c5719482e8b9bbdb9d224caf9a4bb95aef3e4f3993944e877e9a4f79e48d74e427c59c70c1480238ee0146b SHA512 4a3bdd4d4b18fa06fd942ed93ff2bc9dd5e332bdf59ba5fc54b185e6e58957d4f5da74e4371cfb6964696a2ed08df61fdc1d3738ce9b781a39c7c08f10e9c99e
+DIST pcsx2-1.7.3820.tar.gz 9166019 BLAKE2B 39bff314dcdea0baebafe51e61d390d235afed77a538de16687fd1bdeb543abc6c44ec3a9dfa75c8466f3ec8808d72997878b2c661a0af890875b05e293a0834 SHA512 6e4d94454143d652e0ea41a0d919153a868856c746aadf90692cb6edeada2ce0ee07802fa815856072905ea28cfa5131752ec34f9947bd911be32e73e34839d5
DIST pcsx2-fast_float-32d21dcecb.tar.gz 76108 BLAKE2B 7a4e8e3bb67387c03912e5f7035ba3fab1aeaa119b36ebdeb14c45069b3270270a8b87de2774ec325d8ed2ef0604a3d3762432d42f1e026a213990ac39341e10 SHA512 2cbdc5b05ab7c19e20b4e34959b90d1fa866d4ba239ec0a4c434cd33bddfb1cb6f1da467b0a525f5a4887c9b1860e975fe074aca0d9e211f0fc7bc6402d3601e
DIST pcsx2-glslang-c9706bdda0.tar.gz 3433325 BLAKE2B f2449a6c8b05e47367164d09036ae2302f0f28ec83c2e2f401426f52fbd4edf55f717f01eea2cbfe7554e1004b89ffdebc34ec21a95809fcbc719f69e65e8487 SHA512 5ff0902e95592525b2671788bf27717c85d0876b31e96374eff5128f9bf7caf93bb636e4d5e1916a5d641715a780172308403bd49305d9a07cf66358d7e6407c
DIST pcsx2-rcheevos-31f8788fe0.tar.gz 522855 BLAKE2B 39533199f6b1e0cd821d817ff57101ccad0049f5144b856f1e796c83d81fcee059caa944a0fb14a0e95e51da43a6bc003cd6891ca85c2b9a959b4c42d8ca0a84 SHA512 cb0e8bf4d222f3ef127d20a9d6738e6c39d7cff48a0da8fe19fcc43669433b7e53cc63ab332e8f0cd935b6a33eddef3e741ee862a82bd4f29a02df1d9a42ec45
DIST pcsx2-vulkan-headers-9f4c61a314.tar.gz 1554220 BLAKE2B 7f7fa093e8af30919dd743768e6d882fa40800fecedf1183a45568dbb81207ffdf9eed1beadba98160c61bac89a24182794a601a2dce0c91cf54e16d0080cb69 SHA512 8b5fa5bcf6bd8ae5fb44000e4b842d86c014e9d8dae9bff988f86ec359fc27db3f71dc96253ceb2f31da4db41a6585034bb185f68da5446e91293bb0c2bbf993
EBUILD pcsx2-1.6.0-r3.ebuild 2647 BLAKE2B 7d7a0e595d3d8297f3ae0049b3c376f404eeb5a6f477486076e5ac2b72dae6065c97b845f715f4e7e52af158b9dfbe6bbc5cf4f10d051838eafe44553f76efd3 SHA512 18b6131c6ff0b292f4dde4a54b4a5c698a403860ab332e01f181e18931e5ac14cc131ce140de563125f63eeb8b3523b51c6df4f4ecf2086a00e000d4e3d0289b
EBUILD pcsx2-1.7.3738.ebuild 7223 BLAKE2B c02603d27c072519b2e52392dbaad897921af6671593b04ad38d26fe0ef12a33893143c3e2066d04f75cbdd20d5114b26a4a9022fac6bdb6fd872f897633e2ce SHA512 04091cd4c39016d0934468c3e215b6463d488790b978038b306dbc5c205232c685a3bdde823e0868da4d760ea80b761f6dfb5d1e4ba03035f98189d95b09c685
-EBUILD pcsx2-1.7.3818.ebuild 7550 BLAKE2B bd11dd6dbb177ef330d387638301a2fbcf4a2de4717559c291568d7ecf948af42f6145a5651a30fac770295955bf4a96bf4d303886376b2274642314be26ff15 SHA512 7c42b4f7b22751c2fe23d2873b865c7cba71b43c2c2d8f9a41226b2d7dbacf8c444cf0cf9612dee04cfc445b40c9157eb66fcc39aef51a9a3cc4fe4d95053f2f
+EBUILD pcsx2-1.7.3820.ebuild 7550 BLAKE2B bd11dd6dbb177ef330d387638301a2fbcf4a2de4717559c291568d7ecf948af42f6145a5651a30fac770295955bf4a96bf4d303886376b2274642314be26ff15 SHA512 7c42b4f7b22751c2fe23d2873b865c7cba71b43c2c2d8f9a41226b2d7dbacf8c444cf0cf9612dee04cfc445b40c9157eb66fcc39aef51a9a3cc4fe4d95053f2f
EBUILD pcsx2-9999.ebuild 7550 BLAKE2B bd11dd6dbb177ef330d387638301a2fbcf4a2de4717559c291568d7ecf948af42f6145a5651a30fac770295955bf4a96bf4d303886376b2274642314be26ff15 SHA512 7c42b4f7b22751c2fe23d2873b865c7cba71b43c2c2d8f9a41226b2d7dbacf8c444cf0cf9612dee04cfc445b40c9157eb66fcc39aef51a9a3cc4fe4d95053f2f
MISC metadata.xml 805 BLAKE2B eb7ce944f7dc5b1889cc2b59f389eafabe9d5e44c4a730fa1352b0a00aec0f97d607204c440a9ce014e02f5b1a73c6ccd294074e7ce41f563c6c3643614ac9f6 SHA512 e8d939f76830204283557319961b4e3aab557e1c3e36fbfc98d4605b0728adb42d0731a05da998eb099f6b0df837eef7616cddb1e62b006979fb9262c172d961
diff --git a/games-emulation/pcsx2/pcsx2-1.7.3818.ebuild b/games-emulation/pcsx2/pcsx2-1.7.3820.ebuild
index eebe34cc10de..eebe34cc10de 100644
--- a/games-emulation/pcsx2/pcsx2-1.7.3818.ebuild
+++ b/games-emulation/pcsx2/pcsx2-1.7.3820.ebuild
diff --git a/games-emulation/ppsspp/Manifest b/games-emulation/ppsspp/Manifest
index 61f6012ca2e8..6261e7069e28 100644
--- a/games-emulation/ppsspp/Manifest
+++ b/games-emulation/ppsspp/Manifest
@@ -1,16 +1,9 @@
AUX ppsspp-CMakeLists-flags.patch 913 BLAKE2B 7bd5df94b51dad35325586f7ad23284436ba670a8c2218a4a6bfb28fb5a055240aeb0543fe331310a0d86d3661cbdf418689a592139ff832802ba1fabbd10fc3 SHA512 5b2ee899b2fbed7229d4abc027e2a010327be4d334e343f977319c475feaf2d180bd74d3640022d0175b11e8256035c828dd4cf03c8a5b9240c989b2d7f72fb7
AUX ppsspp-disable-ccache-autodetection.patch 753 BLAKE2B aa580bb2c657830bb079618e83903c4a0e28aa13acd612592f58feae2b0ef98535ea6f7e3c76aa9e74004aa80367aea372aec443bb2b789d5f3e7359872ea34f SHA512 cbf1f6e9f200cfa3b51bb84e09206a85aaea38511c0036a24d5e12547c659019fe88fbf221d2f7ddbdb9f0129f8b0fabb24baa594c658ab5ab584a0a723bc1c4
-DIST ppsspp-1.13.2-ext_SPIRV-Cross.tar.gz 1441538 BLAKE2B 011a0bc8fea2a5986b5884f315d877d0de111dbda226cc6aa5eaf11c0b2cb14acfd94c1279fb80f0a48b27d1a2117487f634a0888f7499d733261c0ced94ea89 SHA512 be77131814691dfbe65de3a2d3ea65de98c7169824997056637bbce39485327ff0f64e7eed8588237615948824e1f9dff1d083472b8cbccd3748a52379411e4e
-DIST ppsspp-1.13.2-ext_armips.tar.gz 197263 BLAKE2B 2b2cbeaabf5fb5f0b5cbf8c93ea61d4546e04054f54be5a7dad081ca0aaacf09d1fe1cc710fd0c66f28c7d4c84b98961a6d96bb9cea941f8b02492c1dff6344d SHA512 2a94e2c7b7280c00a39c8fc92d81ed15fc4b3270a124ef882e3cd8878db6ec827aefa06b0e646a60916636a95e4ebfa886e9878ba70c6bcfcd048def457368be
-DIST ppsspp-1.13.2-ext_discord-rpc.tar.gz 2108078 BLAKE2B e89ee4a196167cabaecfab82d191516eb0cf0fa89e35f95b6d118d5baad25f5d13d9002a8dcfe4aba099af7b9c1eb72835eb3baa9e4deaedd2754e99687b5967 SHA512 06205287addabfb343ccd9af997b693ed221fe564355d3629d4dee6c003e768b3f65f2b34eb04ef29807a15c5fa34b04c664212b7e0d15b09ad9a4e4be10a560
-DIST ppsspp-1.13.2-ext_glslang.tar.gz 3300622 BLAKE2B 0f0d8e043662962f13c4277da335def78a88dd1b35ac2e40b0192f0783c43fd97367d63663764591a5b1eef1bc62c681aa54a402e69c36a8dc50b3595e9e8ba9 SHA512 39b7fd1332dc2f6e29c920961e2a48a33cb7fb36753a0ee5ea8897cb2ad11cec67808ec671cd1bdecbb03eb17f4e83a711013bb20a8cc0831879eb9fbe432bcd
-DIST ppsspp-1.13.2-ext_miniupnp.tar.gz 449099 BLAKE2B b2bcdee23c817cf309dd9516e32e06f7e1eadc9ae24db3519a2b4e3861417fb79c0708d6d67e8baec3de9e6c5c2bb0a6daff648bf63f7c419192729957e9959c SHA512 f86f558699e75e7f8a58bbb5e94c2a32d703432cef05ffeac0da129113a1fe485cc5ad43b1fcfda11ee1ee398fa434511eccc37633eb5d3dfe8af864097669de
-DIST ppsspp-1.13.2-ext_native_tools_prebuilt.tar.gz 897571 BLAKE2B b1c959a0cd1c61f65b3d7e2c204e9b60fc00e551d72ef3edcb8a3c8851e1e8d1dd3b0f79594ffd0ec767ba0ca34ae7fc8d3a5171ca5b449fcbab8ab9f63e22a9 SHA512 5e1b3d8c0cf581014e6fa375b865725a383128818df6e5135a03b1513807d2b8f615a7e58d37ca805d0603ea75d24e41fe079eaf4f41e94af1077d4c4b0c5a93
-DIST ppsspp-1.13.2-ext_rapidjson.tar.gz 1054419 BLAKE2B 40b8ba0884943de2179b21d7a56716efed2ec5b4098aa33c061e52703b0952930fe2f1bda8cb6ec4a75b947753011e9d06fda953a3862e321d2a0187cd60385d SHA512 3472e129e710bf5343b8b27a61581a1480c8096493e466440b62702d8b5353745d561931f72b5405a736ad92525be3843ea1cf4b5ea5839721cc6d6b358f19bc
-DIST ppsspp-1.13.2.tar.gz 31676739 BLAKE2B 913c5be8a40286103f402cd369edb3f8709745204b32f076206532b2bdadd286cd10980009a9613e06537fb62b3e560026631030183362e64b60263c2c1884fd SHA512 09c9fb12e03fb573bb4ac801a807dfbe883316e184750461752d986d00358f4e61153737a5018dd16d8c3082be88566878b3e3357e27267184f8bf4287695227
DIST ppsspp-1.14.1.tar.xz 46414036 BLAKE2B c0076550aea53a878e199c5767bab005df266436d0dc7acb1dc00537c4709854287202f8c5525871c93b103a59406d03b19481a644f9d5985f83d8703659d457 SHA512 b33e43e14eafeea54d40f4f0d332d4f683b80ef6dace66e6101199e7141829b7858c7f94d5a4696393022c0453fcd7ce77858279a31b2ffba5bfcaa72e675b18
+DIST ppsspp-1.14.2.tar.xz 46414560 BLAKE2B 3b1cc4a1f7824be4fe0e9abaf52df333965a9b2000bb412b71ea8308a75d4f250ff80c8097856720eb6339926e0b73bb725844f6cabeededc0c2475342a003a9 SHA512 767345235faa54c6a0c19c41fead43f67c39d7f84cd3d573523a745cd082166910090789a985873be047ecaf17513ef318362041f5dcc2b068b1ff061d787f79
DIST ppsspp-1.14.tar.xz 46411788 BLAKE2B 30333f0b3a0bdf1064b82778e10f300145a6a958f80f6384201c4bbfd4387b2d7e4cbe9863d5ebc823d433efc9fb68090eb39b7051b21a3ae1dd6f92ba6d3f1a SHA512 e8c9a12f480b71da39d9d3caf8d4be30159c02fed2277ee671689236538ce1421bfdf6525f6488087e7c47b11d5de5de78d9b0404b9da579f2bbf25648dc97b2
-EBUILD ppsspp-1.13.2.ebuild 2867 BLAKE2B c24e8b63995320da15ae8084321e1cbaca5f35235e56b41a0061efa1068ce577ec90f8429698ac6501f9d81f13c4cd4ca78b73ddbd7be6ec8b54adf46c6fdf61 SHA512 71a6d8fa8d91421e4d0c86456717b3d76c755e5892d5bbd8a853da66e1f6842e0786724f1a66319c8b0e026265cdf1cdf3496b078071d403ff41386da8144e49
EBUILD ppsspp-1.14.1.ebuild 1275 BLAKE2B 83df7cd0cb89122db3c18bec312ef5ea13f632b5e06a54f163edd55c2259727a5dc039b1a1462a82e61c8c6d0ff1c13d4458b4351e93b6fa08b75bb91fba0e0a SHA512 8ddf680d98a1c7cd9bf35f39dc1ea3fc4b9accd4beabfa16c44ac65b098a88d1ccb97d21f4e16241fc691ef0d7934253da1a1a10ea0884b8e94d852567bea519
+EBUILD ppsspp-1.14.2.ebuild 1391 BLAKE2B ea36560e89f0e48fe1064280b62599cf649db7ce39ed287dd66353fcfc8a39ca3ae64f12ff03b4a5b5dc3cdd3a89a6dd8c2eb39dcf354a29abd3b39b2cf4b703 SHA512 e779d03b9d565e5f748f813e6c3154603552489dfa1bad3079bf9804fc40c252ef3c6f7ebcf1601fd1ce69db0997e1895aded15d0ca66938771f4ff941d8352d
EBUILD ppsspp-1.14.ebuild 1275 BLAKE2B 83df7cd0cb89122db3c18bec312ef5ea13f632b5e06a54f163edd55c2259727a5dc039b1a1462a82e61c8c6d0ff1c13d4458b4351e93b6fa08b75bb91fba0e0a SHA512 8ddf680d98a1c7cd9bf35f39dc1ea3fc4b9accd4beabfa16c44ac65b098a88d1ccb97d21f4e16241fc691ef0d7934253da1a1a10ea0884b8e94d852567bea519
MISC metadata.xml 526 BLAKE2B 19d0378d36d2b1d81ce404a95d98488b54f4368c72a7397b6d7c9a444edec9c19d146295cfc247a75aca1e1b5d1643161a627b80ea76aa8d43189a5eb14380c2 SHA512 7a8c8a7c05acdc110422d7c38552c8106d1886a672e6bda1212ce9cba737ae5e89e6624010d5bc3149b8da7c061b10295a721c74e7377587ec52ec7be2237855
diff --git a/games-emulation/ppsspp/ppsspp-1.13.2.ebuild b/games-emulation/ppsspp/ppsspp-1.13.2.ebuild
deleted file mode 100644
index 2d55e7f90bad..000000000000
--- a/games-emulation/ppsspp/ppsspp-1.13.2.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit desktop xdg cmake
-
-DESCRIPTION="A PSP emulator written in C++"
-HOMEPAGE="https://www.ppsspp.org/"
-SRC_URI="
- https://github.com/hrydgard/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
- https://github.com/KhronosGroup/SPIRV-Cross/archive/9acb9ec31f5a8ef80ea6b994bb77be787b08d3d1.tar.gz -> ${P}-ext_SPIRV-Cross.tar.gz
- https://github.com/Kingcom/armips/archive/7885552b208493a6a0f21663770c446c3ba65576.tar.gz -> ${P}-ext_armips.tar.gz
- https://github.com/Tencent/rapidjson/archive/73063f5002612c6bf64fe24f851cd5cc0d83eef9.tar.gz -> ${P}-ext_rapidjson.tar.gz
- https://github.com/hrydgard/glslang/archive/dc11adde23c455a24e13dd54de9b4ede8bdd7db8.tar.gz -> ${P}-ext_glslang.tar.gz
- https://github.com/hrydgard/miniupnp/archive/3a87be33e797ba947b2b2a5f8d087f6c3ff4d93e.tar.gz -> ${P}-ext_miniupnp.tar.gz
- https://github.com/hrydgard/ppsspp-freetype/archive/cbea79dc8fef4d9210e2bac7e7b9b5ff3388197a.tar.gz -> ${P}-ext_native_tools_prebuilt.tar.gz
- discord? ( https://github.com/discordapp/discord-rpc/archive/963aa9f3e5ce81a4682c6ca3d136cddda614db33.tar.gz -> ${P}-ext_discord-rpc.tar.gz )
-"
-
-LICENSE="Apache-2.0 BSD BSD-2 GPL-2 JSON MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="discord qt5"
-RESTRICT="test"
-
-RDEPEND="
- app-arch/snappy:=
- app-arch/zstd:=
- dev-libs/libzip:=
- dev-util/glslang:=
- media-libs/glew:=
- media-libs/libpng:=
- media-libs/libsdl2[joystick]
- media-video/ffmpeg:0/56.58.58
- sys-libs/zlib:=
- virtual/opengl
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtgui:5[-gles2-only]
- dev-qt/qtmultimedia:5[-gles2-only]
- dev-qt/qtopengl:5[-gles2-only]
- dev-qt/qtwidgets:5[-gles2-only]
- )
- !qt5? ( media-libs/libsdl2[X,opengl,sound,video] )
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-CMakeLists-flags.patch
- "${FILESDIR}"/${PN}-disable-ccache-autodetection.patch
-)
-
-src_unpack() {
- unpack ${P}.tar.gz
-
- cd "${S}" || die
- local list=(
- ext_SPIRV-Cross
- ext_armips
- ext_glslang
- ext_miniupnp
- ext_native_tools_prebuilt
- ext_rapidjson
- )
- use discord && list+=( ext_discord-rpc )
-
- local i
- for i in "${list[@]}" ; do
- tar xf "${DISTDIR}/${P}-${i}.tar.gz" --strip-components 1 -C "${i//_//}" ||
- die "Failed to unpack ${P}-${i}.tar.gz"
- done
-}
-
-src_configure() {
- local mycmakeargs=(
- -DCMAKE_SKIP_RPATH=ON
- -DHEADLESS=false
- -DUSE_DISCORD=$(usex discord)
- -DUSE_SYSTEM_FFMPEG=ON
- -DUSE_SYSTEM_LIBZIP=ON
- -DUSE_SYSTEM_SNAPPY=ON
- -DUSE_SYSTEM_ZSTD=ON
- -DUSING_QT_UI=$(usex qt5)
- )
- cmake_src_configure
-}
-
-src_install() {
- insinto /usr/share/${PN}
- doins -r "${BUILD_DIR}/assets"
- exeinto /usr/bin
- doexe "${BUILD_DIR}"/PPSSPP$(usex qt5 Qt SDL)
- make_desktop_entry PPSSPP$(usex qt5 Qt SDL) "PPSSPP ($(usex qt5 Qt SDL))"
-
- local i
- for i in 16 24 32 48 64 96 128 256 512 ; do
- doicon -s ${i} icons/hicolor/${i}x${i}/apps/${PN}.png
- done
-}
diff --git a/games-emulation/ppsspp/ppsspp-1.14.2.ebuild b/games-emulation/ppsspp/ppsspp-1.14.2.ebuild
new file mode 100644
index 000000000000..b8d1f94a03d8
--- /dev/null
+++ b/games-emulation/ppsspp/ppsspp-1.14.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit python-any-r1 xdg cmake
+
+DESCRIPTION="A PSP emulator written in C++"
+HOMEPAGE="https://www.ppsspp.org/
+ https://github.com/hrydgard/ppsspp/"
+SRC_URI="https://github.com/hrydgard/${PN}/releases/download/v${PV}/${P}.tar.xz"
+
+LICENSE="Apache-2.0 BSD BSD-2 GPL-2 JSON MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="discord qt5"
+RESTRICT="test"
+
+RDEPEND="
+ app-arch/snappy:=
+ app-arch/zstd:=
+ dev-libs/libzip:=
+ dev-util/glslang:=
+ media-libs/glew:=
+ media-libs/libpng:=
+ media-libs/libsdl2[joystick]
+ media-video/ffmpeg:0/56.58.58
+ sys-libs/zlib:=
+ virtual/opengl
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5[-gles2-only]
+ dev-qt/qtmultimedia:5[-gles2-only]
+ dev-qt/qtopengl:5[-gles2-only]
+ dev-qt/qtwidgets:5[-gles2-only]
+ )
+ !qt5? ( media-libs/libsdl2[X,opengl,sound,video] )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-CMakeLists-flags.patch
+ "${FILESDIR}"/${PN}-disable-ccache-autodetection.patch
+)
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_SKIP_RPATH=ON
+ -DHEADLESS=false
+ -DUSE_DISCORD=$(usex discord)
+ -DUSE_SYSTEM_FFMPEG=ON
+ -DUSE_SYSTEM_LIBZIP=ON
+ -DUSE_SYSTEM_SNAPPY=ON
+ -DUSE_SYSTEM_ZSTD=ON
+ -DUSING_QT_UI=$(usex qt5)
+ )
+ cmake_src_configure
+}