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

25 lines
575 B
Makefile

# $NetBSD: Makefile,v 1.6 2022/01/05 15:41:09 wiz Exp $
DISTNAME= yapf-0.32.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= devel textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=y/yapf/}
MAINTAINER= nils@NetBSD.org
HOMEPAGE= https://github.com/google/yapf
COMMENT= Python files formatter
LICENSE= apache-2.0
USE_LANGUAGES= # none
USE_PKG_RESOURCES= yes
post-install:
.for bin in yapf yapf-diff
cd ${DESTDIR}${PREFIX}/bin && \
${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
.endfor
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"