diff --git a/srcpkgs/gcovr/template b/srcpkgs/gcovr/template new file mode 100644 index 00000000000..c58df5e4f56 --- /dev/null +++ b/srcpkgs/gcovr/template @@ -0,0 +1,33 @@ +# Template file for 'gcovr' +pkgname=gcovr +version=3.3 +revision=1 +noarch=yes +build_style=python-module +pycompile_module="gcovr" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-setuptools" +short_desc="Generates a simple report that summarizes the gcc code coverage" +maintainer="Andre Klitzing " +homepage="http://gcovr.com/" +license="3-clause-BSD" +distfiles="https://github.com/gcovr/gcovr/archive/${version}.tar.gz" +checksum=8a60ba6242d67a58320e9e16630d80448ef6d5284fda5fb3eff927b63c8b04a2 +alternatives="gcovr:gcovr:/usr/bin/gcovr2" + +post_install() { + vlicense LICENSE.txt +} + +python3-gcovr_package() { + noarch=yes + pycompile_module="gcovr" + depends="python3-setuptools" + alternatives="gcovr:gcovr:/usr/bin/gcovr3" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/bin/*3 + vmove usr/lib/python3* + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3-gcovr b/srcpkgs/python3-gcovr new file mode 120000 index 00000000000..db0a5ee6217 --- /dev/null +++ b/srcpkgs/python3-gcovr @@ -0,0 +1 @@ +gcovr \ No newline at end of file