From 62aae90aa26c8081e4aefd523b7a565450f919bd Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sat, 12 Dec 2020 17:09:00 -0500 Subject: [PATCH] dev-util/lcov: Fix prefix installation. --- dev-util/lcov/Manifest | 2 ++ dev-util/lcov/lcov-1.15.ebuild | 54 ++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 dev-util/lcov/Manifest create mode 100644 dev-util/lcov/lcov-1.15.ebuild diff --git a/dev-util/lcov/Manifest b/dev-util/lcov/Manifest new file mode 100644 index 0000000..e7926a1 --- /dev/null +++ b/dev-util/lcov/Manifest @@ -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 index 0000000..391a710 --- /dev/null +++ b/dev-util/lcov/lcov-1.15.ebuild @@ -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] +} -- 2.43.0