mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
41 lines
1 KiB
Text
41 lines
1 KiB
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=cpplint
|
|
pkgver=2.0.2
|
|
pkgrel=0
|
|
pkgdesc="Static code checker for C++"
|
|
url="https://github.com/cpplint/cpplint"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
checkdepends="
|
|
py3-parameterized
|
|
py3-pytest
|
|
py3-pytest-cov
|
|
py3-pytest-runner
|
|
py3-pytest-timeout
|
|
py3-testfixtures
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/cpplint/cpplint/archive/$pkgver/cpplint-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
afb98f4c0da4a694d5fb1005862ed0d3c6f676da8893b461f2c6f99edc7decacb375569a4f3b07b9e533ec3775c3c9fbff1e72b228d302c826e3a7f6725d13b5 cpplint-2.0.2.tar.gz
|
|
"
|