commit:     e8943a444b958135530c7fac1c99f07f484e9f74
Author:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  2 20:23:36 2020 +0000
Commit:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
CommitDate: Mon Nov  2 20:38:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8943a44

net-im/dino: add USE flag for notification-sound plugin

Applied to 9999 ebuild only, for now.

Bug: https://bugs.gentoo.org/723510
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Andrey Utkin <andrey_utkin <AT> gentoo.org>

 net-im/dino/dino-9999.ebuild | 7 ++++++-
 net-im/dino/metadata.xml     | 1 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/net-im/dino/dino-9999.ebuild b/net-im/dino/dino-9999.ebuild
index 937678aeb91..6e43b0dadff 100644
--- a/net-im/dino/dino-9999.ebuild
+++ b/net-im/dino/dino-9999.ebuild
@@ -11,7 +11,7 @@ DESCRIPTION="Modern Jabber/XMPP Client using GTK+/Vala"
 HOMEPAGE="https://dino.im";
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="+gpg +http +omemo"
+IUSE="+gpg +http +omemo +notification-sound"
 
 MY_REPO_URI="https://github.com/dino/dino";
 if [[ ${PV} == "9999" ]]; then
@@ -39,6 +39,7 @@ RDEPEND="
                dev-libs/libgcrypt:0
                media-gfx/qrencode
        )
+       notification-sound? ( media-libs/libcanberra:0[sound] )
 "
 DEPEND="
        $(vala_depend)
@@ -57,7 +58,11 @@ src_configure() {
                $(usex omemo "" "omemo")
                $(usex http  "" "http-files")
        )
+       local enabled_plugins=(
+               $(usex notification-sound "notification-sound" "")
+       )
        local mycmakeargs+=(
+               "-DENABLED_PLUGINS=$(local IFS=";"; echo 
"${enabled_plugins[*]}")"
                "-DDISABLED_PLUGINS=$(local IFS=";"; echo 
"${disabled_plugins[*]}")"
                "-DVALA_EXECUTABLE=${VALAC}"
        )

diff --git a/net-im/dino/metadata.xml b/net-im/dino/metadata.xml
index 05d64fd0a3f..65da392eaa0 100644
--- a/net-im/dino/metadata.xml
+++ b/net-im/dino/metadata.xml
@@ -13,5 +13,6 @@
                <flag name="gpg">Enable OpenPGP encryption plugin</flag>
                <flag name="http">Enable HTTP file upload plugin</flag>
                <flag name="omemo">Enable OMEMO encryption plugin</flag>
+               <flag name="notification-sound">notification sounds 
plugin</flag>
        </use>
 </pkgmetadata>

Reply via email to