pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-anyjson



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Dec  6 14:59:36 UTC 2021

Modified Files:
        pkgsrc/textproc/py-anyjson: Makefile distinfo
Added Files:
        pkgsrc/textproc/py-anyjson/patches: patch-setup.py

Log Message:
py-anyjson: fix build with latest setuptools.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/textproc/py-anyjson/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/py-anyjson/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/py-anyjson/patches/patch-setup.py

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

Modified files:

Index: pkgsrc/textproc/py-anyjson/Makefile
diff -u pkgsrc/textproc/py-anyjson/Makefile:1.5 pkgsrc/textproc/py-anyjson/Makefile:1.6
--- pkgsrc/textproc/py-anyjson/Makefile:1.5     Sun Sep  3 08:53:16 2017
+++ pkgsrc/textproc/py-anyjson/Makefile Mon Dec  6 14:59:35 2021
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2017/09/03 08:53:16 wiz Exp $
-#
+# $NetBSD: Makefile,v 1.6 2021/12/06 14:59:35 wiz Exp $
 
 DISTNAME=      anyjson-0.3.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -14,4 +13,10 @@ LICENSE=     modified-bsd
 USE_LANGUAGES= # none
 
 .include "../../lang/python/egg.mk"
+
+.if ${PYPKGPREFIX} != "py27"
+post-extract:
+       cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs anyjson
+.endif
+
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/textproc/py-anyjson/distinfo
diff -u pkgsrc/textproc/py-anyjson/distinfo:1.4 pkgsrc/textproc/py-anyjson/distinfo:1.5
--- pkgsrc/textproc/py-anyjson/distinfo:1.4     Tue Oct 26 11:23:00 2021
+++ pkgsrc/textproc/py-anyjson/distinfo Mon Dec  6 14:59:35 2021
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:23:00 nia Exp $
+$NetBSD: distinfo,v 1.5 2021/12/06 14:59:35 wiz Exp $
 
 BLAKE2s (anyjson-0.3.3.tar.gz) = f3c7a9d4e674fac19d1399b39c9e04eff269b55b215825f68ed96e16e0d547a0
 SHA512 (anyjson-0.3.3.tar.gz) = 9e70df3cb8bfe2348fdb0eb03cf3c33ca5a1171aca6467787fc28c161354b5ebe89b2f73badfa00708774d6825799860493ddcac7f5da8cc9c251b92b5a343bc
 Size (anyjson-0.3.3.tar.gz) = 8332 bytes
+SHA1 (patch-setup.py) = c7186ca58e4363cda5f4f7e8caccff3909e375fe

Added files:

Index: pkgsrc/textproc/py-anyjson/patches/patch-setup.py
diff -u /dev/null pkgsrc/textproc/py-anyjson/patches/patch-setup.py:1.1
--- /dev/null   Mon Dec  6 14:59:36 2021
+++ pkgsrc/textproc/py-anyjson/patches/patch-setup.py   Mon Dec  6 14:59:35 2021
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2021/12/06 14:59:35 wiz Exp $
+
+Fix build with latest setuptools.
+
+--- setup.py.orig      2012-06-21 22:59:59.000000000 +0000
++++ setup.py
+@@ -2,8 +2,6 @@ import os
+ import sys
+ 
+ extra = {}
+-if sys.version_info >= (3, 0):
+-    extra.update(use_2to3=True)
+ 
+ try:
+     from setuptools import setup, find_packages



Home | Main Index | Thread Index | Old Index