pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-funcparserlib py-funcparserlib: fix build wit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/31d6971853f3
branches:  trunk
changeset: 771267:31d6971853f3
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Dec 16 11:16:14 2021 +0000

description:
py-funcparserlib: fix build with latest setuptools

diffstat:

 devel/py-funcparserlib/Makefile               |   8 +++++++-
 devel/py-funcparserlib/distinfo               |   3 ++-
 devel/py-funcparserlib/patches/patch-setup.py |  15 +++++++++++++++
 3 files changed, 24 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 5b423d191c21 -r 31d6971853f3 devel/py-funcparserlib/Makefile
--- a/devel/py-funcparserlib/Makefile   Thu Dec 16 09:53:58 2021 +0000
+++ b/devel/py-funcparserlib/Makefile   Thu Dec 16 11:16:14 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2017/09/04 18:55:08 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2021/12/16 11:16:14 wiz Exp $
 
 DISTNAME=      funcparserlib-0.3.6
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -13,4 +13,10 @@
 USE_LANGUAGES= # none
 
 .include "../../lang/python/egg.mk"
+
+.if ${PYPKGPREFIX} != "py27"
+pre-build:
+       cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs funcparserlib
+.endif
+
 .include "../../mk/bsd.pkg.mk"
diff -r 5b423d191c21 -r 31d6971853f3 devel/py-funcparserlib/distinfo
--- a/devel/py-funcparserlib/distinfo   Thu Dec 16 09:53:58 2021 +0000
+++ b/devel/py-funcparserlib/distinfo   Thu Dec 16 11:16:14 2021 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:18:29 nia Exp $
+$NetBSD: distinfo,v 1.6 2021/12/16 11:16:14 wiz Exp $
 
 BLAKE2s (funcparserlib-0.3.6.tar.gz) = 72faccec12b02e2e33333df5670de99768b5eecf94d46c13fb7d97aa11105d4b
 SHA512 (funcparserlib-0.3.6.tar.gz) = efa52f788aa902b099660cb8bc60a025085a8c383e52bd0824a0c3ae28a6c13804a0659de0c80b4dcd839ee70491805d4eecda6cea221e35c3750ec569098c24
 Size (funcparserlib-0.3.6.tar.gz) = 30401 bytes
+SHA1 (patch-setup.py) = 60cddcb0ff8e20036f26865f4134bfdb0058f436
diff -r 5b423d191c21 -r 31d6971853f3 devel/py-funcparserlib/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-funcparserlib/patches/patch-setup.py     Thu Dec 16 11:16:14 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2021/12/16 11:16:14 wiz Exp $
+
+Fix build with latest setuptools.
+
+--- setup.py.orig      2013-05-02 15:09:16.000000000 +0000
++++ setup.py
+@@ -4,8 +4,6 @@ from setuptools import setup
+ import sys
+ 
+ extra = {}
+-if sys.version_info >= (3,):
+-    extra['use_2to3'] = True
+ 
+ 
+ setup(



Home | Main Index | Thread Index | Old Index