summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2016-08-17 16:12:18 +0200
committerPacho Ramos <pacho@gentoo.org>2016-08-17 16:15:53 +0200
commit0fcdfc9143d59d1d96a5a58db859f23704879ec2 (patch)
tree3708b519efb1bb570ab937c247e7bd6e4361026c /net-misc/pytvshows
parentapp-office/taskcoach: Add missing dependency (#554466) (diff)
downloadgentoo-0fcdfc9143d59d1d96a5a58db859f23704879ec2.tar.gz
gentoo-0fcdfc9143d59d1d96a5a58db859f23704879ec2.tar.bz2
gentoo-0fcdfc9143d59d1d96a5a58db859f23704879ec2.zip
net-misc/pytvshows: Fix var name (#513876)
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-misc/pytvshows')
-rw-r--r--net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch4
-rw-r--r--net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch4
-rw-r--r--net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch4
-rw-r--r--net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch11
-rw-r--r--net-misc/pytvshows/pytvshows-0.2-r3.ebuild33
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 d1f6385cf076..ba0a1b91e8e1 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 f4df6f0769a9..fb78581b04f9 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 a2870128b5ba..a0f114588b3e 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 000000000000..0713a029c37f
--- /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 000000000000..f2413f86b5a6
--- /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
+}