pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/py-feedparser5 py-feedparser5: fix build with...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dbe848f93a32
branches:  trunk
changeset: 770658:dbe848f93a32
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Dec 06 15:11:25 2021 +0000

description:
py-feedparser5: fix build with latest setuptools.

diffstat:

 textproc/py-feedparser5/Makefile               |   9 ++++++++-
 textproc/py-feedparser5/distinfo               |   3 ++-
 textproc/py-feedparser5/patches/patch-setup.py |  15 +++++++++++++++
 3 files changed, 25 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 2a0aad37cab9 -r dbe848f93a32 textproc/py-feedparser5/Makefile
--- a/textproc/py-feedparser5/Makefile  Mon Dec 06 15:03:50 2021 +0000
+++ b/textproc/py-feedparser5/Makefile  Mon Dec 06 15:11:25 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2021/08/19 19:21:00 nia Exp $
+# $NetBSD: Makefile,v 1.3 2021/12/06 15:11:25 wiz Exp $
 
 DISTNAME=              feedparser-5.2.1
 PKGNAME=               ${PYPKGPREFIX}-${DISTNAME}
@@ -15,6 +15,13 @@
 
 USE_LANGUAGES=         #none
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} != "py27"
+pre-build:
+       cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs feedparser/f*py
+.endif
+
 do-test:
        cd ${WRKSRC}/feedparser && ${PYTHONBIN} feedparsertest.py
 
diff -r 2a0aad37cab9 -r dbe848f93a32 textproc/py-feedparser5/distinfo
--- a/textproc/py-feedparser5/distinfo  Mon Dec 06 15:03:50 2021 +0000
+++ b/textproc/py-feedparser5/distinfo  Mon Dec 06 15:11:25 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:23:03 nia Exp $
+$NetBSD: distinfo,v 1.5 2021/12/06 15:11:25 wiz Exp $
 
 BLAKE2s (feedparser-5.2.1.tar.gz) = 9afc4315f5467ee09ecde96150a7ac5f3f2095ed5253add34a991b61120f1ad6
 SHA512 (feedparser-5.2.1.tar.gz) = 1fd0c4324e2eff8ef4b15e3793c767290bca562af4a5056fdbdfa12411095530c87a113bb1b9757e532ff63aecb399b18f1e6b753884798eb6b8d3fdf575af81
 Size (feedparser-5.2.1.tar.gz) = 252956 bytes
 SHA1 (patch-feedparser_feedparser.py) = dd96707b0a85cd0d2f40dea2e7cd14f3235a905c
+SHA1 (patch-setup.py) = 05ba2bb1fe9b7c83f59e5c678088f692d795ccd8
diff -r 2a0aad37cab9 -r dbe848f93a32 textproc/py-feedparser5/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-feedparser5/patches/patch-setup.py    Mon Dec 06 15:11:25 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2021/12/06 15:11:25 wiz Exp $
+
+Fix build with latest setuptools.
+
+--- setup.py.orig      2015-07-24 05:00:04.000000000 +0000
++++ setup.py
+@@ -2,8 +2,6 @@ from setuptools import setup
+ import sys
+ 
+ extra = {}
+-if sys.version_info >= (3, ):
+-    extra['use_2to3'] = True
+ 
+ setup(
+     name = 'feedparser',



Home | Main Index | Thread Index | Old Index