diff options
author | Jeroen Roovers <jer@gentoo.org> | 2009-09-01 17:35:14 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2009-09-01 17:35:14 +0000 |
commit | 77cb27019a1d3e6d20bce211e6f029759919ee1b (patch) | |
tree | 3a1ca6e27af00b139a29aa23c9583a43d20de200 /dev-util/ccmalloc/ccmalloc-0.4.0-r2.ebuild | |
parent | Version bump (diff) | |
download | gentoo-2-77cb27019a1d3e6d20bce211e6f029759919ee1b.tar.gz gentoo-2-77cb27019a1d3e6d20bce211e6f029759919ee1b.tar.bz2 gentoo-2-77cb27019a1d3e6d20bce211e6f029759919ee1b.zip |
Respect CC (bug #243978).
(Portage version: 2.2_rc40/cvs/Linux i686)
Diffstat (limited to 'dev-util/ccmalloc/ccmalloc-0.4.0-r2.ebuild')
-rw-r--r-- | dev-util/ccmalloc/ccmalloc-0.4.0-r2.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-util/ccmalloc/ccmalloc-0.4.0-r2.ebuild b/dev-util/ccmalloc/ccmalloc-0.4.0-r2.ebuild new file mode 100644 index 000000000000..4d22bd10567b --- /dev/null +++ b/dev-util/ccmalloc/ccmalloc-0.4.0-r2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2009 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-r2.ebuild,v 1.1 2009/09/01 17:35:14 jer Exp $ + +inherit toolchain-funcs + +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() { + tc-export CC + 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" +} |