[gentoo-commits] repo/gentoo:master commit in: net-misc/pytvshows/, net-misc/pytvshows/files/, profiles/
commit: 229fae0ad783237854ea704d6804d96e3d2f612c Author: Michał Górny gentoo org> AuthorDate: Mon Jul 13 04:48:39 2020 + Commit: Michał Górny gentoo org> CommitDate: Mon Jul 13 04:48:39 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=229fae0a net-misc/pytvshows: Remove last-rited pkg Signed-off-by: Michał Górny gentoo.org> net-misc/pytvshows/Manifest| 1 - .../pytvshows/files/pytvshows-0.2-ezrss.it.patch | 30 --- .../pytvshows/files/pytvshows-0.2-feedurl.patch| 279 - .../files/pytvshows-0.2-improved-re.patch | 15 -- .../pytvshows/files/pytvshows-0.2-rename-var.patch | 11 - net-misc/pytvshows/metadata.xml| 8 - net-misc/pytvshows/pytvshows-0.2-r4.ebuild | 35 --- profiles/package.mask | 1 - 8 files changed, 380 deletions(-) diff --git a/net-misc/pytvshows/Manifest b/net-misc/pytvshows/Manifest deleted file mode 100644 index bfa78c4c306..000 --- a/net-misc/pytvshows/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pytvshows-0.2.tar.gz 14156 BLAKE2B 61449e01096ef81b131c03b0cadd89433a7dcafd3a8828f251ca9ecceb49dd4d92e382ce50b06f4b5498523fd8b4625fb5442e7f5ef71949a4605ab10910be45 SHA512 c4acd9b968dba7af1c787f9a3f5db4986ffbc52bfc43a4b7101070f8e91e80e78be0e59c4a4fbd873e64a6c4862e64abed2396c7140e9165d72e7d3cea267d5f diff --git a/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch b/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch deleted file mode 100644 index ba0a1b91e8e..000 --- a/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch +++ /dev/null @@ -1,30 +0,0 @@ -This patch simply alters the feed site since txrss.net was closed/shut down. -Luckily, ezrss.it expects the same arguments and should generally work. You can -find similar details at: -https://sourceforge.net/projects/pytvshows/forums/forum/726961/topic/3309243?message=7544190 - -Yes, this could have been accomplished via the --feed paramater, but this is -more user friendly. - a/pytvshows.orig 2009-09-15 22:36:34.575002779 -0500 -+++ b/pytvshows2009-09-15 22:43:18.283754081 -0500 -@@ -59,7 +59,7 @@ - -cFILE, --config FILE - Path to config file. Default: ~/.pytvshows.cfg - -fFEED, --feed=FEED --Override the tvrss.net feed. %%s is replaced with the -+Override the ezrss.it feed. %%s is replaced with the - exact show name. - -h, --helpThis help message - -oDIR, --output_dir=DIR -@@ -77,8 +77,8 @@ - commands = ['update', 'subscribe', 'unsubscribe', 'run'] - config = { - 'config_file': os.path.expanduser("~/.pytvshows.cfg"), --'feed': "http://tvrss.net/search/index.php?show_name=%s_name_exact; \ --"=true=rss", -+ 'feed': "http://www.ezrss.it/search/index.php?show_name=%s; \ -+"_name_exact=true=rss", - 'output_dir': os.path.expanduser("~/"), - 'output_dir2': None, - 'quality_matches': { diff --git a/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch b/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch deleted file mode 100644 index fb78581b04f..000 --- a/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch +++ /dev/null @@ -1,279 +0,0 @@ -David Reitz writes: - -I created this so that I could specify a feedurl parameter in the config file, -which allows me to use the public RSS feeds at showRSS (http://showrss.karmorra.info/). -This patch will ONLY work for seasonepisode. I made no modifications for other types. - -Simply apply this patch and then modify your config like so: - -[Weeds] -feedurl = http://showrss.karmorra.info/feeds/68.rss -episode = 4 -season = 5 -show_type = seasonepisode -human_name = Weeds - -https://sourceforge.net/tracker/index.php?func=detail=2818315_id=203642=986413 - a/pytvshows.orig 2009-06-20 15:46:23.0 -0400 -+++ b/pytvshows2009-07-07 20:41:39.0 -0400 -@@ -83,11 +83,14 @@ config = { - 'output_dir2': None, - 'quality_matches': { - "[HD": 1, -+"HDTV": 1, - "[DSRIP": 1, - "[TVRIP": 1, - "[PDTV": 1, - "[DVD": 1, - "[HR": 2, -+"720p": 3, -+"720P": 3, - "[720p": 3, - "[720P": 3, - }, -@@ -189,6 +192,7 @@ class Show(object): - self.show_type = args['show_type'] - self.season = args['season'] - self.episode = args['episode'] -+ self.feedurl = args['feedurl'] - #-MM-DD HH:MM:SS - if args['date']: - self.date = datetime.datetime(*(time.strptime( -@@ -290,7 +294,10 @@ class Show(object): - - def _get_rss_feed(self): - """Gets the feedparser object.""" --url = config['feed'] % self.exact_name -+ if self.feedurl: -+url = self.feedurl -+ else: -+ url = config['feed'] % self.exact_name - if config['verbose']: -
[gentoo-commits] repo/gentoo:master commit in: net-misc/pytvshows/, net-misc/pytvshows/files/
commit: 0fcdfc9143d59d1d96a5a58db859f23704879ec2 Author: Pacho Ramos gentoo org> AuthorDate: Wed Aug 17 14:12:18 2016 + Commit: Pacho Ramos gentoo org> CommitDate: Wed Aug 17 14:15:53 2016 + 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/pytvshows2009-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=2818315_id=203642=986413 pytvshows.orig 2009-06-20 15:46:23.0 -0400 -+++ pytvshows 2009-07-07 20:41:39.0 -0400 +--- a/pytvshows.orig 2009-06-20 15:46:23.0 -0400 b/pytvshows2009-07-07 20:41:39.0 -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=2818315_id=203642=986413 pytvshows.orig 2011-08-17 23:20:16.0 +0200 -+++ pytvshows 2011-08-17 23:22:30.0 +0200 +--- a/pytvshows.orig 2011-08-17 23:20:16.0 +0200 b/pytvshows2011-08-17 23:22:30.0 +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 000..0713a02 --- /dev/null +++ b/net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch @@ -0,0 +1,11 @@ +--- a/pytvshows.bug2014-06-19 18:49:42.414928250 +0100 b/pytvshows2014-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 000..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 +}