# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/kde-misc/kload/kload-0.9.4.ebuild,v 1.3 2006/09/29 13:29:24 deathwing00 Exp $ inherit eutils DESCRIPTION="A performance monitoring program for KDE/Linux" HOMEPAGE="http://www.richard-schneider.de/uwe/kde/" SRC_URI="http://www.richard-schneider.de/uwe/kde/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="minimal" DEPEND="!minimal? ( >=kde-base/kdelibs-3 )" RDEPEND="${DEPEND}" src_compile() { local TARGET="\$(SERVER)" use minimal || TARGET="${TARGET} \$(CLIENT)" emake \ QTDIR="${QTDIR}" \ TARGET="${TARGET}" \ KDEDIR="$(kde-config --prefix)" \ CXXFLAGS="${CXXFLAGS} \$(KDEDEF) \$(QTDEF)" \ CFLAGS="${CFLAGS}" || die "emake failed" } src_install() { dosbin kloadd newinitd "${FILESDIR}/kloadd.initd" kloadd newconfd "${FILESDIR}/kloadd.confd" kloadd if ! use minimal; then dobin kload make_desktop_entry kload "Performace Monitor" ksysguard.png fi dodoc ChangeLog README }