summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-02-20 21:52:01 +0100
committerMichał Górny <mgorny@gentoo.org>2017-02-21 09:51:41 +0100
commit2f1df685bb5c9962683be951c98831029b24eec1 (patch)
tree912f9ea18d803d4bd9487a5713a69a528127316e /media-video/qt-recordmydesktop
parentDrop use mask media-video/mpv uchardet (bug 608316). (diff)
downloadgentoo-2f1df685bb5c9962683be951c98831029b24eec1.tar.gz
gentoo-2f1df685bb5c9962683be951c98831029b24eec1.tar.bz2
gentoo-2f1df685bb5c9962683be951c98831029b24eec1.zip
media-video/qt-recordmydesktop: python-single-r1, EAPI=6
Diffstat (limited to 'media-video/qt-recordmydesktop')
-rw-r--r--media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-check-for-jack.patch4
-rw-r--r--media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-desktopfile.patch4
-rw-r--r--media-video/qt-recordmydesktop/qt-recordmydesktop-0.3.8-r3.ebuild (renamed from media-video/qt-recordmydesktop/qt-recordmydesktop-0.3.8-r2.ebuild)36
3 files changed, 18 insertions, 26 deletions
diff --git a/media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-check-for-jack.patch b/media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-check-for-jack.patch
index 08c1b7484916..d27db3abbcf8 100644
--- a/media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-check-for-jack.patch
+++ b/media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-check-for-jack.patch
@@ -1,5 +1,5 @@
---- src/rmdPrefsWidget.py.orig 2008-11-23 16:09:14.000000000 +0100
-+++ src/rmdPrefsWidget.py 2010-05-24 16:23:30.255865721 +0200
+--- a/src/rmdPrefsWidget.py 2008-11-23 16:09:14.000000000 +0100
++++ b/src/rmdPrefsWidget.py 2010-05-24 16:23:30.255865721 +0200
@@ -302,9 +302,29 @@
def remPort(self,lwi):
self.jack_lsp_listSave.takeItem(self.jack_lsp_listSave.row(lwi))
diff --git a/media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-desktopfile.patch b/media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-desktopfile.patch
index 77d5618a765d..1ea843a8733a 100644
--- a/media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-desktopfile.patch
+++ b/media-video/qt-recordmydesktop/files/qt-recordmydesktop-0.3.8-desktopfile.patch
@@ -1,7 +1,7 @@
Fixes errors reported by desktop-file-validate.
---- src/qt-recordmydesktop.desktop
-+++ src/qt-recordmydesktop.desktop
+--- a/src/qt-recordmydesktop.desktop
++++ b/src/qt-recordmydesktop.desktop
@@ -1,12 +1,11 @@
[Desktop Entry]
Version=1.0
diff --git a/media-video/qt-recordmydesktop/qt-recordmydesktop-0.3.8-r2.ebuild b/media-video/qt-recordmydesktop/qt-recordmydesktop-0.3.8-r3.ebuild
index ac6dc491d57d..03984ca3aad3 100644
--- a/media-video/qt-recordmydesktop/qt-recordmydesktop-0.3.8-r2.ebuild
+++ b/media-video/qt-recordmydesktop/qt-recordmydesktop-0.3.8-r3.ebuild
@@ -1,12 +1,11 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=4
+EAPI=6
-PYTHON_DEPEND="2:2.6"
-RESTRICT_PYTHON_ABIS="3.*"
-inherit autotools base eutils python
+PYTHON_COMPAT=( python2_7 )
+inherit autotools python-single-r1
DESCRIPTION="Qt4 interface for RecordMyDesktop"
HOMEPAGE="http://recordmydesktop.sourceforge.net/"
@@ -24,10 +23,14 @@ IUSE=""
# much care...
RESTRICT="test"
-RDEPEND=">=media-video/recordmydesktop-0.3.8
- x11-apps/xwininfo"
-DEPEND="${RDEPEND}
- >=dev-python/PyQt4-4.1[X]"
+RDEPEND="
+ >=dev-python/PyQt4-4.1[X,${PYTHON_USEDEP}]
+ >=media-video/recordmydesktop-0.3.8
+ x11-apps/xwininfo
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DOCS=( AUTHORS ChangeLog NEWS README )
@@ -37,23 +40,12 @@ PATCHES=(
"${FILESDIR}/${P}-pyqt4.patch"
)
-pkg_setup() {
- python_set_active_version 2
- python_pkg_setup
-}
-
src_prepare() {
- base_src_prepare
- eautoreconf
+ default
# these deps are required by PyQt4, not this package
sed -e '/^PKG_CHECK_MODULES/d' -i configure.ac || die "sed failed"
eautoreconf
- python_convert_shebangs 2 src/qt-recordMyDesktop.in
-
- sed -e 's/@ALL_LINGUAS@//' -i po/Makefile.in.in \
- || die "respect linguas sed failed"
- strip-linguas -i po
- echo ${LINGUAS} | tr ' ' '\n' > po/LINGUAS
+ python_fix_shebang src/qt-recordMyDesktop.in
}