]> git.draconx.ca Git - gentoo-fixes.git/commitdiff
dev-util/lcov: Fix prefix installation.
authorNick Bowler <nbowler@draconx.ca>
Sat, 12 Dec 2020 22:09:00 +0000 (17:09 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 12 Dec 2020 22:09:00 +0000 (17:09 -0500)
dev-util/lcov/Manifest [new file with mode: 0644]
dev-util/lcov/lcov-1.15.ebuild [new file with mode: 0644]

diff --git a/dev-util/lcov/Manifest b/dev-util/lcov/Manifest
new file mode 100644 (file)
index 0000000..e7926a1
--- /dev/null
@@ -0,0 +1,2 @@
+DIST lcov-1.15.tar.gz 190487 BLAKE2B 2d6478caae488b84c74a3f7b489013b065b3e8fb106a6e8c5f413ffe87be7f4530aade8d2b5df5b8193949d60f49d5255b4eddb0cd5f1cab6f450ba2f97426ab SHA512 dda0eadbd0ea2093f17cba039309ccda3dbcb7266d083b46bda61e02cd7f049d66de49be1e005157c3e5af910d2703ffbc9cfe7f1242bd67b9787f8508e4d052
+EBUILD lcov-1.15.ebuild 1389 BLAKE2B 456d27b00abfe7b6d89e74b6ceebd665c63ba4ee7bb26ba4a95ddd1cc23bc6f25029b111c5dd11106eccbd8c03989144535192a0e28d49ac05fe5eaa7850c801 SHA512 615a1b34cd563f9e3b0769bb4c099969469b6f5228a4ee57a7037c090c69407456f4ff9ed6dab183593f8cdfc9f2e4b5b938679c374de4674a9aecf63a01ea29
diff --git a/dev-util/lcov/lcov-1.15.ebuild b/dev-util/lcov/lcov-1.15.ebuild
new file mode 100644 (file)
index 0000000..391a710
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright © 2020 Nick Bowler
+#
+# License GPLv2+: GNU General Public License version 2 or any later version.
+# This is free software: you are free to change and redistribute it.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# This is a modified version of the original ebuild from Gentoo GNU/Linux,
+# covered by the following copyright and permission notice:
+#
+#   Copyright 1999-2020 Gentoo Authors
+#   Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~m68k ~mips ~ppc ~ppc64 ~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"
+
+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_install() {
+       emake -j1 PREFIX="${ED}/usr" CFG_DIR="${ED}/etc" \
+               LCOV_PERL_PATH="${EPREFIX%/}/usr/bin/perl" install
+}
+
+pkg_postinst() {
+       elog "Optional features:"
+       optfeature "png output support" dev-perl/GD[png]
+}