pkgsrc/devel/py-mako/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

28 lines
759 B
Makefile

# $NetBSD: Makefile,v 1.26 2022/01/05 15:41:06 wiz Exp $
DISTNAME= Mako-1.1.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
PKGREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=M/Mako/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.makotemplates.org/
COMMENT= Hyperfast and lightweight templating for the Python platform
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-markupsafe>=0.9.2:../../textproc/py-markupsafe
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
USE_PKG_RESOURCES= yes
PYSETUPTESTTARGET= pytest
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} mako-render mako-render-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"