diff options
author | Maciej Barć <xgqt@protonmail.com> | 2020-12-06 22:47:58 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-12-11 09:58:10 +0200 |
commit | 0722271ca187e1c4c5f30ae32b4385fe766be942 (patch) | |
tree | ffd3af733627fd3d6ffa7a49a8482162a1762d25 /games-emulation/ppsspp | |
parent | net-libs/nativebiginteger: drop 0.9.45 (diff) | |
download | gentoo-0722271ca187e1c4c5f30ae32b4385fe766be942.tar.gz gentoo-0722271ca187e1c4c5f30ae32b4385fe766be942.tar.bz2 gentoo-0722271ca187e1c4c5f30ae32b4385fe766be942.zip |
games-emulation/ppsspp: add USE flag for discord-rpc
Closes: https://bugs.gentoo.org/758365
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18541
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'games-emulation/ppsspp')
-rw-r--r-- | games-emulation/ppsspp/metadata.xml | 1 | ||||
-rw-r--r-- | games-emulation/ppsspp/ppsspp-1.10.3.ebuild | 11 |
2 files changed, 6 insertions, 6 deletions
diff --git a/games-emulation/ppsspp/metadata.xml b/games-emulation/ppsspp/metadata.xml index 734835063341..d19785f0a0cc 100644 --- a/games-emulation/ppsspp/metadata.xml +++ b/games-emulation/ppsspp/metadata.xml @@ -10,6 +10,7 @@ <name>Proxy Maintainers</name> </maintainer> <use> + <flag name="discord">Enable interfacing with a locally running Discord desktop client</flag> <flag name="system-ffmpeg">Use the system-wide media-video/ffmpeg instead of bundled</flag> </use> <upstream> diff --git a/games-emulation/ppsspp/ppsspp-1.10.3.ebuild b/games-emulation/ppsspp/ppsspp-1.10.3.ebuild index 41b2ef1ee03e..c2d256e9a4fc 100644 --- a/games-emulation/ppsspp/ppsspp-1.10.3.ebuild +++ b/games-emulation/ppsspp/ppsspp-1.10.3.ebuild @@ -12,18 +12,18 @@ SRC_URI=" https://github.com/KhronosGroup/SPIRV-Cross/archive/a1f7c8dc8ea2f94443951ee27003bffa562c1f13.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/discordapp/discord-rpc/archive/3d3ae7129d17643bc706da0a2eea85aafd10ab3a.tar.gz -> ${P}-ext_discord-rpc.tar.gz https://github.com/hrydgard/glslang/archive/d0850f875ec392a130ccf00018dab458b546f27c.tar.gz -> ${P}-ext_glslang.tar.gz https://github.com/hrydgard/ppsspp-freetype/archive/cbea79dc8fef4d9210e2bac7e7b9b5ff3388197a.tar.gz -> ${P}-ext_native_tools_prebuilt.tar.gz https://github.com/hrydgard/ppsspp-lang/archive/fd6f5bc01afb419eacca538b425c01eb2a055393.tar.gz -> ${P}-assets_lang.tar.gz !system-ffmpeg? ( https://github.com/hrydgard/ppsspp-ffmpeg/archive/d3e695286cce346274192c214c00f021c00cd575.tar.gz -> ${P}-ffmpeg.tar.gz ) + discord? ( https://github.com/discordapp/discord-rpc/archive/3d3ae7129d17643bc706da0a2eea85aafd10ab3a.tar.gz -> ${P}-ext_discord-rpc.tar.gz ) " RESTRICT="test" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" -IUSE="qt5 sdl +system-ffmpeg" +IUSE="discord qt5 sdl +system-ffmpeg" REQUIRED_USE="!qt5? ( sdl )" RDEPEND=" @@ -57,14 +57,12 @@ src_unpack() { assets_lang ext_SPIRV-Cross ext_armips - ext_discord-rpc ext_glslang ext_native_tools_prebuilt ext_rapidjson ) - if ! use system-ffmpeg; then - list+=( ffmpeg ) - fi + ! use system-ffmpeg && list+=( ffmpeg ) + use discord && list+=( ext_discord-rpc ) 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 @@ -82,6 +80,7 @@ src_configure() { local mycmakeargs=( $(cmake_use_find_package sdl SDL2) -DHEADLESS=true + -DUSE_DISCORD=$(usex discord) -DUSE_SYSTEM_FFMPEG=$(usex system-ffmpeg) -DUSE_SYSTEM_LIBZIP=ON -DUSE_SYSTEM_SNAPPY=ON |