summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Utkin <andrey_utkin@gentoo.org>2020-11-02 20:23:36 +0000
committerAndrey Utkin <andrey_utkin@gentoo.org>2020-11-02 20:38:13 +0000
commite8943a444b958135530c7fac1c99f07f484e9f74 (patch)
treefbb88295c9013f9d59a47fe457a2b400c32ab20b /net-im/dino
parentlua-single.eclass: fix copy-pasto (diff)
downloadgentoo-e8943a444b958135530c7fac1c99f07f484e9f74.tar.gz
gentoo-e8943a444b958135530c7fac1c99f07f484e9f74.tar.bz2
gentoo-e8943a444b958135530c7fac1c99f07f484e9f74.zip
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@gentoo.org>
Diffstat (limited to 'net-im/dino')
-rw-r--r--net-im/dino/dino-9999.ebuild7
-rw-r--r--net-im/dino/metadata.xml1
2 files changed, 7 insertions, 1 deletions
diff --git a/net-im/dino/dino-9999.ebuild b/net-im/dino/dino-9999.ebuild
index 937678aeb91c..6e43b0dadff0 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 05d64fd0a3f9..65da392eaa06 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>