pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff6f38a6f531
branches:  trunk
changeset: 447693:ff6f38a6f531
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Feb 25 02:03:47 2021 +0000

description:
py-gitinspector: build fix for python>=3.8

diffstat:

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

diffs (61 lines):

diff -r a8d80487b71b -r ff6f38a6f531 devel/py-gitinspector/Makefile
--- a/devel/py-gitinspector/Makefile    Thu Feb 25 01:54:46 2021 +0000
+++ b/devel/py-gitinspector/Makefile    Thu Feb 25 02:03:47 2021 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2018/05/29 16:39:24 minskim Exp $
+# $NetBSD: Makefile,v 1.4 2021/02/25 02:03:47 markd Exp $
 
 GITHUB_PROJECT=        gitinspector
 DISTNAME=      gitinspector-0.4.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ejwa/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
diff -r a8d80487b71b -r ff6f38a6f531 devel/py-gitinspector/distinfo
--- a/devel/py-gitinspector/distinfo    Thu Feb 25 01:54:46 2021 +0000
+++ b/devel/py-gitinspector/distinfo    Thu Feb 25 02:03:47 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2017/06/10 15:12:48 kamil Exp $
+$NetBSD: distinfo,v 1.2 2021/02/25 02:03:47 markd Exp $
 
 SHA1 (gitinspector-0.4.4.tar.gz) = e6707181ef7decd7080c3c537a0dcbdccdf38aaa
 RMD160 (gitinspector-0.4.4.tar.gz) = 902c23710f116ac60bde99153a8e4165c7785cce
 SHA512 (gitinspector-0.4.4.tar.gz) = 6e453a97f7b0bda73e376499268d9a46aa4ff1f8bb65092314a6d32031b0292056152b4e0e3781fbbe3aa6150373679bf78a8c83410882921ab40ce6d356fadb
 Size (gitinspector-0.4.4.tar.gz) = 312201 bytes
+SHA1 (patch-gitinspector_localization.py) = 3eeeb543054e555d4c4111e041d91f7e6473de9f
diff -r a8d80487b71b -r ff6f38a6f531 devel/py-gitinspector/patches/patch-gitinspector_localization.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-gitinspector/patches/patch-gitinspector_localization.py  Thu Feb 25 02:03:47 2021 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-gitinspector_localization.py,v 1.1 2021/02/25 02:03:47 markd 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