pkgsrc/lang/py-uncompyle6/Makefile
wiz 67e1f1a6bf python: egg.mk: add USE_PKG_RESOURCES flag
This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
2022-01-05 15:40:56 +00:00

33 lines
960 B
Makefile

# $NetBSD: Makefile,v 1.30 2022/01/05 15:41:13 wiz Exp $
DISTNAME= uncompyle6-3.8.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= lang python
MASTER_SITES= ${MASTER_SITE_PYPI:=u/uncompyle6/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/rocky/python-uncompyle6
COMMENT= Python cross-version byte-code decompiler
LICENSE= gnu-gpl-v3
DEPENDS+= ${PYPKGPREFIX}-spark-parser>=1.8.9:../../lang/py-spark-parser
DEPENDS+= ${PYPKGPREFIX}-xdis>=6.0.2:../../devel/py-xdis
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-xdis
USE_PKG_RESOURCES= yes
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} pydisassemble pydisassemble-${PYVERSSUFFIX} && \
${MV} uncompyle6 uncompyle6-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC}/pytest && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"