From owner-dev-commits-ports-main@freebsd.org Sun May 30 15:34:50 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9365A6577C1; Sun, 30 May 2021 15:34:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FtMtL3hZSz3CgN; Sun, 30 May 2021 15:34:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 682A31F80B; Sun, 30 May 2021 15:34:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14UFYof1015595; Sun, 30 May 2021 15:34:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14UFYowq015594; Sun, 30 May 2021 15:34:50 GMT (envelope-from git) Date: Sun, 30 May 2021 15:34:50 GMT Message-Id: <202105301534.14UFYowq015594@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 36063d2e7bd5 - main - devel/cpplint: addinf cpplint, a static code checker for C++ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 36063d2e7bd511d34034dbfe34230af3a0b08f82 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2021 15:34:50 -0000 The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=36063d2e7bd511d34034dbfe34230af3a0b08f82 commit 36063d2e7bd511d34034dbfe34230af3a0b08f82 Author: Thierry Thomas AuthorDate: 2021-05-30 15:31:32 +0000 Commit: Thierry Thomas CommitDate: 2021-05-30 15:33:07 +0000 devel/cpplint: addinf cpplint, a static code checker for C++ See . --- devel/Makefile | 1 + devel/cpplint/Makefile | 29 +++++++++++++++++++++++++++++ devel/cpplint/distinfo | 3 +++ devel/cpplint/files/patch-setup.py | 12 ++++++++++++ devel/cpplint/pkg-descr | 10 ++++++++++ devel/cpplint/pkg-plist | 4 ++++ 6 files changed, 59 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 2d1f38207da1..5389ef0d005a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -396,6 +396,7 @@ SUBDIR += cppcheck SUBDIR += cppcheck-gui SUBDIR += cppi + SUBDIR += cpplint SUBDIR += cpprestsdk SUBDIR += cpptest SUBDIR += cppunit diff --git a/devel/cpplint/Makefile b/devel/cpplint/Makefile new file mode 100644 index 000000000000..2596a590a09c --- /dev/null +++ b/devel/cpplint/Makefile @@ -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 diff --git a/devel/cpplint/distinfo b/devel/cpplint/distinfo new file mode 100644 index 000000000000..6426d6089991 --- /dev/null +++ b/devel/cpplint/distinfo @@ -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 diff --git a/devel/cpplint/files/patch-setup.py b/devel/cpplint/files/patch-setup.py new file mode 100644 index 000000000000..6dd502a42560 --- /dev/null +++ b/devel/cpplint/files/patch-setup.py @@ -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={ diff --git a/devel/cpplint/pkg-descr b/devel/cpplint/pkg-descr new file mode 100644 index 000000000000..42c82adfe467 --- /dev/null +++ b/devel/cpplint/pkg-descr @@ -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 , also see the wikipedia +entry . + +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 diff --git a/devel/cpplint/pkg-plist b/devel/cpplint/pkg-plist new file mode 100644 index 000000000000..2651341013b3 --- /dev/null +++ b/devel/cpplint/pkg-plist @@ -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