Wed Nov 24 11:38:11 2021 UTC ()
py-beautifulsoup4: fix build with latest setuptools


(wiz)
diff -r1.21 -r1.22 pkgsrc/www/py-beautifulsoup4/Makefile
diff -r1.19 -r1.20 pkgsrc/www/py-beautifulsoup4/distinfo
diff -r0 -r1.1 pkgsrc/www/py-beautifulsoup4/patches/patch-setup.py

cvs diff -r1.21 -r1.22 pkgsrc/www/py-beautifulsoup4/Makefile (expand / switch to context diff)
--- pkgsrc/www/py-beautifulsoup4/Makefile 2020/10/03 18:11:59 1.21
+++ pkgsrc/www/py-beautifulsoup4/Makefile 2021/11/24 11:38:10 1.22
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2020/10/03 18:11:59 adam Exp $
+# $NetBSD: Makefile,v 1.22 2021/11/24 11:38:10 wiz Exp $
 
 DISTNAME=	beautifulsoup4-4.9.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
@@ -15,6 +15,9 @@
 DEPENDS+=	${PYPKGPREFIX}-soupsieve>=1.2:../../www/py-soupsieve
 
 USE_LANGUAGES=	# none
+
+pre-build:
+	cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w bs4
 
 do-test:
 	cd ${WRKSRC} && ${PYTHONBIN} -m unittest discover -s bs4

cvs diff -r1.19 -r1.20 pkgsrc/www/py-beautifulsoup4/distinfo (expand / switch to context diff)
--- pkgsrc/www/py-beautifulsoup4/distinfo 2021/10/26 11:30:28 1.19
+++ pkgsrc/www/py-beautifulsoup4/distinfo 2021/11/24 11:38:10 1.20
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.19 2021/10/26 11:30:28 nia Exp $
+$NetBSD: distinfo,v 1.20 2021/11/24 11:38:10 wiz Exp $
 
 BLAKE2s (beautifulsoup4-4.9.3.tar.gz) = 112f5525d2b3fe1f665deed3e3383ede4265e82bdd2a07fd95f5c4e5ce04787e
 SHA512 (beautifulsoup4-4.9.3.tar.gz) = e3cb6258bd7c51f12128fa8ee5948fb3566163ae233fac2dda21bab7772ab8dbb384d920b0ea138ef9921307b48f89cee3a9bf6111dfc8903d917ee7af365f34
 Size (beautifulsoup4-4.9.3.tar.gz) = 376031 bytes
+SHA1 (patch-setup.py) = f41e5b0f3cbb35963b503774e5dd1904bdb48876

File Added: pkgsrc/www/py-beautifulsoup4/patches/Attic/patch-setup.py
$NetBSD: patch-setup.py,v 1.1 2021/11/24 11:38:11 wiz Exp $

option not supported any longer.

--- setup.py.orig	2020-10-03 15:31:00.000000000 +0000
+++ setup.py
@@ -30,7 +30,6 @@ setup(
         'lxml' : [ 'lxml'],
         'html5lib' : ['html5lib'],
     },
-    use_2to3 = True,
     classifiers=["Development Status :: 5 - Production/Stable",
                  "Intended Audience :: Developers",
                  "License :: OSI Approved :: MIT License",