aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2021-03-30 19:16:56 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2021-03-30 19:16:56 +0000
commitfe1c5e62c396fc860210eb8cb348a24507729be2 (patch)
tree561c70aaba29e99c16792acece3f92e459bc4c04
parent6fc804f45a0fc2b492616f8b859562ab3635084b (diff)
downloadports-fe1c5e62c396fc860210eb8cb348a24507729be2.tar.gz
ports-fe1c5e62c396fc860210eb8cb348a24507729be2.zip
Fix build with Python 3.8+
Notes
Notes: svn path=/head/; revision=569587
-rw-r--r--devel/gitinspector/Makefile2
-rw-r--r--devel/gitinspector/files/patch-gitinspector-localization.py29
2 files changed, 30 insertions, 1 deletions
diff --git a/devel/gitinspector/Makefile b/devel/gitinspector/Makefile
index d549b2ef8c58..074a3bc86f43 100644
--- a/devel/gitinspector/Makefile
+++ b/devel/gitinspector/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gitinspector
PORTVERSION= 0.4.4
DISTVERSIONPREFIX= v
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= devel python
PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX}
diff --git a/devel/gitinspector/files/patch-gitinspector-localization.py b/devel/gitinspector/files/patch-gitinspector-localization.py
new file mode 100644
index 000000000000..0d6e827490d5
--- /dev/null
+++ b/devel/gitinspector/files/patch-gitinspector-localization.py
@@ -0,0 +1,29 @@
+Obtained from: https://sources.debian.org/data/main/g/gitinspector/0.4.4+dfsg-9/debian/patches/Drop-superfluous-argument-to-NullTranslations.install.patch
+Reference: https://github.com/ejwa/gitinspector/issues/213#issuecomment-722732702
+
+--- gitinspector/localization.py.orig 2016-02-03 13:25:05 UTC
++++ gitinspector/localization.py
+@@ -73,7 +73,7 @@ def init():
+
+ __enabled__ = True
+ __installed__ = True
+- __translation__.install(True)
++ __translation__.install()
+
+ def check_compatibility(version):
+ if isinstance(__translation__, gettext.GNUTranslations):
+@@ -98,7 +98,7 @@ def get_date():
+
+ def enable():
+ if isinstance(__translation__, gettext.GNUTranslations):
+- __translation__.install(True)
++ __translation__.install()
+
+ global __enabled__
+ __enabled__ = True
+@@ -108,4 +108,4 @@ def disable():
+ __enabled__ = False
+
+ if __installed__:
+- gettext.NullTranslations().install(True)
++ gettext.NullTranslations().install()