summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorjs <js@pkgsrc.org>2021-07-25 18:02:50 +0000
committerjs <js@pkgsrc.org>2021-07-25 18:02:50 +0000
commite1c680b13644c4f7b530e7bdb593050de0efc055 (patch)
tree8d456086429dbbedfd1b987a8e8c3e97b998311d /multimedia
parent8b2963cba26634057542eacc19ee41d8c2cbc2c7 (diff)
downloadpkgsrc-e1c680b13644c4f7b530e7bdb593050de0efc055.tar.gz
multimedia/sickgear: Patch out Python version check
While upstream quickly does a new release when a new Python is released, keeping up with this is annoying.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/sickgear/Makefile5
-rw-r--r--multimedia/sickgear/distinfo3
-rw-r--r--multimedia/sickgear/patches/patch-sickgear.py18
3 files changed, 23 insertions, 3 deletions
diff --git a/multimedia/sickgear/Makefile b/multimedia/sickgear/Makefile
index 2ba64a57708..2f881c99ba6 100644
--- a/multimedia/sickgear/Makefile
+++ b/multimedia/sickgear/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2021/03/21 14:20:41 js Exp $
+# $NetBSD: Makefile,v 1.10 2021/07/25 18:02:50 js Exp $
DISTNAME= release_${PKGVERSION_NOREV}
PKGNAME= sickgear-0.23.14
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=SickGear/}
GITHUB_PROJECT= SickGear
@@ -37,6 +37,7 @@ INSTALLATION_DIRS+= bin lib/sickgear
CHECK_PERMS_SKIP= *
do-build:
+ find ${WRKSRC} -name '*.orig' -exec rm {} \;
${SED} ${FILES_SUBST_SED} ${FILESDIR}/sickgear >${WRKDIR}/sickgear
do-install:
diff --git a/multimedia/sickgear/distinfo b/multimedia/sickgear/distinfo
index 25c218f69ec..6e518fd0ce8 100644
--- a/multimedia/sickgear/distinfo
+++ b/multimedia/sickgear/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2021/03/21 13:45:34 js Exp $
+$NetBSD: distinfo,v 1.6 2021/07/25 18:02:50 js Exp $
SHA1 (SickGear/release_0.23.14.tar.gz) = 7b6691b141063610d3bc538554353e763ff6eb4c
RMD160 (SickGear/release_0.23.14.tar.gz) = 21879e0463376a4884fe30addfd9bded5f0f777a
SHA512 (SickGear/release_0.23.14.tar.gz) = ae83677034aadbf87702b71974671d654fabfa6e0bde529872ace1ff43fb2c645af1837efb93e2970b2d34a67e47612911d00c1f68d17a4cca111014ef81e423
Size (SickGear/release_0.23.14.tar.gz) = 11906111 bytes
+SHA1 (patch-sickgear.py) = 74c33b2c9e7c967e964d9725359350487ebc4c79
diff --git a/multimedia/sickgear/patches/patch-sickgear.py b/multimedia/sickgear/patches/patch-sickgear.py
new file mode 100644
index 00000000000..e21d4016c38
--- /dev/null
+++ b/multimedia/sickgear/patches/patch-sickgear.py
@@ -0,0 +1,18 @@
+$NetBSD: patch-sickgear.py,v 1.1 2021/07/25 18:02:50 js Exp $
+
+--- sickgear.py.orig 2021-03-10 02:49:59.000000000 +0000
++++ sickgear.py
+@@ -40,13 +40,6 @@ warnings.filterwarnings('ignore', module
+ warnings.filterwarnings('ignore', module=r'.*zoneinfo.*', message='.*file or directory.*')
+ warnings.filterwarnings('ignore', message='.*deprecated in cryptography.*')
+
+-versions = [((2, 7, 9), (2, 7, 18)), ((3, 7, 1), (3, 8, 8)), ((3, 9, 0), (3, 9, 2))] # inclusive version ranges
+-if not any(list(map(lambda v: v[0] <= sys.version_info[:3] <= v[1], versions))) and not int(os.environ.get('PYT', 0)):
+- print('Python %s.%s.%s detected.' % sys.version_info[:3])
+- print('Sorry, SickGear requires a Python version %s' % ', '.join(map(
+- lambda r: '%s - %s' % tuple(map(lambda v: str(v).replace(',', '.')[1:-1], r)), versions)))
+- sys.exit(1)
+-
+ try:
+ try:
+ py_cache_path = os.path.normpath(os.path.join(os.path.dirname(__file__), '__pycache__'))