diff options
Diffstat (limited to 'dev-util/lcov')
-rw-r--r-- | dev-util/lcov/Manifest | 8 | ||||
-rw-r--r-- | dev-util/lcov/lcov-1.16.ebuild | 51 | ||||
-rw-r--r-- | dev-util/lcov/lcov-2.0.ebuild | 84 | ||||
-rw-r--r-- | dev-util/lcov/lcov-9999.ebuild | 65 | ||||
-rw-r--r-- | dev-util/lcov/metadata.xml | 4 |
5 files changed, 194 insertions, 18 deletions
diff --git a/dev-util/lcov/Manifest b/dev-util/lcov/Manifest index dd7901dc7b31..e3c5f846656b 100644 --- a/dev-util/lcov/Manifest +++ b/dev-util/lcov/Manifest @@ -1,4 +1,8 @@ DIST lcov-1.15.tar.gz 190487 BLAKE2B 2d6478caae488b84c74a3f7b489013b065b3e8fb106a6e8c5f413ffe87be7f4530aade8d2b5df5b8193949d60f49d5255b4eddb0cd5f1cab6f450ba2f97426ab SHA512 dda0eadbd0ea2093f17cba039309ccda3dbcb7266d083b46bda61e02cd7f049d66de49be1e005157c3e5af910d2703ffbc9cfe7f1242bd67b9787f8508e4d052 +DIST lcov-1.16.tar.gz 196813 BLAKE2B 2a0a2d3ff6291eb3e9cc290006a3723451ab276891f9b63f8dcce82a305caa5558b5bb7bc72fa11620130824df4f9c4312edc23eb86f98eab4a8879e1212a3d5 SHA512 f9fdc5348a97e4262a22d1594df7847165c93447fd5d264d194029f86bf751f18bf91badaf0172d406bca98e4bb3997f133a3ca144105f5acfabeec82f369a37 +DIST lcov-2.0.tar.gz 391695 BLAKE2B 737d6104ebedf90ba2c3bf0c439dd7e2d18724d7267c3bd79897140785246d9ed6334eec9eabc888e361f5e22515da9756e946e1097777fb88c140398b0b078a SHA512 b19b6debc93c0de0e7e5b2aaffa6c74d20a1313ea4d20d8731c6a5ea7f4cc40933316d28ef791c91fdc12ca77c9449a388405f3dc0793588e366b72f596ab49b EBUILD lcov-1.15.ebuild 950 BLAKE2B 1afd76f57a98b8c9d50d9370dd51687c7a9b91792fe8e221eb1aa3ef38b497032327423fa3857cfba0b1a22f8504a5bb21a6db12e2233ddb636476aba6e2fafe SHA512 92d833830f514dd654b1cc12ee1549dc9e7f9cad61084be4102e997a65f00e1ba524679f3a4116841ef6c94a186acce43ecac5a55f0b4e483f829af7fca330a4 -EBUILD lcov-9999.ebuild 893 BLAKE2B e68b9910b6becad39f1bf29def5fa97a1750d6efa148fcc24a3a5d56a81b9b4ca426b39a3ee524fb048391f96a3083dc04ec806845bc40298adc3dd13f1d945d SHA512 d14013aee57b9515ee877fb9e3007696a0f2611b5229db580ada72d742e15b7b65fe5f0467be289f5dc8e678cc3b5da42df43a19e894400cea779517caf3dd93 -MISC metadata.xml 653 BLAKE2B e0597c07439b5fd2d1531f46bea3325c373e15752f5d7f34741f2236fa2fd6874b087b04d1a7ef95a7d42c7d4105079a61aa68cb32e6aa05ba4098ff38893cff SHA512 2dcdd2e5d81812d6be0db26efe271dba727e074daf2e05c218b3b508a32bf8b7bd8608c8c29f762a2972a0a418f899c42becd63b7dafe69a02aed975183d7d33 +EBUILD lcov-1.16.ebuild 1036 BLAKE2B 5da6176d50f06a223abcc500c9c0b0cc3f69bdabe5fb1acbbeee13ac7858a78b04527df573d497a6c0ddbbc74097c55da801b1e75db47f5f5cb6531558b5f700 SHA512 aaf5e0c3db2e6b840011862812c9a7c12aa229a83c8154f5429ed4ceedb1f3a625f58819a9f4a3074203585780ff156c6eacf9613dcb7e09fdeb6fe1f034888e +EBUILD lcov-2.0.ebuild 1828 BLAKE2B 01c0919d02580af6f50973578960aea939d95cdf984efa361920255e7d553ad4e067ab205ef5216bd71cce4b5c4926402be9db20a078be5e9005aea5b888c908 SHA512 5a8124f7d19c87a7e868213e9cfc28fc250a0635eda24a1474e74174bbd367f3ce25b417c3e1c4f9de272ca25f52b5d51c20c00c05c381c7c24f612f31ce0cba +EBUILD lcov-9999.ebuild 1828 BLAKE2B 01c0919d02580af6f50973578960aea939d95cdf984efa361920255e7d553ad4e067ab205ef5216bd71cce4b5c4926402be9db20a078be5e9005aea5b888c908 SHA512 5a8124f7d19c87a7e868213e9cfc28fc250a0635eda24a1474e74174bbd367f3ce25b417c3e1c4f9de272ca25f52b5d51c20c00c05c381c7c24f612f31ce0cba +MISC metadata.xml 528 BLAKE2B f7438b2b210f628a41f30efdeabf33b43bd0fd2317355597ae2256aa79528a033fdfc8bae51bc386cbad8eb590900c8088c3cfff9166b46e8eea2b75f010dfbc SHA512 b38a99ccdf799f89af9dae3c437f0f524148ad66e4ff263e03cf97e3329ed7e179721352ad52bcbbc21a72ea2d347e4d4d453ffc0f3687dca8c6c1814d90cb02 diff --git a/dev-util/lcov/lcov-1.16.ebuild b/dev-util/lcov/lcov-1.16.ebuild new file mode 100644 index 000000000000..aaf34d6df283 --- /dev/null +++ b/dev-util/lcov/lcov-1.16.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/linux-test-project/lcov.git" + inherit git-r3 +else + SRC_URI="https://github.com/linux-test-project/lcov/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux ~x64-macos" +fi + +inherit optfeature prefix + +DESCRIPTION="A graphical front-end for GCC's coverage testing tool gcov" +HOMEPAGE="https://github.com/linux-test-project/lcov" + +LICENSE="GPL-2+" +SLOT="0" + +RDEPEND=" + dev-lang/perl + dev-perl/JSON + dev-perl/PerlIO-gzip +" + +src_prepare() { + default + if use prefix; then + hprefixify bin/*.{pl,sh} + fi +} + +src_compile() { :; } + +src_test() { + emake -j1 check +} + +src_install() { + emake -j1 \ + PREFIX="${ED}/usr" \ + CFG_DIR="${ED}/etc" \ + LCOV_PERL_PATH="${EPREFIX}/usr/bin/perl" \ + install +} + +pkg_postinst() { + optfeature "png output support" dev-perl/GD[png] +} diff --git a/dev-util/lcov/lcov-2.0.ebuild b/dev-util/lcov/lcov-2.0.ebuild new file mode 100644 index 000000000000..18570df4f842 --- /dev/null +++ b/dev-util/lcov/lcov-2.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit optfeature prefix python-any-r1 + +DESCRIPTION="A graphical front-end for GCC's coverage testing tool gcov" +HOMEPAGE="https://github.com/linux-test-project/lcov" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/linux-test-project/lcov.git" + inherit git-r3 +else + SRC_URI="https://github.com/linux-test-project/lcov/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux ~x64-macos" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +# Python is used for spreadsheet.py +RDEPEND=" + dev-lang/perl + dev-perl/Capture-Tiny + dev-perl/DateTime + || ( + dev-perl/JSON-XS + dev-perl/Cpanel-JSON-XS + virtual/perl-JSON-PP + dev-perl/JSON + ) + dev-perl/PerlIO-gzip +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-perl/GD + $(python_gen_any_dep ' + dev-python/xlsxwriter[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + python_has_version "dev-python/xlsxwriter[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + default + if use prefix; then + hprefixify bin/*.{pl,sh} + fi +} + +src_compile() { :; } + +src_test() { + emake -j1 check +} + +src_install() { + emake -j1 \ + PREFIX="${ED}/usr" \ + CFG_DIR="${ED}/etc" \ + LCOV_PERL_PATH="${EPREFIX}/usr/bin/perl" \ + install +} + +pkg_postinst() { + optfeature_header "Optional outuput support:" + optfeature "png output support" dev-perl/GD[png] + optfeature "spreadsheet output support" dev-python/xlsxwriter + optfeature_header "Optional language support:" + optfeature "Python code coverage support" dev-python/coverage + optfeature "Perl code coverage support" dev-perl/Devel-Cover +} diff --git a/dev-util/lcov/lcov-9999.ebuild b/dev-util/lcov/lcov-9999.ebuild index ce1d928ca92f..18570df4f842 100644 --- a/dev-util/lcov/lcov-9999.ebuild +++ b/dev-util/lcov/lcov-9999.ebuild @@ -1,29 +1,57 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -if [[ ${PV} == "9999" ]] ; then +PYTHON_COMPAT=( python3_{10..12} ) +inherit optfeature prefix python-any-r1 + +DESCRIPTION="A graphical front-end for GCC's coverage testing tool gcov" +HOMEPAGE="https://github.com/linux-test-project/lcov" + +if [[ ${PV} == 9999 ]] ; then EGIT_REPO_URI="https://github.com/linux-test-project/lcov.git" inherit git-r3 else - SRC_URI="mirror://sourceforge/ltp/${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-linux ~x64-macos" + SRC_URI="https://github.com/linux-test-project/lcov/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux ~x64-macos" fi -inherit optfeature prefix - -DESCRIPTION="A graphical front-end for GCC's coverage testing tool gcov" -HOMEPAGE="http://ltp.sourceforge.net/coverage/lcov.php" - LICENSE="GPL-2+" SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" +# Python is used for spreadsheet.py RDEPEND=" dev-lang/perl - dev-perl/JSON + dev-perl/Capture-Tiny + dev-perl/DateTime + || ( + dev-perl/JSON-XS + dev-perl/Cpanel-JSON-XS + virtual/perl-JSON-PP + dev-perl/JSON + ) dev-perl/PerlIO-gzip " +BDEPEND=" + test? ( + ${RDEPEND} + dev-perl/GD + $(python_gen_any_dep ' + dev-python/xlsxwriter[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + python_has_version "dev-python/xlsxwriter[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} src_prepare() { default @@ -34,10 +62,23 @@ src_prepare() { src_compile() { :; } +src_test() { + emake -j1 check +} + src_install() { - emake -j1 PREFIX="${ED}/usr" CFG_DIR="${ED}/etc" install + emake -j1 \ + PREFIX="${ED}/usr" \ + CFG_DIR="${ED}/etc" \ + LCOV_PERL_PATH="${EPREFIX}/usr/bin/perl" \ + install } pkg_postinst() { + optfeature_header "Optional outuput support:" optfeature "png output support" dev-perl/GD[png] + optfeature "spreadsheet output support" dev-python/xlsxwriter + optfeature_header "Optional language support:" + optfeature "Python code coverage support" dev-python/coverage + optfeature "Perl code coverage support" dev-perl/Devel-Cover } diff --git a/dev-util/lcov/metadata.xml b/dev-util/lcov/metadata.xml index ce062d085035..015b0102db53 100644 --- a/dev-util/lcov/metadata.xml +++ b/dev-util/lcov/metadata.xml @@ -5,10 +5,6 @@ <email>jeffrey@icurse.nl</email> <name>Jeffrey Lin</name> </maintainer> - <maintainer type="person" proxied="yes"> - <email>marbacz@gmail.com</email> - <name>Marcin BaczyĆski</name> - </maintainer> <maintainer type="project" proxied="proxy"> <email>proxy-maint@gentoo.org</email> <name>Proxy Maintainers</name> |