36 lines
1 KiB
Bash
36 lines
1 KiB
Bash
# Copyright 1999-2008 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-r1.ebuild,v 1.1 2008/10/20 14:20:39 hawking Exp $
|
|
|
|
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="~amd64 ~ppc ~x86"
|
|
IUSE="debug"
|
|
DEPEND=""
|
|
RDEPEND=""
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
cd "${S}"
|
|
|
|
# Respect CFLAGS #240274
|
|
sed -i \
|
|
-e "s/CFLAGS=/CFLAGS+=/" \
|
|
Makefile.in || die "sed in Makefile.in failed"
|
|
}
|
|
|
|
src_compile() {
|
|
local myconf
|
|
use debug && myconf="${myconf} --debug"
|
|
# Not a standard configure script.
|
|
./configure --prefix=/usr ${myconf} || die "configure failed"
|
|
emake || die "emake failed"
|
|
}
|
|
|
|
src_install() {
|
|
emake PREFIX="${D}"/usr install || die "emake install failed"
|
|
dodoc BUGS FEATURES NEWS README TODO USAGE VERSION || die "dodoc failed"
|
|
}
|