py-gitinspector: build fix for python>=3.8

This commit is contained in:
markd 2021-02-25 02:03:47 +00:00
parent 0f864af596
commit 3d9e48e21f
3 changed files with 35 additions and 2 deletions

View file

@ -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 GITHUB_PROJECT= gitinspector
DISTNAME= gitinspector-0.4.4 DISTNAME= gitinspector-0.4.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME} PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=ejwa/} MASTER_SITES= ${MASTER_SITE_GITHUB:=ejwa/}
GITHUB_TAG= v${PKGVERSION_NOREV} GITHUB_TAG= v${PKGVERSION_NOREV}

View file

@ -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 SHA1 (gitinspector-0.4.4.tar.gz) = e6707181ef7decd7080c3c537a0dcbdccdf38aaa
RMD160 (gitinspector-0.4.4.tar.gz) = 902c23710f116ac60bde99153a8e4165c7785cce RMD160 (gitinspector-0.4.4.tar.gz) = 902c23710f116ac60bde99153a8e4165c7785cce
SHA512 (gitinspector-0.4.4.tar.gz) = 6e453a97f7b0bda73e376499268d9a46aa4ff1f8bb65092314a6d32031b0292056152b4e0e3781fbbe3aa6150373679bf78a8c83410882921ab40ce6d356fadb SHA512 (gitinspector-0.4.4.tar.gz) = 6e453a97f7b0bda73e376499268d9a46aa4ff1f8bb65092314a6d32031b0292056152b4e0e3781fbbe3aa6150373679bf78a8c83410882921ab40ce6d356fadb
Size (gitinspector-0.4.4.tar.gz) = 312201 bytes Size (gitinspector-0.4.4.tar.gz) = 312201 bytes
SHA1 (patch-gitinspector_localization.py) = 3eeeb543054e555d4c4111e041d91f7e6473de9f

View file

@ -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()