# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/gmemusage/gmemusage-0.2.ebuild,v 1.0 2005/09/16 13:06:36 RiverRat Exp $ # I need to get md5s from the author. # I have personally audited this code for malicious crap and will # state that there is nothing obvious. RiverRat (small program) DESCRIPTION="gmemusage is based on the very useful SGI IRIX utility of the same name." HOMEPAGE="http://www.reptilelabour.com/software/gmemusage/index.htm" SRC_URI="http://www.reptilelabour.com/software/files/${PN}/${P}-082599.tgz" inherit eutils SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" DEPEND="${RDEPEND}" RDEPEND="media-libs/glut virtual/x11 virtual/opengl" IUSE="" src_unpack() { unpack ${A} cd "${S}" epatch ${FILESDIR}/${P}-gentoo.patch || die "patch failed" # custom cflags... # multi-lib fix... sed -i \ -e "s:^CFLAGS.*:CFLAGS = ${CFLAGS} -DLINUX:g" \ -e "s:^LIBS = -L/usr/X11R6/lib:LIBS = -L/usr/X11R6/$(get_libdir):g" \ Makefile || die "sed-ing failed" } src_compile() { emake || die "make failed" } src_install() { dobin gmemusage dodoc README }