pkgsrc/devel/py-cpplint/Makefile
gutteridge 0431965ff1 py-cpplint: fix sandboxed builds
In (some) sandboxed environments, this would fail to build due to a
series of failures relating to setup requirements. It prefers py-pip,
so simply explicitly make that a TOOL_DEPENDS.
2020-07-21 00:22:53 +00:00

32 lines
963 B
Makefile

# $NetBSD: Makefile,v 1.2 2020/07/21 00:22:53 gutteridge Exp $
DISTNAME= cpplint-1.5.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/cpplint/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/cpplint/cpplint
COMMENT= Static code checker for C++
LICENSE= modified-bsd
TOOL_DEPENDS+= ${PYPKGPREFIX}-pip-[0-9]*:../../devel/py-pip
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
PYTHON_VERSIONED_DEPENDENCIES= test:test zipp:test
.include "../../lang/python/pyversion.mk"
.if ${PYPKGPREFIX} == "py27"
TEST_DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
.else
TEST_DEPENDS+= ${PYPKGPREFIX}-pyparsing-[0-9]*:../../devel/py-pyparsing
.endif
post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} cpplint cpplint-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"