pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-anyjson py-anyjson: fix build with latest ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f16ecd47e17a
branches: trunk
changeset: 770656:f16ecd47e17a
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Dec 06 14:59:35 2021 +0000
description:
py-anyjson: fix build with latest setuptools.
diffstat:
textproc/py-anyjson/Makefile | 9 +++++++--
textproc/py-anyjson/distinfo | 3 ++-
textproc/py-anyjson/patches/patch-setup.py | 15 +++++++++++++++
3 files changed, 24 insertions(+), 3 deletions(-)
diffs (51 lines):
diff -r 2a0c90a50c9c -r f16ecd47e17a textproc/py-anyjson/Makefile
--- a/textproc/py-anyjson/Makefile Mon Dec 06 14:56:43 2021 +0000
+++ b/textproc/py-anyjson/Makefile Mon Dec 06 14:59:35 2021 +0000
@@ -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 @@
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"
diff -r 2a0c90a50c9c -r f16ecd47e17a textproc/py-anyjson/distinfo
--- a/textproc/py-anyjson/distinfo Mon Dec 06 14:56:43 2021 +0000
+++ b/textproc/py-anyjson/distinfo Mon Dec 06 14:59:35 2021 +0000
@@ -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
diff -r 2a0c90a50c9c -r f16ecd47e17a textproc/py-anyjson/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-anyjson/patches/patch-setup.py Mon Dec 06 14:59:35 2021 +0000
@@ -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