Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/pasystray/
Date: Thu, 09 Mar 2017 20:31:00
Message-Id: 1489091397.b4d9f16e3d63b57e43265cc694c9751d9640f987.soap@gentoo
1 commit: b4d9f16e3d63b57e43265cc694c9751d9640f987
2 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
3 AuthorDate: Mon Mar 6 08:26:42 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 9 20:29:57 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4d9f16e
7
8 media-sound/pasystray: add missing dependency, minor fixes
9
10 - use vcs-snapshot instead of setting S
11 - add xdg-related functions
12 - use the default src_install
13 - update LICENSE to include later GPL versions
14 - remove useless sed
15
16 Suggested-By: lmiphay <AT> gmail.com
17 Bug: https://bugs.gentoo.org/show_bug.cgi?id=605246
18 Package-Manager: Portage-2.3.4, Repoman-2.3.2
19 Closes: https://github.com/gentoo/gentoo/pull/4138
20
21 media-sound/pasystray/metadata.xml | 1 +
22 media-sound/pasystray/pasystray-0.6.0.ebuild | 36 ++++++++++++++++------------
23 2 files changed, 22 insertions(+), 15 deletions(-)
24
25 diff --git a/media-sound/pasystray/metadata.xml b/media-sound/pasystray/metadata.xml
26 index be6f267a04e..2499ed091c1 100644
27 --- a/media-sound/pasystray/metadata.xml
28 +++ b/media-sound/pasystray/metadata.xml
29 @@ -16,5 +16,6 @@
30 </maintainer>
31 <upstream>
32 <remote-id type="github">christophgysin/pasystray</remote-id>
33 + <bugs-to>https://github.com/christophgysin/pasystray/issues</bugs-to>
34 </upstream>
35 </pkgmetadata>
36
37 diff --git a/media-sound/pasystray/pasystray-0.6.0.ebuild b/media-sound/pasystray/pasystray-0.6.0.ebuild
38 index 4a7f662207d..6e99a2f7019 100644
39 --- a/media-sound/pasystray/pasystray-0.6.0.ebuild
40 +++ b/media-sound/pasystray/pasystray-0.6.0.ebuild
41 @@ -1,19 +1,20 @@
42 -# Copyright 1999-2015 Gentoo Foundation
43 +# Copyright 1999-2017 Gentoo Foundation
44 # Distributed under the terms of the GNU General Public License v2
45
46 -EAPI=5
47 -inherit gnome2-utils autotools
48 +EAPI=6
49 +inherit gnome2-utils autotools vcs-snapshot xdg
50
51 DESCRIPTION="PulseAudio system tray"
52 HOMEPAGE="https://github.com/christophgysin/pasystray"
53 SRC_URI="https://github.com/christophgysin/${PN}/archive/${P}.tar.gz"
54
55 -LICENSE="LGPL-2.1"
56 +LICENSE="LGPL-2.1+"
57 SLOT="0"
58 KEYWORDS="~amd64 ~x86"
59 IUSE="libnotify"
60
61 RDEPEND="
62 + >=dev-libs/glib-2.48.2
63 >=media-sound/pulseaudio-5.0-r3[glib,zeroconf]
64 >=net-dns/avahi-0.6
65 x11-libs/gtk+:3
66 @@ -23,23 +24,28 @@ RDEPEND="
67 DEPEND="${RDEPEND}
68 virtual/pkgconfig"
69
70 -DOCS="AUTHORS README.md TODO"
71 -S=${WORKDIR}/${PN}-${P}
72 -
73 src_prepare() {
74 + default
75 eautoreconf
76 }
77 +
78 src_configure() {
79 econf $(use_enable libnotify notify)
80 - sed -i -e 's:volume:volume;:' "data/pasystray.desktop"
81 }
82
83 -src_install() {
84 - emake DESTDIR="${D}" install
85 - dodoc ${DOCS}
86 - doman man/pasystray.1
87 +pkg_preinst() {
88 + xdg_pkg_preinst
89 + gnome2_icon_savelist
90 }
91
92 -pkg_preinst() { gnome2_icon_savelist; }
93 -pkg_postinst() { gnome2_icon_cache_update; }
94 -pkg_postrm() { gnome2_icon_cache_update; }
95 +pkg_postinst() {
96 + xdg_desktop_database_update
97 + xdg_mimeinfo_database_update
98 + gnome2_icon_cache_update
99 +}
100 +
101 +pkg_postrm() {
102 + xdg_desktop_database_update
103 + xdg_mimeinfo_database_update
104 + gnome2_icon_cache_update
105 +}