# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Graphical System Load Monitor -- Some may find offensive" HOMEPAGE="http://dindinx.net/hotbabe/" SRC_URI="http://dindinx.net/hotbabe/downloads/${P}.tar.bz2" LICENSE="Artistic" SLOT="0" KEYWORDS="~x86" IUSE="offensive" DEPEND=">=x11-libs/gtk+-2" src_compile() { if ! use offensive ; then die "This package may be offensive for some users. To install set USE=offsnsive." fi #sed trick taken from Paul's ebuild on the HB website #but modified to exclude ${CFLAGS} which is already set by ebuild #remove hard coded CFLAGS sed -ie "s:-O2 -Wall -g::" Makefile || die "sed failed" make PREFIX=/usr || die "Error making ${P}." } src_install() { #avoid using make install. DO everything one by one. #install binary exeinto /usr/bin doexe hot-babe #install images insinto /usr/share/${PN}/hb01 doins hb01/* #pixmap file insinto /usr/share/pixmaps doins hot-babe.xpm #documentation dodoc ChangeLog NEWS TODO LICENSE CONTRIBUTORS copyright config.example #man page doman ${PN}.1 } pkg_postinst() { einfo "${PN} has been installed. Enjoy! :)" }