# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs eutils DESCRIPTION="Watsup monitors Linux system resources and the processes using those resources." HOMEPAGE="http://kornelix.squarespace.com/watsup" SRC_URI="http://kornelix.squarespace.com/storage/watsup/watsup.08.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=">=x11-libs/gtk+-2.0.0" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} # Separate the build and install portions into arguments b and i epatch ${FILESDIR}/watsup-pbuild.patch } src_compile() { UCC=$(type -P $(tc-getCXX)) # Correct supplied build script to use proper flags and compiler sed -i'' "s/g++/${UCC//\//\\/} ${CXXFLAGS} /" watsup/pbuild sed -i'' "s/PREFIX=\/usr\/share\/\$APPNAME/PREFIX=${WORKDIR//\//\\/}/" \ watsup/pbuild pushd watsup sh pbuild b [ $? -ne 0 ] && die "Error building watsup." popd } src_install() { # Just install it by hand dobin watsup/watsup dodir usr/share/watsup dodir usr/share/watsup/icons insinto usr/share/watsup doins watsup/zfuncs.xtext doins watsup/watsup-guide.pdf insinto usr/share/watsup/icons doins watsup/icons/* }