# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kde MY_P="kdebase3-SuSE-10.1-58.src" S="${WORKDIR}/kdebase-SuSE" DESCRIPTION="kio slave to display system infomation in konqueror" HOMEPAGE="http://www.opensuse.org/icecream" SRC_URI="http://suse.mirrors.tds.net/pub/opensuse/distribution/SL-10.1/inst-source/suse/src/${MY_P}.rpm" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" DEPEND="virtual/libc || ( kde-base/kdebase-kioslaves kde-base/kdebase ) app-arch/rpm2targz" IUSE="" src_unpack(){ cd ${WORKDIR} rpm2targz ${DISTDIR}/${MY_P}.rpm tar -xzf ${WORKDIR}/${MY_P}.tar.gz || die "error unpacking kio-sysinfo" tar -xjf ${WORKDIR}/kdebase-SuSE-10.1.tar.bz2 || die "error unpacking kio-sysinfo" } src_compile() { sed -i -e "s/\$(TOPSUBDIRS)/sysinfo/" Makefile.am sed -i -e "s/SuSE/gentoo/" sysinfo/sysinfo.cpp kde_src_compile 'all' || die "error compiling" }