diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-09-08 09:01:14 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-09-08 09:01:14 +0000 |
commit | 0610a0ce0fa21bda274474c10142066f7f96b95b (patch) | |
tree | 888a2cdff19907396476f1a0dd1d2ab9afb4fad0 /media-sound/volwheel | |
parent | Version bump. (diff) | |
download | gentoo-2-0610a0ce0fa21bda274474c10142066f7f96b95b.tar.gz gentoo-2-0610a0ce0fa21bda274474c10142066f7f96b95b.tar.bz2 gentoo-2-0610a0ce0fa21bda274474c10142066f7f96b95b.zip |
Fix installation with dev-lang/perl >= 5.16 wrt #423263 by Torsten Veller
(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/volwheel')
-rw-r--r-- | media-sound/volwheel/ChangeLog | 10 | ||||
-rw-r--r-- | media-sound/volwheel/files/volwheel-0.2.8-perl516.patch | 36 | ||||
-rw-r--r-- | media-sound/volwheel/volwheel-0.2.8-r1.ebuild | 34 |
3 files changed, 78 insertions, 2 deletions
diff --git a/media-sound/volwheel/ChangeLog b/media-sound/volwheel/ChangeLog index 89087d8f2ffe..3529f196cb84 100644 --- a/media-sound/volwheel/ChangeLog +++ b/media-sound/volwheel/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/volwheel -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/volwheel/ChangeLog,v 1.4 2011/04/25 13:58:41 tomka Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/volwheel/ChangeLog,v 1.5 2012/09/08 09:01:13 ssuominen Exp $ + +*volwheel-0.2.8-r1 (08 Sep 2012) + + 08 Sep 2012; Samuli Suominen <ssuominen@gentoo.org> + +volwheel-0.2.8-r1.ebuild, +files/volwheel-0.2.8-perl516.patch: + Fix installation with dev-lang/perl >= 5.16 wrt #423263 by Torsten Veller 25 Apr 2011; Thomas Kahle <tomka@gentoo.org> volwheel-0.2.8.ebuild: x86 stable per bug 361111 diff --git a/media-sound/volwheel/files/volwheel-0.2.8-perl516.patch b/media-sound/volwheel/files/volwheel-0.2.8-perl516.patch new file mode 100644 index 000000000000..130d9b7c331f --- /dev/null +++ b/media-sound/volwheel/files/volwheel-0.2.8-perl516.patch @@ -0,0 +1,36 @@ +http://code.google.com/p/olwtools/issues/detail?id=8 + +--- install.pl ++++ install.pl +@@ -2,7 +2,6 @@ + + use strict; + use warnings; +-use Shell qw(install cp); + + my $package = "volwheel"; + +@@ -33,17 +32,17 @@ + system("sed -i 's|/usr/local|$prefix|g\' volwheel"); + } + +-my $output = install ("-v -d {$bindir,$libdir,$datadir,$hicolor,$desktop}"); ++my $output = qx|install -v -d {$bindir,$libdir,$datadir,$hicolor,$desktop}|; + print $output; +-$output = install ("-v -m755 volwheel $bindir"); ++$output = qx|install -v -m755 volwheel $bindir|; + print $output; +-$output = install ("-v -m644 lib/* $libdir"); ++$output = qx|install -v -m644 lib/* $libdir|; + print $output; +-$output = cp ("-v -r icons $datadir/"); ++$output = qx|cp -v -r icons $datadir/|; + print $output; +-$output = install ("-v -m644 icons/volwheel.svg $hicolor"); ++$output = qx|install -v -m644 icons/volwheel.svg $hicolor|; + print $output; +-$output = install ("-v -m644 volwheel.desktop $desktop"); ++$output = qx|install -v -m644 volwheel.desktop $desktop|; + + print "\nVolWheel has been succesfully installed.\n\n"; + diff --git a/media-sound/volwheel/volwheel-0.2.8-r1.ebuild b/media-sound/volwheel/volwheel-0.2.8-r1.ebuild new file mode 100644 index 000000000000..86c00975973e --- /dev/null +++ b/media-sound/volwheel/volwheel-0.2.8-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/volwheel/volwheel-0.2.8-r1.ebuild,v 1.1 2012/09/08 09:01:13 ssuominen Exp $ + +EAPI=4 +inherit eutils gnome2-utils + +DESCRIPTION="A volume control trayicon with mouse wheel support" +HOMEPAGE="http://oliwer.net/b/volwheel.html" +SRC_URI="http://olwtools.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa" + +DEPEND="dev-lang/perl" +RDEPEND="${DEPEND} + dev-perl/gtk2-perl + alsa? ( media-sound/alsa-utils )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-perl516.patch + sed -i -e '/^Encoding/d' ${PN}.desktop || die +} + +src_install() { + ./install.pl prefix=/usr destdir="${D}" || die + dodoc ChangeLog README TODO +} + +pkg_preinst() { gnome2_icon_savelist; } +pkg_postinst() { gnome2_icon_cache_update; } +pkg_postrm() { gnome2_icon_cache_update; } |