Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2021 19:16:56 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r569587 - in head/devel/gitinspector: . files
Message-ID:  <202103301916.12UJGuxt004293@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Mar 30 19:16:56 2021
New Revision: 569587
URL: https://svnweb.freebsd.org/changeset/ports/569587

Log:
  Fix build with Python 3.8+
  
  - Bump PORTREVISION for package change
  
  PR:		254504
  Submitted by:	kai
  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

Added:
  head/devel/gitinspector/files/
  head/devel/gitinspector/files/patch-gitinspector-localization.py   (contents, props changed)
Modified:
  head/devel/gitinspector/Makefile

Modified: head/devel/gitinspector/Makefile
==============================================================================
--- head/devel/gitinspector/Makefile	Tue Mar 30 19:16:51 2021	(r569586)
+++ head/devel/gitinspector/Makefile	Tue Mar 30 19:16:56 2021	(r569587)
@@ -3,7 +3,7 @@
 PORTNAME=	gitinspector
 PORTVERSION=	0.4.4
 DISTVERSIONPREFIX=	v
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	devel python
 PKGNAMESUFFIX=	${PYTHON_PKGNAMESUFFIX}
 

Added: head/devel/gitinspector/files/patch-gitinspector-localization.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/gitinspector/files/patch-gitinspector-localization.py	Tue Mar 30 19:16:56 2021	(r569587)
@@ -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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103301916.12UJGuxt004293>