mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 06:51:57 +01:00
To help identify code-complexity [0] issues using the McCabe index, the pmccabe [1] tool can be used. [0] https://en.wikipedia.org/wiki/Cyclomatic_complexity [1] https://gitlab.com/pmccabe/pmccabe Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
27 lines
708 B
Plaintext
27 lines
708 B
Plaintext
# Contributor: Olliver Schinagl <oliver@schinagl.nl>
|
|
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
|
|
pkgname="pmccabe"
|
|
pkgver="2.8"
|
|
pkgrel=0
|
|
pkgdesc="McCabe-style complexity and line counting for C and C++"
|
|
url="https://gitlab.com/pmccabe/pmccabe"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
subpackages="${pkgname}-doc"
|
|
source="https://gitlab.com/pmccabe/pmccabe/-/archive/v${pkgver}/pmccabe-v${pkgver}.tar.bz2"
|
|
builddir="${srcdir}/pmccabe-v${pkgver}"
|
|
|
|
build() {
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|
|
|
|
sha512sums="0f3b4287b59eafd7011192cbec1b69c3216bdcb73eb6231a5c965dca12f710e204a55cd029b69169a42b2dd575c629905f0700e0272b2e7594239a0f75660a52 pmccabe-v2.8.tar.bz2"
|