HOWTO: gtk-engines-kde4
From Sabayon Wiki
First I used equo to take care of the dependencies
equo install dev-util/pkgconfig dev-libs/xmlrpc-c dev-util/cmake x11-misc/util-macros x11-proto/xf86vidmodeproto
than for 3rd party ebuilds you need to make some changes first
edit the /etc/make.conf file and make sure you have the line
PORTDIR_OVERLAY="/usr/local/portage"
than we need to make our local overlay
mkdir -p /usr/local/portage/x11-themes/gtk-engines-kde4
than we change to that directory
cd /usr/local/portage/x11-themes/gtk-engines-kde4
than we make the ebuild
nano gtk-engines-kde4-0.8.ebuild
copy and paste the following contents for ebuild - make sure you get it all - use Ctrl x to save and close
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
NEED_KDE=4.2
inherit qt4 kde4-base
DESCRIPTION="GTK+2 Qt4 Theme Engine"
MY_PN="gtk-kde4"
HOMEPAGE="http://kde-apps.org/content/show.php/gtk-kde4?content=74689"
#SRC_URI="http://betta.h.com.ua/no-site/${MY_PN}v${PV}.tar.gz"
SRC_URI="http://kde-apps.org/CONTENT/content-files/74689-gtk-kde4v0.8.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="|| (
>=x11-libs/qt-4.4.1:4
( >=x11-libs/qt-core-4.4.1:4 >=x11-libs/qt-gui-4.4.1:4 )
)
>=kde-base/kdelibs-4.2.0:${SLOT}
x11-libs/gtk+:2"
RDEPEND="${DEPEND}"
SLOT="0"
S=${WORKDIR}/${MY_PN}
src_compile() {
cmake . || die "cmake failed"
emake || die "emake failed"
}
pkg_postinst() {
elog "If you want additional themes just download"
elog "http://betta.h.com.ua/no-site/qt4.tar.gz"
elog "and put into ~/.themes/"
}
than download the file to your home directory
http://kde-apps.org/CONTENT/content-files/74689-gtk-kde4v0.8.tar.gz
now we move it to where we need it
cp /home/yourusernamegoeshere/74689-gtk-kde4v0.8.tar.gz /usr/portage/distfiles/
example
cp /home/wolfden/downloads/74689-gtk-kde4v0.8.tar.gz /usr/portage/distfiles/
now we can digest our ebuild and it will be able to install - you should still be in the /usr/local/portage/x11-themes/gtk-engines-kde4/ directory since we didn't move so you can do
ebuild gtk-engines-kde4-0.8.ebuild digest
now install it
emerge gtk-engines-kde4