commit: 33a9d9214df534a3aa9b32665e55e4c0c39c8b30 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Fri Feb 12 23:34:08 2021 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Fri Feb 12 23:34:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33a9d921
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 <AT> gentoo.org> .../files/volumeicon-0.5.1-fix-libnotify.patch | 22 ++++++++++++ media-sound/volumeicon/volumeicon-0.5.1-r2.ebuild | 41 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) 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 00000000000..bdfaa4f11a2 --- /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.lindg...@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 00000000000..37b89992df4 --- /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) +}