py-xdis: does not build with python 2.7, mark it so

Also mark packages using it that way.
This commit is contained in:
wiz 2021-12-17 00:15:47 +00:00
parent d3002c40eb
commit 55e17bc832
2 changed files with 7 additions and 5 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.37 2021/11/10 16:09:53 adam Exp $
# $NetBSD: Makefile,v 1.38 2021/12/17 00:15:47 wiz Exp $
DISTNAME= xdis-6.0.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@ -16,6 +16,8 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} pydisasm pydisasm-${PYVERSSUFFIX} || ${TRUE}

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.27 2021/10/31 08:44:00 adam Exp $
# $NetBSD: Makefile,v 1.28 2021/12/17 00:15:47 wiz Exp $
DISTNAME= uncompyle6-3.8.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@ -12,11 +12,12 @@ LICENSE= gnu-gpl-v3
DEPENDS+= ${PYPKGPREFIX}-spark-parser>=1.8.9:../../lang/py-spark-parser
DEPENDS+= ${PYPKGPREFIX}-xdis>=6.0.2:../../devel/py-xdis
PYTHON_VERSIONED_DEPENDENCIES= test:test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-xdis
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} pydisassemble pydisassemble-${PYVERSSUFFIX} && \
@ -26,5 +27,4 @@ do-test:
cd ${WRKSRC}/pytest && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"