1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

devel/cpplint: addinf cpplint, a static code checker for C++

See <https://github.com/cpplint/cpplint>.
This commit is contained in:
Thierry Thomas 2021-05-30 17:31:32 +02:00
parent 563d5929d5
commit 36063d2e7b
6 changed files with 59 additions and 0 deletions

View File

@ -396,6 +396,7 @@
SUBDIR += cppcheck
SUBDIR += cppcheck-gui
SUBDIR += cppi
SUBDIR += cpplint
SUBDIR += cpprestsdk
SUBDIR += cpptest
SUBDIR += cppunit

29
devel/cpplint/Makefile Normal file
View File

@ -0,0 +1,29 @@
# Created by: thierry@pompo.net
PORTNAME= cpplint
PORTVERSION= 1.5.5
CATEGORIES= devel
MAINTAINER= thierry@FreeBSD.org
COMMENT= Static code checker for C++
LICENSE= BSD3CLAUSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}zipp>0:devel/py-zipp@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyparsing>0:devel/py-pyparsing@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}testfixtures>0:devel/py-testfixtures@${PY_FLAVOR}
USE_GITHUB= yes
USES= python:3.6+
USE_PYTHON= distutils noflavors
NO_ARCH= yes
do-test:
(cd ${WRKSRC} && py.test)
.include <bsd.port.mk>

3
devel/cpplint/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1622299602
SHA256 (cpplint-cpplint-1.5.5_GH0.tar.gz) = 6abc3acd7b0a3d51d8dcaff0a8cb66c772dea73dd45099cba2d0960ec90e8de4
SIZE (cpplint-cpplint-1.5.5_GH0.tar.gz) = 369078

View File

@ -0,0 +1,12 @@
--- setup.py.orig 2021-05-20 10:29:07 UTC
+++ setup.py
@@ -72,9 +72,6 @@ setup(name='cpplint',
description='Automated checker to ensure C++ files follow Google\'s style guide',
long_description=open('README.rst').read(),
license='BSD-3-Clause',
- setup_requires=[
- "pytest-runner==5.2"
- ],
tests_require=test_required,
# extras_require allow pip install .[dev]
extras_require={

10
devel/cpplint/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
Cpplint is a command-line tool to check C/C++ files for style issues following
Google's C++ style guide. Cpplint is developed and maintained by Google Inc. at
google/styleguide <https://github.com/google/styleguide>, also see the wikipedia
entry <http://en.wikipedia.org/wiki/Cpplint>.
While Google maintains cpplint, Google is not (very) responsive to issues and
pull requests, this fork aims to be (somewhat) more open to add fixes to cpplint
to enable fixes, when those fixes make cpplint usable in wider contexts.
WWW: https://github.com/cpplint/cpplint

4
devel/cpplint/pkg-plist Normal file
View File

@ -0,0 +1,4 @@
bin/cpplint
%%PYTHON_SITELIBDIR%%/__pycache__/cpplint%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/__pycache__/cpplint%%PYTHON_EXT_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/cpplint.py