Skip to content

Commit

Permalink
Added cpplint
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Fabrizio Orsi <[email protected]>
  • Loading branch information
lima-limon-inc committed Aug 23, 2023
1 parent cdb5bb5 commit 1d1c0c0
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-cpp/cpplint/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST cpplint-1.6.1.gh.tar.gz 372622 BLAKE2B f3afaba6f8389e8d925e20d94cbcf1451d11b85ca7914b53f966c575a5be7a6b4eb7367f53e549644019ccd1f76eca61415f0c5997842cb5640ab5a7ba00c1de SHA512 be5c3c9044d862fc82e66987a76f3d01d5733c26774185fa3776b16943c3cb36d391bc20009940db744853df03614b47d88988c6823f8cda20b794b9075684cb
25 changes: 25 additions & 0 deletions dev-cpp/cpplint/cpplint-1.6.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1

DESCRIPTION="Static code checker for C++ (fork of Google's cpplint"
HOMEPAGE="https://github.com/cpplint/cpplint"
SRC_URI="https://github.com/cpplint/cpplint/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"

LICENSE="cpplintlicense"
SLOT="0"
KEYWORDS="~amd64"

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2


distutils_enable_tests pytest
27 changes: 27 additions & 0 deletions licenses/cpplintlicense
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cpplint.py and its corresponding unit tests are Copyright (C) 2009 Google Inc.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 changes: 22 additions & 0 deletions profiles/license_groups
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Please report bugs or other requests at bugs.gentoo.org and assign to
# [email protected]

# GLEP 23
# https://www.gentoo.org/glep/glep-0023.html

# Keep the lists sorted (in C locale, but ignoring case)

######################################################################

# Misc licenses that are probably free software, i.e. follow the
# Free Software Definition at https://www.gnu.org/philosophy/free-sw.html
# but are not approved by either FSF or OSI. Preferably on the long
# term these should be cleared up and moved to other sets.
# Licenses in this list should NOT appear directly or indirectly in
# @FSF-APPROVED or @OSI-APPROVED.
# Note: Licenses for fonts should be included in @MISC-FREE-DOCS.
MISC-FREE cpplintlicense

0 comments on commit 1d1c0c0

Please sign in to comment.