commit:     ceff433a6feee7d2a361280adda13f6fbe455b96
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 14 15:04:20 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Nov 14 15:04:20 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceff433a

media-sound/volwheel: Port to EAPI 7

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../volwheel/files/volwheel-0.2.8-desktop-QA.patch |  9 +++++++++
 .../volwheel/files/volwheel-0.2.8-perl516.patch    |  4 ++--
 media-sound/volwheel/volwheel-0.2.8-r1.ebuild      | 23 ++++++++++------------
 3 files changed, 21 insertions(+), 15 deletions(-)

diff --git a/media-sound/volwheel/files/volwheel-0.2.8-desktop-QA.patch 
b/media-sound/volwheel/files/volwheel-0.2.8-desktop-QA.patch
new file mode 100644
index 00000000000..11af8697af6
--- /dev/null
+++ b/media-sound/volwheel/files/volwheel-0.2.8-desktop-QA.patch
@@ -0,0 +1,9 @@
+--- a/volwheel.desktop
++++ b/volwheel.desktop
+@@ -1,6 +1,5 @@
+ [Desktop Entry]
+ Version=1.0
+-Encoding=UTF-8
+ Name=VolWheel
+ GenericName=VolWheel
+ Comment=Easy sound volume adjustment

diff --git a/media-sound/volwheel/files/volwheel-0.2.8-perl516.patch 
b/media-sound/volwheel/files/volwheel-0.2.8-perl516.patch
index 130d9b7c331..4a801cf5192 100644
--- a/media-sound/volwheel/files/volwheel-0.2.8-perl516.patch
+++ b/media-sound/volwheel/files/volwheel-0.2.8-perl516.patch
@@ -1,7 +1,7 @@
 http://code.google.com/p/olwtools/issues/detail?id=8
 
---- install.pl
-+++ install.pl
+--- a/install.pl
++++ b/install.pl
 @@ -2,7 +2,6 @@
  
  use strict;

diff --git a/media-sound/volwheel/volwheel-0.2.8-r1.ebuild 
b/media-sound/volwheel/volwheel-0.2.8-r1.ebuild
index 51ff9c182eb..49e02ece502 100644
--- a/media-sound/volwheel/volwheel-0.2.8-r1.ebuild
+++ b/media-sound/volwheel/volwheel-0.2.8-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils gnome2-utils
+EAPI=7
+
+inherit xdg
 
 DESCRIPTION="A volume control trayicon with mouse wheel support"
 HOMEPAGE="https://oliwer.net/b/volwheel.html";
@@ -18,16 +19,12 @@ RDEPEND="${DEPEND}
        dev-perl/Gtk2
        alsa? ( media-sound/alsa-utils )"
 
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-perl516.patch
-       sed -i -e '/^Encoding/d' ${PN}.desktop || die
-}
+PATCHES=(
+       "${FILESDIR}"/${P}-perl516.patch
+       "${FILESDIR}"/${P}-desktop-QA.patch
+)
 
 src_install() {
-       ./install.pl prefix=/usr destdir="${D}" || die
-       dodoc ChangeLog README TODO
+       ./install.pl prefix="${EPREFIX}"/usr destdir="${D}" || die
+       einstalldocs
 }
-
-pkg_preinst() {        gnome2_icon_savelist; }
-pkg_postinst() { gnome2_icon_cache_update; }
-pkg_postrm() { gnome2_icon_cache_update; }

Reply via email to