Tue Jul 21 00:22:53 2020 UTC ()
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.


(gutteridge)
diff -r1.1 -r1.2 pkgsrc/devel/py-cpplint/Makefile

cvs diff -r1.1 -r1.2 pkgsrc/devel/py-cpplint/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-cpplint/Makefile 2020/06/29 13:09:44 1.1
+++ pkgsrc/devel/py-cpplint/Makefile 2020/07/21 00:22:53 1.2
@@ -1,25 +1,27 @@ @@ -1,25 +1,27 @@
1# $NetBSD: Makefile,v 1.1 2020/06/29 13:09:44 wiz Exp $ 1# $NetBSD: Makefile,v 1.2 2020/07/21 00:22:53 gutteridge Exp $
2 2
3DISTNAME= cpplint-1.5.1 3DISTNAME= cpplint-1.5.1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=c/cpplint/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=c/cpplint/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/cpplint/cpplint 9HOMEPAGE= https://github.com/cpplint/cpplint
10COMMENT= Static code checker for C++ 10COMMENT= Static code checker for C++
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
 13TOOL_DEPENDS+= ${PYPKGPREFIX}-pip-[0-9]*:../../devel/py-pip
 14
13TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov 15TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
14 16
15PYTHON_VERSIONED_DEPENDENCIES= test:test zipp:test 17PYTHON_VERSIONED_DEPENDENCIES= test:test zipp:test
16 18
17.include "../../lang/python/pyversion.mk" 19.include "../../lang/python/pyversion.mk"
18 20
19.if ${PYPKGPREFIX} == "py27" 21.if ${PYPKGPREFIX} == "py27"
20TEST_DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser 22TEST_DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
21.else 23.else
22TEST_DEPENDS+= ${PYPKGPREFIX}-pyparsing-[0-9]*:../../devel/py-pyparsing 24TEST_DEPENDS+= ${PYPKGPREFIX}-pyparsing-[0-9]*:../../devel/py-pyparsing
23.endif 25.endif
24 26
25post-install: 27post-install: