diff options
author | Pacho Ramos <pacho@gentoo.org> | 2015-09-05 16:35:17 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2015-09-05 16:35:17 +0200 |
commit | aaf41f67664a91377b4a6caf5197d0b6558509df (patch) | |
tree | 586f178842146c9aec6204e24cde15a9cda3f0b6 /media-sound | |
parent | Drop obsolete mask (diff) | |
download | gentoo-aaf41f67664a91377b4a6caf5197d0b6558509df.tar.gz gentoo-aaf41f67664a91377b4a6caf5197d0b6558509df.tar.bz2 gentoo-aaf41f67664a91377b4a6caf5197d0b6558509df.zip |
media-sound/soundconverter: Fix drag files, bug #559274 by jorgicio
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/soundconverter/files/soundconverter-2.1.5-files-dropping.patch | 25 | ||||
-rw-r--r-- | media-sound/soundconverter/soundconverter-2.1.5-r1.ebuild | 60 |
2 files changed, 85 insertions, 0 deletions
diff --git a/media-sound/soundconverter/files/soundconverter-2.1.5-files-dropping.patch b/media-sound/soundconverter/files/soundconverter-2.1.5-files-dropping.patch new file mode 100644 index 000000000000..859151e805a2 --- /dev/null +++ b/media-sound/soundconverter/files/soundconverter-2.1.5-files-dropping.patch @@ -0,0 +1,25 @@ +From 8c0b59e4ba46d97916193d01be683d459e7fb0fb Mon Sep 17 00:00:00 2001 +From: kassoulet <gautier@soundconverter.org> +Date: Sat, 7 Feb 2015 16:23:49 +0100 +Subject: [PATCH] Fix broken files dropping. + +The current folder was added to the list of dropped files. + +Closes lp:1419259 +--- + soundconverter/ui.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/soundconverter/ui.py b/soundconverter/ui.py +index c652254..a7656a1 100644 +--- a/soundconverter/ui.py ++++ b/soundconverter/ui.py +@@ -174,7 +174,7 @@ def drag_data_received(self, widget, context, x, y, selection, + mime_id, time): + widget.stop_emission('drag_data_received') + if mime_id >= 0 and mime_id < len(self.drop_mime_types): +- uris = [filename_to_uri(uri.strip()) for uri in selection.data.split('\n')] ++ uris = [filename_to_uri(uri.strip()) for uri in selection.data.split('\n') if uri] + self.add_uris(uris) + context.finish(True, False, time) + diff --git a/media-sound/soundconverter/soundconverter-2.1.5-r1.ebuild b/media-sound/soundconverter/soundconverter-2.1.5-r1.ebuild new file mode 100644 index 000000000000..6fbca50bd406 --- /dev/null +++ b/media-sound/soundconverter/soundconverter-2.1.5-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +GCONF_DEBUG=no +PYTHON_COMPAT=( python2_7 ) + +inherit eutils gnome2 multilib python-single-r1 + +DESCRIPTION="A simple audiofile converter application for the GNOME environment" +HOMEPAGE="http://soundconverter.org/" +SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="aac flac mp3 opus vorbis" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-python/gconf-python[${PYTHON_USEDEP}] + dev-python/gnome-vfs-python[${PYTHON_USEDEP}] + dev-python/gst-python:0.10[${PYTHON_USEDEP}] + dev-python/pygobject:2[${PYTHON_USEDEP}] + >=dev-python/pygtk-2.12[${PYTHON_USEDEP}] + dev-python/libgnome-python[${PYTHON_USEDEP}] + gnome-base/libglade[${PYTHON_USEDEP}] + aac? ( + media-plugins/gst-plugins-faac:0.10 + media-plugins/gst-plugins-faad:0.10 ) + flac? ( media-plugins/gst-plugins-flac:0.10 ) + mp3? ( + media-plugins/gst-plugins-lame:0.10 + media-plugins/gst-plugins-mad:0.10 + media-plugins/gst-plugins-taglib:0.10 ) + vorbis? ( + media-plugins/gst-plugins-ogg:0.10 + media-plugins/gst-plugins-vorbis:0.10 ) + opus? ( media-plugins/gst-plugins-opus:0.10 ) +" +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext +" + +src_prepare() { + # Fix broken files dropping, upstream bug #1419259 + epatch "${FILESDIR}/${P}-files-dropping.patch" + + python_fix_shebang . + gnome2_src_prepare +} + +src_install() { + gnome2_src_install + python_optimize "${ED%/}"/usr/$(get_libdir)/soundconverter/python +} |