# Copyright 1999-2005 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils kde-functions DESCRIPTION="A set of widget styles for KDE, GTK1, and GTK2 based apps." HOMEPAGE="http://www.kde-look.org/content/show.php?content=5065" SRC_URI="http://www.cpdrummond.freeuk.com/QtCurve-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="arts gtk gtk2" RESTRICT="nomirror" # Needed to build... DEPEND="sys-devel/autoconf sys-devel/automake >=x11-libs/qt-3.3 >=kde-base/kdelibs-3.2.0 arts? ( kde-base/arts ) gtk2? ( >=x11-libs/gtk+-2.0 ) gtk? ( >=x11-libs/gtk+-1.2.9 )" # Because one may only want to use the theme with kde OR gtk # we don't want any run-time dependencies... RDEPEND="" S="${WORKDIR}/QtCurve-${PV}" src_compile() { cd ${S} set-qtdir 3 econf --with-qt-dir=${QTDIR} $(use_with arts) \ || die "could not configure" MYSUBDIRS="kde" use gtk && MYSUBDIRS="${MYSUBDIRS} gtk" use gtk2 && MYSUBDIRS="${MYSUBDIRS} gtk2" sed -si "s:^TOPSUBDIRS.*$:TOPSUBDIRS = ${MYSUBDIRS}:" Makefile emake || die "make failed" } src_install () { cd ${S} make DESTDIR=${D} install dodoc ChangeLog README TODO }