diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2016-11-07 18:20:31 +0300 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2016-11-07 18:20:31 +0300 |
commit | c4f90c203ce68746ae49c71df7ea65dcf6229a1a (patch) | |
tree | 717d274ab2c0debe69743ecc90bc4e41c3a0334d /dev-util/leaktracer | |
parent | dev-util/leaktracer: remove unused patch (diff) | |
download | gentoo-c4f90c203ce68746ae49c71df7ea65dcf6229a1a.tar.gz gentoo-c4f90c203ce68746ae49c71df7ea65dcf6229a1a.tar.bz2 gentoo-c4f90c203ce68746ae49c71df7ea65dcf6229a1a.zip |
dev-util/leaktracer: new revision
Bump EAPI to 6, support user patches. Drop old revision
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-util/leaktracer')
-rw-r--r-- | dev-util/leaktracer/leaktracer-2.4-r3.ebuild (renamed from dev-util/leaktracer/leaktracer-2.4-r2.ebuild) | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/dev-util/leaktracer/leaktracer-2.4-r2.ebuild b/dev-util/leaktracer/leaktracer-2.4-r3.ebuild index 9bb9e04c037f..80959639ca65 100644 --- a/dev-util/leaktracer/leaktracer-2.4-r2.ebuild +++ b/dev-util/leaktracer/leaktracer-2.4-r3.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ +EAPI=6 inherit eutils multilib toolchain-funcs # Upstream-package has no version in it's name. @@ -15,9 +16,8 @@ SRC_URI="mirror://gentoo/${P}-gentoo_p${PATCH_LEVEL}.tbz2" LICENSE="public-domain" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" -DEPEND=">=dev-lang/perl-5 +DEPEND="dev-lang/perl sys-devel/gdb" RDEPEND="${DEPEND}" @@ -26,31 +26,31 @@ RDEPEND="${DEPEND}" # /usr/$(get_libdir) which is not possible before installation RESTRICT="test" -src_unpack() { - unpack ${A} - cd "${S}" - - EPATCH_SOURCE="${WORKDIR}/patches" - EPATCH_SUFFIX="patch" - epatch +src_prepare() { + eapply -p1 "${WORKDIR}/patches/01_all_gcc-cflags.patch" + eapply -p0 "${WORKDIR}/patches/05_all_libdir.patch" + eapply -p1 "${WORKDIR}/patches/15_all_printf.patch" sed -i \ -e "s|%LIBDIR%|$(get_libdir)|" \ LeakCheck || die "sed for setting lib path failed" + + eapply_user } src_compile() { - emake CXX=$(tc-getCXX) || die "emake failed" + emake CXX=$(tc-getCXX) } src_install() { - dobin LeakCheck leak-analyze || die "dobin failed" - dolib.so LeakTracer.so || die "dolib.so failed" - dohtml README.html + dobin LeakCheck leak-analyze + dolib.so LeakTracer.so dodoc README test.cc + docinto html + dodoc README.html } pkg_postinst() { elog "To use LeakTracer, run LeakCheck my_prog and then leak-analyze my_prog leak.out" - elog "Please reffer to README file for more info." + elog "Please refer to README file for more info." } |