pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-gitinspector-devel py-gitinspector-devel: fix...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1e26cd25438f
branches:  trunk
changeset: 771283:1e26cd25438f
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Dec 16 13:23:37 2021 +0000

description:
py-gitinspector-devel: fix build

Using patch from py-gitinspector

diffstat:

 devel/py-gitinspector-devel/distinfo                                   |   3 +-
 devel/py-gitinspector-devel/patches/patch-gitinspector_localization.py |  31 ++++++++++
 2 files changed, 33 insertions(+), 1 deletions(-)

diffs (46 lines):

diff -r 9a067982e184 -r 1e26cd25438f devel/py-gitinspector-devel/distinfo
--- a/devel/py-gitinspector-devel/distinfo      Thu Dec 16 13:17:46 2021 +0000
+++ b/devel/py-gitinspector-devel/distinfo      Thu Dec 16 13:23:37 2021 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:18:30 nia Exp $
+$NetBSD: distinfo,v 1.4 2021/12/16 13:23:37 wiz Exp $
 
 BLAKE2s (gitinspector-0.5.0.dev0-6d77989e341e043c9a7f09757000d75701b32d84.tar.gz) = 69c2c26f3efb7d6ddafcaca45d98100c6cc9cbd46ae33c8b031e6f919ec94905
 SHA512 (gitinspector-0.5.0.dev0-6d77989e341e043c9a7f09757000d75701b32d84.tar.gz) = 
827d9c9004fb39b05b3cb394175ac356f73536980a3c5c673b441619a251729bc826432e1e19d52d774269b203219d2df8d5ed0482e6744e3e584d36e97269a8
 Size (gitinspector-0.5.0.dev0-6d77989e341e043c9a7f09757000d75701b32d84.tar.gz) = 320835 bytes
+SHA1 (patch-gitinspector_localization.py) = 3eeeb543054e555d4c4111e041d91f7e6473de9f
diff -r 9a067982e184 -r 1e26cd25438f devel/py-gitinspector-devel/patches/patch-gitinspector_localization.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-gitinspector-devel/patches/patch-gitinspector_localization.py    Thu Dec 16 13:23:37 2021 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-gitinspector_localization.py,v 1.1 2021/12/16 13:23:37 wiz Exp $
+
+Build fix for python >=3.8
+https://github.com/ejwa/gitinspector/issues/216
+
+--- gitinspector/localization.py.orig  2016-02-03 13:25:05.000000000 +0000
++++ 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()



Home | Main Index | Thread Index | Old Index