pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-gitinspector



Module Name:    pkgsrc
Committed By:   markd
Date:           Thu Feb 25 02:03:47 UTC 2021

Modified Files:
        pkgsrc/devel/py-gitinspector: Makefile distinfo
Added Files:
        pkgsrc/devel/py-gitinspector/patches:
            patch-gitinspector_localization.py

Log Message:
py-gitinspector: build fix for python>=3.8


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-gitinspector/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-gitinspector/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/py-gitinspector/patches/patch-gitinspector_localization.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-gitinspector/Makefile
diff -u pkgsrc/devel/py-gitinspector/Makefile:1.3 pkgsrc/devel/py-gitinspector/Makefile:1.4
--- pkgsrc/devel/py-gitinspector/Makefile:1.3   Tue May 29 16:39:24 2018
+++ pkgsrc/devel/py-gitinspector/Makefile       Thu Feb 25 02:03:47 2021
@@ -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}

Index: pkgsrc/devel/py-gitinspector/distinfo
diff -u pkgsrc/devel/py-gitinspector/distinfo:1.1 pkgsrc/devel/py-gitinspector/distinfo:1.2
--- pkgsrc/devel/py-gitinspector/distinfo:1.1   Sat Jun 10 15:12:48 2017
+++ pkgsrc/devel/py-gitinspector/distinfo       Thu Feb 25 02:03:47 2021
@@ -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

Added files:

Index: pkgsrc/devel/py-gitinspector/patches/patch-gitinspector_localization.py
diff -u /dev/null pkgsrc/devel/py-gitinspector/patches/patch-gitinspector_localization.py:1.1
--- /dev/null   Thu Feb 25 02:03:47 2021
+++ pkgsrc/devel/py-gitinspector/patches/patch-gitinspector_localization.py     Thu Feb 25 02:03:47 2021
@@ -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