diff options
Diffstat (limited to 'net-im/discord')
-rw-r--r-- | net-im/discord/Manifest | 4 | ||||
-rw-r--r-- | net-im/discord/discord-0.0.58-r2.ebuild | 8 | ||||
-rw-r--r-- | net-im/discord/files/launcher.sh | 7 |
3 files changed, 14 insertions, 5 deletions
diff --git a/net-im/discord/Manifest b/net-im/discord/Manifest index 405e61ab5a13..beeea94fc7e3 100644 --- a/net-im/discord/Manifest +++ b/net-im/discord/Manifest @@ -1,4 +1,4 @@ -AUX launcher.sh 356 BLAKE2B 8602814acb3c62bb04ed77050c1de8443db4cd03a5b213b882b5491f8df32a56b5d3091b573c9be09d3561c3ad8e88ae862aa0b0e098b15d6d46fc4f2bbb057d SHA512 dac1c622889630b5db7dd9d77684a0ad36e20796d6212bf89bdca69a51ea58f670b87a2f55c24c9f8f27aa04a50d0bcc868df3ec813b525f1c838b078fd30740 +AUX launcher.sh 452 BLAKE2B ada0054ea8cc1c383c153794e7769cabfb97144d9e5abe5ff9fb9f3165bef47f7efa365d214c88647f9e04109898ff9ee8d5eb62fab56be483a711960e85581d SHA512 a6c25ff0ae0f0e14258bddfd93210c33fbbd350e87165d28fcd5943576634c58ccb723f9962d3b160af079553ffd039326c402eceaa8a760d547405787650239 DIST discord-0.0.58.tar.gz 103212154 BLAKE2B 62b9d598c101c885cd87277020d1d1182fd288b4c3883f1f8b16f12fe62df81725dcc70167c644eb4195a0e6019004033f4775e37ae24382ff4eadddf0f0d465 SHA512 8efab6f4a476c05b620f3e95c082ae3f5423a2aaab310687f8b67711b0b34e7c82105e8c9ea5d4e0b92fc368443bc6a0e8970143d28ef7cb2d5f9e05f85b038d -EBUILD discord-0.0.58-r2.ebuild 3772 BLAKE2B 21587307a6c3f5511a3666f81ebfb8a9169c58939895cc43fd86eb3e3e6c8dfae47886cfddc6b80a124c20ef07100243f8b1a8de33b3e8c96f8113cb533e9908 SHA512 77eb8d8e7d8661ff8a740c5038b9c68cfbd1ff2c00cdacb51371f969a54a4f6cabc6d09e7fbeb9fa627515feac4c5343d7c62793dbf4361e4a61591730effc26 +EBUILD discord-0.0.58-r2.ebuild 3953 BLAKE2B 5108ee5a095f59114ad00d853f9d146ef0919aa802be7a84c3d61f134021e942c8abf699dbd066c82b310992629a80fd2764dc326b37fd0c6ad879ddfe8e5c9d SHA512 7d9a6560cf066d77301a87d83bcf54619f0291eabdd831911a7ead97eb5b4cecbc5db4b5f0adacbdba244c3c7ebdce4fb3fbc319964ca6c7b251e38697f1d92c MISC metadata.xml 506 BLAKE2B ff098a1c9341a94ebb21da57c3028d3d96e884e19e3adf2df8d50b694a1ca3eee61f5dfd90eaa557a0a0eee769fd11dfa7bbf63308386a11faa56d13687e33c3 SHA512 56baf0a5323057b4af83a7b7d760b2b1e071e15ca4eef6546eab4104fbdd026906f68d8023a3155f492d8d93cd7022c5d0017372cbaf2894b94bd253b2ce3665 diff --git a/net-im/discord/discord-0.0.58-r2.ebuild b/net-im/discord/discord-0.0.58-r2.ebuild index 2f44019d1175..9c133ac136e6 100644 --- a/net-im/discord/discord-0.0.58-r2.ebuild +++ b/net-im/discord/discord-0.0.58-r2.ebuild @@ -93,9 +93,15 @@ src_prepare() { # USE seccomp in launcher if use seccomp; then - sed --in-place --expression '/^SECCOMP=/s/false/true/' \ + sed --in-place --expression '/^EBUILD_SECCOMP=/s/false/true/' \ "${T}/launcher.sh" || die "sed failed for seccomp" fi + + # USE wayland in launcher + if use wayland; then + sed --in-place --expression '/^EBUILD_WAYLAND=/s/false/true/' \ + "${T}/launcher.sh" || die "sed failed for wayland" + fi } src_install() { diff --git a/net-im/discord/files/launcher.sh b/net-im/discord/files/launcher.sh index 032524ae68e9..2afc0caa50fd 100644 --- a/net-im/discord/files/launcher.sh +++ b/net-im/discord/files/launcher.sh @@ -4,10 +4,13 @@ declare -a discord_parameters -SECCOMP=false +# Variables set during ebuild configuration +EBUILD_SECCOMP=false +EBUILD_WAYLAND=false -[[ ! "${SECCOMP}" ]] && discord_parameters+=( --disable-seccomp-filter-sandbox ) +"${EBUILD_SECCOMP}" || discord_parameters+=( --disable-seccomp-filter-sandbox ) +"${EBUILD_WAYLAND}" && \ [[ -n "${WAYLAND_DISPLAY}" ]] && discord_parameters+=( --enable-features=UseOzonePlatform --ozone-platform=wayland |