commit: 0fcdfc9143d59d1d96a5a58db859f23704879ec2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> AuthorDate: Wed Aug 17 14:12:18 2016 +0000 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> CommitDate: Wed Aug 17 14:15:53 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fcdfc91
net-misc/pytvshows: Fix var name (#513876) Package-Manager: portage-2.3.0 .../pytvshows/files/pytvshows-0.2-ezrss.it.patch | 4 +-- .../pytvshows/files/pytvshows-0.2-feedurl.patch | 4 +-- .../files/pytvshows-0.2-improved-re.patch | 4 +-- .../pytvshows/files/pytvshows-0.2-rename-var.patch | 11 ++++++++ net-misc/pytvshows/pytvshows-0.2-r3.ebuild | 33 ++++++++++++++++++++++ 5 files changed, 50 insertions(+), 6 deletions(-) diff --git a/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch b/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch index d1f6385..ba0a1b9 100644 --- a/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch +++ b/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch @@ -6,8 +6,8 @@ https://sourceforge.net/projects/pytvshows/forums/forum/726961/topic/3309243?mes Yes, this could have been accomplished via the --feed paramater, but this is more user friendly. ---- pytvshows.orig 2009-09-15 22:36:34.575002779 -0500 -+++ pytvshows 2009-09-15 22:43:18.283754081 -0500 +--- a/pytvshows.orig 2009-09-15 22:36:34.575002779 -0500 ++++ b/pytvshows 2009-09-15 22:43:18.283754081 -0500 @@ -59,7 +59,7 @@ -cFILE, --config FILE Path to config file. Default: ~/.pytvshows.cfg diff --git a/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch b/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch index f4df6f0..fb78581 100644 --- a/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch +++ b/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch @@ -15,8 +15,8 @@ human_name = Weeds https://sourceforge.net/tracker/index.php?func=detail&aid=2818315&group_id=203642&atid=986413 ---- pytvshows.orig 2009-06-20 15:46:23.000000000 -0400 -+++ pytvshows 2009-07-07 20:41:39.000000000 -0400 +--- a/pytvshows.orig 2009-06-20 15:46:23.000000000 -0400 ++++ b/pytvshows 2009-07-07 20:41:39.000000000 -0400 @@ -83,11 +83,14 @@ config = { 'output_dir2': None, 'quality_matches': { diff --git a/net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch b/net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch index a287012..a0f1145 100644 --- a/net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch +++ b/net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch @@ -1,8 +1,8 @@ Improved regular expression for matching season and episode; see https://sourceforge.net/tracker/index.php?func=detail&aid=2818315&group_id=203642&atid=986413 ---- pytvshows.orig 2011-08-17 23:20:16.000000000 +0200 -+++ pytvshows 2011-08-17 23:22:30.000000000 +0200 +--- a/pytvshows.orig 2011-08-17 23:20:16.000000000 +0200 ++++ b/pytvshows 2011-08-17 23:22:30.000000000 +0200 @@ -346,7 +346,8 @@ if self.feedurl: for episode in self.rss['entries']: diff --git a/net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch b/net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch new file mode 100644 index 0000000..0713a02 --- /dev/null +++ b/net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch @@ -0,0 +1,11 @@ +--- a/pytvshows.bug 2014-06-19 18:49:42.414928250 +0100 ++++ b/pytvshows 2014-06-19 18:49:50.534957323 +0100 +@@ -255,7 +255,7 @@ + self.show_type = 'seasonepisode' + elif date_match: + self.show_type = 'date' +- elif titlematch and titlematch.group(1) != 'n/a': ++ elif title_match and title_match.group(1) != 'n/a': + self.show_type = 'time' + else: + print >> warn, "Could not determine show type for %s." % self diff --git a/net-misc/pytvshows/pytvshows-0.2-r3.ebuild b/net-misc/pytvshows/pytvshows-0.2-r3.ebuild new file mode 100644 index 0000000..f2413f8 --- /dev/null +++ b/net-misc/pytvshows/pytvshows-0.2-r3.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 + +DESCRIPTION="downloads torrents for TV shows from RSS feeds provided by ezrss.it" +HOMEPAGE="https://sourceforge.net/projects/pytvshows/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="dev-python/feedparser[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}/${P}-ezrss.it.patch" + "${FILESDIR}/${P}-feedurl.patch" + "${FILESDIR}/${P}-improved-re.patch" + "${FILESDIR}/${P}-rename-var.patch" +) + +pkg_setup() { + python-single-r1_pkg_setup +}