net-misc/pytvshows: Fix var name (#513876)
authorPacho Ramos <pacho@gentoo.org>
Wed, 17 Aug 2016 14:12:18 +0000 (16:12 +0200)
committerPacho Ramos <pacho@gentoo.org>
Wed, 17 Aug 2016 14:15:53 +0000 (16:15 +0200)
Package-Manager: portage-2.3.0

net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch
net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch
net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch
net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch [new file with mode: 0644]
net-misc/pytvshows/pytvshows-0.2-r3.ebuild [new file with mode: 0644]

index d1f6385cf076c47aa4b30c4d1f3d3417c05df26f..ba0a1b91e8e122452f7c9d81e011d4d9f23fb154 100644 (file)
@@ -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
index f4df6f0769a936b358bfb895dd358c8fab3a959c..fb78581b04f9ba892e4dacb1e8ce8b39fae81ab4 100644 (file)
@@ -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': {
index a2870128b5ba15b50e5263491714122985925839..a0f114588b3e60be4695d09c6701b85b28d00ce4 100644 (file)
@@ -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 (file)
index 0000000..0713a02
--- /dev/null
@@ -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 (file)
index 0000000..f2413f8
--- /dev/null
@@ -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
+}