summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-02-13 00:34:08 +0100
committerConrad Kostecki <conikost@gentoo.org>2021-02-13 00:34:08 +0100
commit33a9d9214df534a3aa9b32665e55e4c0c39c8b30 (patch)
tree7e6c35376007b0b3f28204472b865abad053e1fd /media-sound/volumeicon
parentdev-lang/lua: remove unused patches (diff)
downloadgentoo-33a9d9214df534a3aa9b32665e55e4c0c39c8b30.tar.gz
gentoo-33a9d9214df534a3aa9b32665e55e4c0c39c8b30.tar.bz2
gentoo-33a9d9214df534a3aa9b32665e55e4c0c39c8b30.zip
media-sound/volumeicon: fix libnotify
Closes: https://bugs.gentoo.org/749360 Closes: https://github.com/gentoo/gentoo/pull/10945 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'media-sound/volumeicon')
-rw-r--r--media-sound/volumeicon/files/volumeicon-0.5.1-fix-libnotify.patch22
-rw-r--r--media-sound/volumeicon/volumeicon-0.5.1-r2.ebuild41
2 files changed, 63 insertions, 0 deletions
diff --git a/media-sound/volumeicon/files/volumeicon-0.5.1-fix-libnotify.patch b/media-sound/volumeicon/files/volumeicon-0.5.1-fix-libnotify.patch
new file mode 100644
index 000000000000..bdfaa4f11a2d
--- /dev/null
+++ b/media-sound/volumeicon/files/volumeicon-0.5.1-fix-libnotify.patch
@@ -0,0 +1,22 @@
+From 78a9c23775ebe12d3f3be93c0798144a6e732d90 Mon Sep 17 00:00:00 2001
+From: John Lindgren <john.lindgren@aol.com>
+Date: Wed, 30 Dec 2015 20:50:46 -0500
+Subject: [PATCH] Add missing space in NOTIFY_CFLAGS.
+
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6ad78d5..c8b72bd 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -86,7 +86,7 @@ fi
+ if test "x${notify}" = xyes; then
+ # Check for libnotify
+ PKG_CHECK_MODULES([NOTIFY], [libnotify >= 0.5.0])
+-NOTIFY_CFLAGS+="-DCOMPILEWITH_NOTIFY"
++NOTIFY_CFLAGS+=" -DCOMPILEWITH_NOTIFY"
+ AC_SUBST(NOTIFY_CFLAGS)
+ AC_SUBST(NOTIFY_LIBS)
+ fi
diff --git a/media-sound/volumeicon/volumeicon-0.5.1-r2.ebuild b/media-sound/volumeicon/volumeicon-0.5.1-r2.ebuild
new file mode 100644
index 000000000000..37b89992df4f
--- /dev/null
+++ b/media-sound/volumeicon/volumeicon-0.5.1-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="A lightweight volume control that sits in your systray"
+HOMEPAGE="http://nullwise.com/volumeicon.html"
+SRC_URI="http://nullwise.com/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="libnotify"
+
+RDEPEND="
+ dev-libs/glib:2
+ media-libs/alsa-lib
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ libnotify? ( >=x11-libs/libnotify-0.7 )
+"
+DEPEND="
+ ${RDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.5.1-fix-libnotify.patch )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # $(use_enable !alsa oss) fails wrt #419891, is likely only for OSS4
+ econf $(use_enable libnotify notify)
+}