pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-backports py-backports: allow newer Python ve...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93583f30a38e
branches:  trunk
changeset: 769119:93583f30a38e
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Nov 08 12:00:18 2021 +0000

description:
py-backports: allow newer Python versions; bump revision

diffstat:

 devel/py-backports/Makefile |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r ee11f94d5365 -r 93583f30a38e devel/py-backports/Makefile
--- a/devel/py-backports/Makefile       Mon Nov 08 10:28:30 2021 +0000
+++ b/devel/py-backports/Makefile       Mon Nov 08 12:00:18 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2019/12/13 09:08:01 adam Exp $
+# $NetBSD: Makefile,v 1.4 2021/11/08 12:00:18 adam Exp $
 
 PKGNAME=       ${PYPKGPREFIX}-backports-1.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel python
 MASTER_SITES=  # empty
 
@@ -12,9 +12,12 @@
 
 PY_PATCHPLIST= yes
 
-PYTHON_VERSIONS_ACCEPTED=      27
+.include "../../lang/python/pyversion.mk"
 
 INSTALLATION_DIRS+=    ${PYSITELIB}/backports
+.if ${_PYTHON_VERSION} != 27
+INSTALLATION_DIRS+=    ${PYSITELIB}/backports/__pycache__
+.endif
 
 do-extract:
        ${MKDIR} ${WRKSRC}
@@ -25,6 +28,10 @@
 
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/__init__.* ${DESTDIR}${PREFIX}/${PYSITELIB}/backports/
+.if ${_PYTHON_VERSION} != 27
+       ${INSTALL_SCRIPT} ${WRKSRC}/__pycache__/__init__.* \
+               ${DESTDIR}${PREFIX}/${PYSITELIB}/backports/__pycache__/
+.endif
 
 .include "../../lang/python/extension.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index