commit:     e34e279d5d5dee9ab8661490a2ab6b881be0d9e7
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  1 03:08:53 2020 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Feb  1 03:11:01 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e34e279d

games-emulation/mgba: Added "discord" USE flag

Thanks-to: Esteve Varela Colominas <esteve.varela <AT> gmail.com>
Closes: https://bugs.gentoo.org/707576
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 games-emulation/mgba/metadata.xml      | 1 +
 games-emulation/mgba/mgba-0.8.0.ebuild | 3 ++-
 games-emulation/mgba/mgba-9999.ebuild  | 3 ++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/games-emulation/mgba/metadata.xml 
b/games-emulation/mgba/metadata.xml
index ef2909f744e..d65ffa04f67 100644
--- a/games-emulation/mgba/metadata.xml
+++ b/games-emulation/mgba/metadata.xml
@@ -6,6 +6,7 @@
     <name>Lars Wendler</name>
   </maintainer>
   <use>
+    <flag name="discord">Enable Discord RPC support</flag>
     <flag name="elf">Enable the use of elf utils via 
<pkg>dev-libs/elfutils</pkg></flag>
   </use>
   <upstream>

diff --git a/games-emulation/mgba/mgba-0.8.0.ebuild 
b/games-emulation/mgba/mgba-0.8.0.ebuild
index cc49129ae05..15a46f8a700 100644
--- a/games-emulation/mgba/mgba-0.8.0.ebuild
+++ b/games-emulation/mgba/mgba-0.8.0.ebuild
@@ -19,7 +19,7 @@ else
 fi
 LICENSE="MPL-2.0"
 SLOT="0"
-IUSE="debug elf ffmpeg libav opengl qt5 +sdl sqlite"
+IUSE="debug discord elf ffmpeg libav opengl qt5 +sdl sqlite"
 REQUIRED_USE="|| ( qt5 sdl )
                qt5? ( opengl )"
 
@@ -72,6 +72,7 @@ src_configure() {
                -DM_CORE_GB=ON
                -DM_CORE_GBA=ON
                -DUSE_DEBUGGERS="$(usex debug)"
+               -DUSE_DISCORD_RPC="$(usex discord)"
                -DUSE_EDITLINE="$(usex debug)"
                -DUSE_ELF="$(usex elf)"
                -DUSE_EPOXY=OFF

diff --git a/games-emulation/mgba/mgba-9999.ebuild 
b/games-emulation/mgba/mgba-9999.ebuild
index 3543aa68ebf..1200fa57ed4 100644
--- a/games-emulation/mgba/mgba-9999.ebuild
+++ b/games-emulation/mgba/mgba-9999.ebuild
@@ -19,7 +19,7 @@ else
 fi
 LICENSE="MPL-2.0"
 SLOT="0"
-IUSE="debug elf ffmpeg libav opengl qt5 +sdl sqlite"
+IUSE="debug discord elf ffmpeg libav opengl qt5 +sdl sqlite"
 REQUIRED_USE="|| ( qt5 sdl )
                qt5? ( opengl )"
 
@@ -68,6 +68,7 @@ src_configure() {
                -DM_CORE_GB=ON
                -DM_CORE_GBA=ON
                -DUSE_DEBUGGERS="$(usex debug)"
+               -DUSE_DISCORD_RPC="$(usex discord)"
                -DUSE_EDITLINE="$(usex debug)"
                -DUSE_ELF="$(usex elf)"
                -DUSE_EPOXY=OFF

Reply via email to