# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit autotools eutils DESCRIPTION="The Hoard Memory Allocator" HOMEPAGE="http://www.cs.umass.edu/~emery/hoard/index.html" UNDERSCOREVER=`echo ${PV}|sed s/\\\./_/g` BAREVER=`echo ${PV}|sed s/\\\.//g` SRC_URI="http://www.cs.umass.edu/~emery/hoard/${P}/heaplayers_${UNDERSCOREVER}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="" DEPEND="" src_unpack() { unpack ${A} epatch "${FILESDIR}"/${P}-amd64-compile.patch } src_compile() { cd ${WORKDIR}/heaplayers-${BAREVER}/allocators/hoard ./compile || die "compile failed." } src_install() { dolib.so ${WORKDIR}/heaplayers-${BAREVER}/allocators/hoard/libhoard.so cd ${WORKDIR}/heaplayers-${BAREVER} dodoc NEWS README AUTHORS COPYING VERSION }