# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit eutils DESCRIPTION="Multi Platform RAM Defragmentation" HOMEPAGE="http://ramdefrag.sourceforge.net/" SRC_URI="mirror://sourceforge/ramdefrag/${PN}_${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="nls" DEPEND="virtual/libc >=x11-libs/gtk+-2.0 nls? ( sys-devel/gettext )" S="${WORKDIR}/${PN}" src_compile() { myconf=$(use_enable nls) econf $myconf || die "configure failed" emake || die "emake failed" } src_install() { dobin "src/${PN}" || die "dobin failed" dodoc AUTHORS COPYING ChangeLog ChangeLog.OLD NEWS THANKS TODO \ || die "dodoc failed" mv "pixmaps/icon-32x32.xpm" "${PN}.xpm" doicon "${PN}.xpm" || die "doicon failed" make_desktop_entry "${PN}" "Ram Defrag" "${PN}.xpm" System prepall }