pkgsrc/www/py-gunicorn/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

32 lines
863 B
Makefile

# $NetBSD: Makefile,v 1.22 2022/01/05 15:41:29 wiz Exp $
DISTNAME= gunicorn-20.1.0
PKGREVISION= 2
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=g/gunicorn/}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
MAINTAINER= gls@NetBSD.org
HOMEPAGE= https://gunicorn.org/
COMMENT= Python WSGI HTTP server
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-setuptools>=3.0:../../devel/py-setuptools
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.0.5:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=2.4.0:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
PYSETUPTESTTARGET= pytest
PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_PKG_RESOURCES= yes
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} gunicorn gunicorn-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"