pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-pystache py-pystache: fix build with latest set...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c50e188f2b5
branches:  trunk
changeset: 770649:9c50e188f2b5
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Dec 06 14:17:03 2021 +0000

description:
py-pystache: fix build with latest setuptools

diffstat:

 www/py-pystache/Makefile               |   5 ++++-
 www/py-pystache/distinfo               |   3 ++-
 www/py-pystache/patches/patch-setup.py |  19 +++++++++++++++++++
 3 files changed, 25 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r 71beb882862b -r 9c50e188f2b5 www/py-pystache/Makefile
--- a/www/py-pystache/Makefile  Mon Dec 06 14:14:35 2021 +0000
+++ b/www/py-pystache/Makefile  Mon Dec 06 14:17:03 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2017/07/30 22:32:27 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2021/12/06 14:17:03 wiz Exp $
 
 DISTNAME=      pystache-0.5.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -12,6 +12,9 @@
 
 USE_LANGUAGES= # none
 
+post-extract:
+       cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs pystache
+
 do-test:
        cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} test_pystache.py
 
diff -r 71beb882862b -r 9c50e188f2b5 www/py-pystache/distinfo
--- a/www/py-pystache/distinfo  Mon Dec 06 14:14:35 2021 +0000
+++ b/www/py-pystache/distinfo  Mon Dec 06 14:17:03 2021 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 11:30:45 nia Exp $
+$NetBSD: distinfo,v 1.4 2021/12/06 14:17:03 wiz Exp $
 
 BLAKE2s (pystache-0.5.4.tar.gz) = 5dd976b9ed5fb277d5cb8385fa57e5b4d3d792d83ae3eaba5da8464a6ecce2b9
 SHA512 (pystache-0.5.4.tar.gz) = 4ac325e1431f58f740218c9ec309821db82d89989ef4ca7fc3536dea0ef1c90e8e85ebaa7df27f33129ca02252b84bcbd7429a1ed999b496f62f174dd66502cb
 Size (pystache-0.5.4.tar.gz) = 75131 bytes
+SHA1 (patch-setup.py) = 401a8d1196a0f0bd870c833671494de9a3902d97
diff -r 71beb882862b -r 9c50e188f2b5 www/py-pystache/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-pystache/patches/patch-setup.py    Mon Dec 06 14:17:03 2021 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-setup.py,v 1.1 2021/12/06 14:17:03 wiz Exp $
+
+Fix build with latest setuptools.
+
+--- setup.py.orig      2014-05-12 12:15:34.000000000 +0000
++++ setup.py
+@@ -351,12 +351,6 @@ def get_extra_args():
+ 
+     """
+     extra = {}
+-    # TODO: it might be more correct to check whether we are using
+-    #   Distribute instead of setuptools, since use_2to3 doesn't take
+-    #   effect when using Python 2, even when using Distribute.
+-    if py_version >= (3, ):
+-        # Causes 2to3 to be run during the build step.
+-        extra['use_2to3'] = True
+ 
+     return extra
+ 



Home | Main Index | Thread Index | Old Index