blob: 089e091b264d51652c1201c457e17b00e7cb82f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dmalloc/dmalloc-5.4.2.ebuild,v 1.11 2007/01/04 22:39:11 flameeyes Exp $
inherit eutils
DESCRIPTION="A Debug Malloc Library"
HOMEPAGE="http://dmalloc.com/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha ~amd64 ia64 ppc ppc64 sparc x86"
IUSE=""
DEPEND="virtual/libc"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-5.3.0-fpic.patch
epatch ${FILESDIR}/${P}-respect-DESTDIR.diff
epatch ${FILESDIR}/${P}-sandbox.patch
}
src_compile() {
econf --enable-threads --enable-shlib || die "configure failed"
emake -j1 || die "emake failed"
}
src_test() {
einfo "Running tests"
make heavy || die "make check tests failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
newdoc ChangeLog.1 ChangeLog
dodoc INSTALL NEWS README docs/NOTES docs/TODO
dohtml RELEASE.html docs/dmalloc.html
doinfo docs/dmalloc.info
}
|