pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-trytond py-trytond: fix build with latest set...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d2327671a5d7
branches: trunk
changeset: 771292:d2327671a5d7
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Dec 16 14:48:11 2021 +0000
description:
py-trytond: fix build with latest setuptools
diffstat:
devel/py-trytond/Makefile | 10 ++++++++--
devel/py-trytond/distinfo | 3 ++-
devel/py-trytond/patches/patch-setup.py | 12 ++++++++++++
3 files changed, 22 insertions(+), 3 deletions(-)
diffs (56 lines):
diff -r 14b059510d29 -r d2327671a5d7 devel/py-trytond/Makefile
--- a/devel/py-trytond/Makefile Thu Dec 16 14:35:40 2021 +0000
+++ b/devel/py-trytond/Makefile Thu Dec 16 14:48:11 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2020/01/18 23:30:39 rillig Exp $
+# $NetBSD: Makefile,v 1.21 2021/12/16 14:48:11 wiz Exp $
TRYTON_MODULE_NAME= trytond
.include "../../devel/py-trytond/Makefile.common"
CATEGORIES= devel python
@@ -54,6 +54,13 @@
CONF_FILES+= ${EGDIR}/logging.conf.example \
${CONFDIR}/logging.conf
+.include "../../lang/python/egg.mk"
+
+.if ${PYPKGPREFIX} != "py27"
+pre-build:
+ cd ${WRKSRC} && 2to3-${PYVERSSUFFIX} -w --no-diffs trytond
+.endif
+
post-install:
${MV} ${DESTDIR}${PREFIX}/bin/trytond-admin \
${DESTDIR}${PREFIX}/bin/trytond-admin${PYVERSSUFFIX} || ${TRUE}
@@ -67,5 +74,4 @@
${DESTDIR}${PREFIX}/${EGDIR}/logging.conf.example
.include "../../lang/python/application.mk"
-.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 14b059510d29 -r d2327671a5d7 devel/py-trytond/distinfo
--- a/devel/py-trytond/distinfo Thu Dec 16 14:35:40 2021 +0000
+++ b/devel/py-trytond/distinfo Thu Dec 16 14:48:11 2021 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.13 2021/10/26 10:19:12 nia Exp $
+$NetBSD: distinfo,v 1.14 2021/12/16 14:48:11 wiz Exp $
BLAKE2s (tryton-4.2/trytond-4.2.1.tar.gz) = 633773d9a79c7974ba605350706231ce6a66a8dd306e690b4271efd494b987ad
SHA512 (tryton-4.2/trytond-4.2.1.tar.gz) = 3716a56d87e95dabaa77f2210c9499a6d1ae0278b7bae2034d6a19db8a40f1e22efd48118de9af1a72022b556a991d4293886804b2b531be0f4dd038fbe9e882
Size (tryton-4.2/trytond-4.2.1.tar.gz) = 581536 bytes
+SHA1 (patch-setup.py) = 4b802daf2801407b5c0d89eb130742a63555bc10
diff -r 14b059510d29 -r d2327671a5d7 devel/py-trytond/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-trytond/patches/patch-setup.py Thu Dec 16 14:48:11 2021 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-setup.py,v 1.1 2021/12/16 14:48:11 wiz Exp $
+
+Fix build with latest setuptools.
+
+--- setup.py.orig 2016-12-13 17:02:57.000000000 +0000
++++ setup.py
+@@ -115,5 +115,4 @@ setup(name=name,
+ test_suite='trytond.tests',
+ test_loader='trytond.test_loader:Loader',
+ tests_require=['mock'],
+- use_2to3=True,
+ )
Home |
Main Index |
Thread Index |
Old Index