Moderator: Moderators
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Ebuild from Gentoo Bugzilla Bug Report No. 139837 but
# modified on 3 December 2008 by Fitzcarraldo to get it
# to build in SL 3.5, and also to change the background from the
# standard SuSE background to a Gentoo background from
# the Gentoo Bugzilla Bug Report No. 139837.
inherit kde
MY_P="kdebase3-SuSE-10.2-84.src"
S="kdebase3-SuSE-10.2-84"
DESCRIPTION="kio slave to display system infomation in konqueror"
HOMEPAGE="http://www.opensuse.org"
SRC_URI="http://suse.mirrors.tds.net/pub/opensuse/distribution/10.2/repo/src-oss/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
>=sys-apps/hwinfo-13.0"
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.2.tar.bz2 || die "error unpacking kio-sysinfo"
cd kdebase-SuSE
}
src_compile() {
cd kdebase-SuSE
S="${WORKDIR}/kdebase-SuSE"
sed -i -e "s/\$(TOPSUBDIRS)/sysinfo/" Makefile.am
sed -i -e "s/SuSE/gentoo/" sysinfo/sysinfo.cpp
kde_src_compile 'all' || die "error compiling"
}
pkg_postinst() {
wget http://bugs.gentoo.org/attachment.cgi?id=125447 --output-document=background.png
gzip background.png
gzip -d background.png.gz
cp /usr/share/apps/sysinfo/about/images/background.png /usr/share/apps/sysinfo/about/images/background.png.bak
mv background.png /usr/share/apps/sysinfo/about/images/background.png
}
PORTDIR_OVERLAY=/usr/local/portageebuild /usr/local/portage/kde-misc/kio-sysinfo/kio-sysinfo-3.5.5.ebuild digestemerge -C sysinfo
FEATURES="-collision-protect" emerge kio-sysinfosource /usr/portage/local/layman/make.conf#-----------------------------------------------------------
# Defines the directory where overlays should be installed
storage : /usr/local/portage/layman
#-----------------------------------------------------------$ cd ~/Desktop
$ su
Password:
# cp SYSINFOV2.3 /bin/sysinfo
# chmod +x /bin/sysinfo
# sysinfo --help
ebuild /usr/local/portage/kde-misc/kio-sysinfo/kio-sysinfo-3.5.5.ebuild digestUsers browsing this forum: No registered users and 1 guest