pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/sickgear multimedia/sickgear: Patch out Pyt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/215625f23c6b
branches:  trunk
changeset: 456309:215625f23c6b
user:      js <js%pkgsrc.org@localhost>
date:      Sun Jul 25 18:02:50 2021 +0000

description:
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:

 multimedia/sickgear/Makefile                  |   5 +++--
 multimedia/sickgear/distinfo                  |   3 ++-
 multimedia/sickgear/patches/patch-sickgear.py |  18 ++++++++++++++++++
 3 files changed, 23 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r 2eff4a8fbf81 -r 215625f23c6b multimedia/sickgear/Makefile
--- a/multimedia/sickgear/Makefile      Sun Jul 25 17:31:10 2021 +0000
+++ b/multimedia/sickgear/Makefile      Sun Jul 25 18:02:50 2021 +0000
@@ -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 @@
 CHECK_PERMS_SKIP=      *
 
 do-build:
+       find ${WRKSRC} -name '*.orig' -exec rm {} \;
        ${SED} ${FILES_SUBST_SED} ${FILESDIR}/sickgear >${WRKDIR}/sickgear
 
 do-install:
diff -r 2eff4a8fbf81 -r 215625f23c6b multimedia/sickgear/distinfo
--- a/multimedia/sickgear/distinfo      Sun Jul 25 17:31:10 2021 +0000
+++ b/multimedia/sickgear/distinfo      Sun Jul 25 18:02:50 2021 +0000
@@ -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 -r 2eff4a8fbf81 -r 215625f23c6b multimedia/sickgear/patches/patch-sickgear.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/sickgear/patches/patch-sickgear.py     Sun Jul 25 18:02:50 2021 +0000
@@ -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__'))



Home | Main Index | Thread Index | Old Index