summaryrefslogtreecommitdiff
path: root/dev-util/leaktracer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/leaktracer
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/leaktracer')
-rw-r--r--dev-util/leaktracer/Manifest5
-rw-r--r--dev-util/leaktracer/leaktracer-2.4-r3.ebuild55
-rw-r--r--dev-util/leaktracer/metadata.xml8
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-util/leaktracer/Manifest b/dev-util/leaktracer/Manifest
new file mode 100644
index 000000000000..2aaff4fcab48
--- /dev/null
+++ b/dev-util/leaktracer/Manifest
@@ -0,0 +1,5 @@
+DIST leaktracer-2.4-gentoo_p2.tbz2 11957 SHA256 21ed81f47654ae03211c1ee0655bf0f1d5cdbe433fbe3424d0b4738506deced8 SHA512 12f348564933c8cf372208f846bb21b175f041e7687811e9c6ce8062e7f285b9d2395e7853a20df11d9b0d5b8fff89efc76ccbac9f8b7c0bc4fd4ea25d476718 WHIRLPOOL 16cf715ad6d5690040d59c913ba9360249842de587ad57fa2e4182614fba10ffdf5850cf9d80f09a692f3064ed7f3af59f80e0aa3ba73ee219855d34af60abcb
+EBUILD leaktracer-2.4-r3.ebuild 1386 SHA256 962b0fd023cc72e861f62ab1a55b1177337eaeb176038239518c50a26a5c466d SHA512 63bd2edad6fbdd6c710c0bac526b386a787c72aec151f6470ea11081f807c771d4bd797c3ecfcf71493380e35893a9bb279f6d13473a9a02fc1d6a54889df992 WHIRLPOOL 47cc0eb0d20892a434836d87246638475b1386fafa0023e242e49ec6acac3e9b9796657388e2287d13438c387289c0ac7f846f83983c7cde0e3bb83931197fa7
+MISC ChangeLog 2973 SHA256 c1da9057d2c1036ae884449ca3b0e04590890e510fd9cdfebc6e7b9bd42afd72 SHA512 92199f70e8a7aca51256ba87eb14dd7a92b065f5d590aa4c14908ca5eba85e2e2b303f3e48fc4a7636211bb9c5a533af264198ebdbc07da1a81493e7df0f6429 WHIRLPOOL cd8307fc8da547a9e07624ff5e9dc0f74446848b641af3801459fa9e991608aa3727717732dfbecb04a02e835b97626c475e5967e52a0fa01649f4da7da182f0
+MISC ChangeLog-2015 2331 SHA256 0610f1ccaf2de109a29c36a574dbabe4d936a29aeeb371498c85c7f61877f50b SHA512 e95b3292ed33786f69746507fa71c6ea3852b0dc5f45164433e9d1eb1c006d2dc3b253b6bfcec30b0b1c9f721a5386fd9e03e78060bbc98080d70358249223f1 WHIRLPOOL f39a41c202ad03d167426ec172aae18568976bbcae8b243fd93bc6a377f589d1a63c027936629af6d01bc5dc849728c8eb2760e0e9407648421522eb920ba156
+MISC metadata.xml 245 SHA256 2d55ae4b33723b881e2cd48221560da36aec5b304b8bf2b440a9e2588875dba9 SHA512 b098db4fb4d9ea116f6246bc6caf0f49e80e236d2fad78d287b638dbd5add7bfaf7feb1ca081ca557b23dde9227ce42fa808f3f6fd8eaba6a7e9cae93342f9c6 WHIRLPOOL edd2e34ed3775c96bf085c9c0a95bd448028cb5ba6a2bfa7d7253b54878c888b62fa579483265c47c2602ca454fd656d32346eaa7351067cc3a36295d1e1e861
diff --git a/dev-util/leaktracer/leaktracer-2.4-r3.ebuild b/dev-util/leaktracer/leaktracer-2.4-r3.ebuild
new file mode 100644
index 000000000000..9312217fb988
--- /dev/null
+++ b/dev-util/leaktracer/leaktracer-2.4-r3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+# Upstream-package has no version in it's name.
+# We therefore repackage it directly, together with the patches.
+PATCH_LEVEL="2"
+
+DESCRIPTION="trace and analyze memory leaks in C++ programs"
+HOMEPAGE="http://www.andreasen.org/LeakTracer/"
+SRC_URI="mirror://gentoo/${P}-gentoo_p${PATCH_LEVEL}.tbz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="dev-lang/perl
+ sys-devel/gdb"
+RDEPEND="${DEPEND}"
+
+# leaktracer is being realized using LD_PRELOAD and segfaults
+# when being run in the sandbox and the library is _not_ in
+# /usr/$(get_libdir) which is not possible before installation
+RESTRICT="test"
+
+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)
+}
+
+src_install() {
+ 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 refer to README file for more info."
+}
diff --git a/dev-util/leaktracer/metadata.xml b/dev-util/leaktracer/metadata.xml
new file mode 100644
index 000000000000..41cd682e0ecf
--- /dev/null
+++ b/dev-util/leaktracer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cpp@gentoo.org</email>
+ <name>Gentoo C++ Project</name>
+</maintainer>
+</pkgmetadata>