summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick H <gerkola@gmail.com>2019-08-22 08:47:05 +0300
committerZac Medico <zmedico@gentoo.org>2019-11-26 17:12:33 -0800
commit089acd4f622ce6a71cd4c8bcf438987a74d53ef4 (patch)
tree4f10e4b7ad937c46a672f18c9b610e42c94f9694 /dev-util
parentdev-libs/libfmt: cleanup old versions (diff)
downloadgentoo-089acd4f622ce6a71cd4c8bcf438987a74d53ef4.tar.gz
gentoo-089acd4f622ce6a71cd4c8bcf438987a74d53ef4.tar.bz2
gentoo-089acd4f622ce6a71cd4c8bcf438987a74d53ef4.zip
dev-util/lcov: use debian patches for 1.14_p2
This adds upstream patches (packaged by debian) needed for gcc-9 support to 1.14 since upstream does not plan on making new releases soon[1] and other distros seem to have included relevant changes in their 1.14 packages[2][3]. Closes: https://github.com/gentoo/gentoo/pull/12760 Signed-off-by: Nick Herman <gerkola@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/lcov/Manifest1
-rw-r--r--dev-util/lcov/lcov-1.14_p2.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-util/lcov/Manifest b/dev-util/lcov/Manifest
index dfcfd8d9e058..3b7c06de814d 100644
--- a/dev-util/lcov/Manifest
+++ b/dev-util/lcov/Manifest
@@ -1,2 +1,3 @@
DIST lcov-1.13.tar.gz 156709 BLAKE2B d0f2635a6e6c29d29bd15d15c7f6c22ff80052b12deb4e88c77a9331d6d151aa2718ad4e4af1aa192757c1fc3189cc0d1688fc5086e5552c74078206cf27e1df SHA512 54033c0f99dbf7b332fcd70730df8672713ffc36c010809353dfd83a73fcc4f504b6a68e3b5010002d6992da5fa940a7d5f4e03dc3fe6930ab713a7b980dff9e
DIST lcov-1.14.tar.gz 177359 BLAKE2B 17069d38bf607217b8ff59f573fc02badf56afe65965d2a359a14835af57e2b6c512bff06fac3dbf4e94cd35701216edb8026d333b2baa8772d0ef551de37af1 SHA512 2d60c3a63e300dda96171c432fe304840acc76bf6275f60934d08e80765f9f85671e8b77bfed758fc45842a80156586dc0d67c42c9f215f4f163840fc5cf65bc
+DIST lcov_1.14-2.debian.tar.xz 25740 BLAKE2B ca1a84ed98e0cdd13aae88f0f550cac84f00b3dbf6bd764abe0c7eee7b73c0796abbf20e76cb51707d0d644bb17ee7ad283abbfaa7456dc2a3ade5e12cfbaabc SHA512 10fdb1f82be8cc9aef3b92aa7ca18f2736e5130d8b6ef9703b9444cb88f75f475e8bc48c441ed5cf7e4d11f383c226fc711e8609ea11772b01f454bb6a5bd45a
diff --git a/dev-util/lcov/lcov-1.14_p2.ebuild b/dev-util/lcov/lcov-1.14_p2.ebuild
new file mode 100644
index 000000000000..41677b6255db
--- /dev/null
+++ b/dev-util/lcov/lcov-1.14_p2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LCOV_V=${PV/_p*/}
+DB_V=${PV/*_p/}
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/linux-test-project/lcov.git"
+ inherit git-r3
+else
+ SRC_URI="
+ mirror://sourceforge/ltp/${PN}-${LCOV_V}.tar.gz
+ mirror://debian/pool/main/l/${PN}/${PN}_${LCOV_V}-${DB_V}.debian.tar.xz
+ "
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-linux ~x64-macos"
+fi
+
+inherit 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="png"
+
+RDEPEND="
+ dev-lang/perl
+ dev-perl/JSON
+ dev-perl/PerlIO-gzip
+ png? ( dev-perl/GD[png] )
+"
+
+PATCHES=(
+ "${WORKDIR}/debian/patches/handle-equals-signs.patch"
+ "${WORKDIR}/debian/patches/fix-undef-behaviour.patch"
+ "${WORKDIR}/debian/patches/reproducibility.patch"
+ "${WORKDIR}/debian/patches/gcc8.patch"
+ "${WORKDIR}/debian/patches/gcc-9-support.patch"
+)
+
+S=${WORKDIR}/${PN}-${LCOV_V}
+
+src_prepare() {
+ default
+ if use prefix; then
+ hprefixify bin/*.{pl,sh}
+ fi
+
+ # Broken by https://github.com/linux-test-project/lcov/commit/75fbae1cfc5027f818a0bb865bf6f96fab3202da
+ rm -rf test/lcov_diff || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ emake PREFIX="${ED}/usr" CFG_DIR="${ED}/etc" install
+}