pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/py-demjson
Module Name: pkgsrc
Committed By: wiz
Date: Mon Dec 6 15:03:51 UTC 2021
Modified Files:
pkgsrc/textproc/py-demjson: Makefile distinfo
pkgsrc/textproc/py-demjson/patches: patch-setup.py
Log Message:
py-demjson: fix build with latest setuptools.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/py-demjson/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/py-demjson/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/py-demjson/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-demjson/Makefile
diff -u pkgsrc/textproc/py-demjson/Makefile:1.2 pkgsrc/textproc/py-demjson/Makefile:1.3
--- pkgsrc/textproc/py-demjson/Makefile:1.2 Thu May 7 09:29:04 2020
+++ pkgsrc/textproc/py-demjson/Makefile Mon Dec 6 15:03:50 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2020/05/07 09:29:04 adam Exp $
+# $NetBSD: Makefile,v 1.3 2021/12/06 15:03:50 wiz Exp $
DISTNAME= demjson-2.2.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -12,9 +12,15 @@ LICENSE= gnu-lgpl-v3
USE_LANGUAGES= # none
+.include "../../lang/python/egg.mk"
+
+.if ${PYPKGPREFIX} != "py27"
+pre-build:
+ cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs jsonlint demjson.py
+.endif
+
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} jsonlint jsonlint-${PYVERSSUFFIX} || ${TRUE}
-.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/py-demjson/distinfo
diff -u pkgsrc/textproc/py-demjson/distinfo:1.4 pkgsrc/textproc/py-demjson/distinfo:1.5
--- pkgsrc/textproc/py-demjson/distinfo:1.4 Tue Oct 26 11:23:02 2021
+++ pkgsrc/textproc/py-demjson/distinfo Mon Dec 6 15:03:50 2021
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:23:02 nia Exp $
+$NetBSD: distinfo,v 1.5 2021/12/06 15:03:50 wiz Exp $
BLAKE2s (demjson-2.2.4.tar.gz) = b57a8d984d9a0e4f7f40444a9dd7c7ed0c0ce4acf7535e4a1f845c7ac635a487
SHA512 (demjson-2.2.4.tar.gz) = d8a1cde062d0b062bdae29b6d79ad69fb9cc185428718a0009ccbed544ed37bd354fbb86edadb56bd98183ac8636b2edae322ed19aa5f07a7b6df668c7aa0029
Size (demjson-2.2.4.tar.gz) = 131457 bytes
-SHA1 (patch-setup.py) = a25eaed1eb2d39c08dd96c7a0a756b8fff51d155
+SHA1 (patch-setup.py) = 5297d0d861704f6f6c0b0270987d9f23392669ec
Index: pkgsrc/textproc/py-demjson/patches/patch-setup.py
diff -u pkgsrc/textproc/py-demjson/patches/patch-setup.py:1.1 pkgsrc/textproc/py-demjson/patches/patch-setup.py:1.2
--- pkgsrc/textproc/py-demjson/patches/patch-setup.py:1.1 Thu May 7 09:29:04 2020
+++ pkgsrc/textproc/py-demjson/patches/patch-setup.py Mon Dec 6 15:03:50 2021
@@ -1,8 +1,8 @@
-$NetBSD: patch-setup.py,v 1.1 2020/05/07 09:29:04 adam Exp $
+$NetBSD: patch-setup.py,v 1.2 2021/12/06 15:03:50 wiz Exp $
Always use setuptools.
---- setup.py.orig 2020-05-07 09:23:44.000000000 +0000
+--- setup.py.orig 2015-12-22 20:02:25.000000000 +0000
+++ setup.py
@@ -9,23 +9,8 @@ try:
except AttributeError:
@@ -30,3 +30,24 @@ Always use setuptools.
if False:
sys.stdout.write("Using Python: %s\n" % sys.version.split(None,1)[0])
+@@ -33,20 +18,6 @@ if False:
+
+ py3extra = {}
+
+-if py_major >= 3:
+- # Make sure 2to3 gets run
+- if distmech == 'setuptools':
+- py3extra['use_2to3'] = True
+- #py3extra['convert_2to3_doctests'] = ['src/your/module/README.txt']
+- #py3extra['use_2to3_fixers'] = ['your.fixers']
+- elif distmech == 'distutils':
+- import distutils, distutils.command, distutils.command.build_py, distutils.command.build_scripts
+- cmdclass = {
+- 'build_py': distutils.command.build_py.build_py_2to3,
+- 'build_scripts': distutils.command.build_scripts.build_scripts_2to3
+- }
+- py3extra['cmdclass'] = cmdclass
+-
+ setup( name=name,
+ version=version,
+ py_modules=[name],
Home |
Main Index |
Thread Index |
Old Index