projects/aports·blob master · refs

44 lines · 1.2 KiB

1# Contributor: Patrycja Rosa <[email protected]>
2# Maintainer: Patrycja Rosa <[email protected]>
3pkgname=cpplint
4pkgver=2.0.2
5pkgrel=1
6pkgdesc="Static code checker for C++"
7url="https://github.com/cpplint/cpplint"
8arch="noarch"
9license="BSD-3-Clause"
10makedepends="py3-setuptools py3-gpep517 py3-wheel"
11checkdepends="
12 py3-parameterized
13 py3-pytest
14 py3-pytest-cov
15 py3-pytest-runner
16 py3-pytest-timeout
17 py3-testfixtures
18 "
19subpackages="$pkgname-pyc"
20source="https://github.com/cpplint/cpplint/archive/$pkgver/cpplint-$pkgver.tar.gz
21 replace-codecs-open.patch
22 "
23
24build() {
25 gpep517 build-wheel \
26 --wheel-dir .dist \
27 --output-fd 3 3>&1 >&2
28}
29
30check() {
31 python3 -m venv --clear --without-pip --system-site-packages .testenv
32 .testenv/bin/python3 -m installer .dist/*.whl
33 .testenv/bin/python3 -m pytest
34}
35
36package() {
37 gpep517 install-wheel --destdir "$pkgdir" \
38 .dist/*.whl
39}
40
41sha512sums="
42afb98f4c0da4a694d5fb1005862ed0d3c6f676da8893b461f2c6f99edc7decacb375569a4f3b07b9e533ec3775c3c9fbff1e72b228d302c826e3a7f6725d13b5 cpplint-2.0.2.tar.gz
4350ac00c36e88ae35e0f38182f136d041ef147505cf5bffdcf221043a647f8f4799ca4005130f85defbb719031cea26cdc3d2aecbefa7e823e7d5018d2cea0e68 replace-codecs-open.patch
44"