Skip to content

Commit

Permalink
dev-util/lcov: resurrect last 1.x version for unported projects
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen L Arnold <nerdboy@gentoo.org>
  • Loading branch information
sarnold committed May 26, 2024
1 parent 583529f commit 3f622ab
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-util/lcov/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST lcov-1.16.tar.gz 196813 BLAKE2B 2a0a2d3ff6291eb3e9cc290006a3723451ab276891f9b63f8dcce82a305caa5558b5bb7bc72fa11620130824df4f9c4312edc23eb86f98eab4a8879e1212a3d5 SHA512 f9fdc5348a97e4262a22d1594df7847165c93447fd5d264d194029f86bf751f18bf91badaf0172d406bca98e4bb3997f133a3ca144105f5acfabeec82f369a37
52 changes: 52 additions & 0 deletions dev-util/lcov/lcov-1.16-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 \
DESTDIR="${D}" \
CFG_DIR="${EPREFIX}/etc" \
PREFIX="${EPREFIX}/usr" \
LCOV_PERL_PATH="${EPREFIX}/usr/bin/perl" \
install
}

pkg_postinst() {
optfeature "png output support" dev-perl/GD[png]
}
39 changes: 39 additions & 0 deletions dev-util/lcov/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE catmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<catmetadata>
<longdescription lang="en">
The dev-util category contains various miscellaneous development
utilities.
</longdescription>
<longdescription lang="de">
Die Kategorie dev-util enthält verschiedene Programmierwerkzeuge.
</longdescription>
<longdescription lang="es">
La categoría dev-util contiene varias utilidades de desarrollo mixtas.
</longdescription>
<longdescription lang="ja">
dev-util カテゴリーには多種多様な開発ユーティリティが含まれます。
</longdescription>
<longdescription lang="nl">
De dev-util categorie bevat verschillende hulpmiddelen voor gebruik
bij het programmeren.
</longdescription>
<longdescription lang="vi">
Nhóm dev-util chứa các tiện ích phát triển khác nhau.
</longdescription>
<longdescription lang="it">
La categoria dev-util contiene varie utilità di sviluppo software.
</longdescription>
<longdescription lang="pt">
A categoria dev-util contém vários utilitários de
desenvolvimento mistos.
</longdescription>
<longdescription lang="pl">
Kategoria dev-util zawiera różne dodatkowe narzędzia związane z
rozwijaniem programów.
</longdescription>
<longdescription lang="ru">
Категория dev-util содержит различные утилиты для разработки,
не попадающие в другие категории.
</longdescription>
</catmetadata>

0 comments on commit 3f622ab

Please sign in to comment.