summaryrefslogtreecommitdiff
blob: 0e15fbd003ebe92cffdeb7b125dba24294a980c1 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/ccmalloc/ccmalloc-0.4.0.ebuild,v 1.1 2004/11/10 08:42:06 dholm Exp $

inherit eutils

DESCRIPTION="A easy-to-use memory debugging library"
HOMEPAGE="http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/"
SRC_URI="http://www.inf.ethz.ch/personal/biere/projects/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE="debug"
DEPEND="sys-devel/gcc sys-apps/sed"
RDEPEND="virtual/libc"

src_compile() {
	local myconf
	use debug && ${myconf} = "${myconf} --debug"
	./configure --prefix=/usr ${myconf} || die "configure failed"
	emake || die "emake failed"
}

src_install() {
	einstall PREFIX=${D}/usr || die "einstall failed"
	dodoc BUGS FEATURES NEWS README TODO USAGE VERSION
}