# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header:$ inherit eutils 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" IUSE="kde gtk gtk2" # Needed to build... DEPEND="sys-devel/autoconf sys-devel/automake gtk2? ( >=x11-libs/gtk+-2.0 ) gtk? ( =x11-libs/gtk+-1.2* ) kde? ( >=x11-libs/qt-3.3 >=kde-base/kdelibs-3.2.0 )" # 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() { # don't work if LANG has UTF-8 export LANG=C make -f admin/Makefile.common ./configure || die cp Makefile Makefile.orig MYSUBDIRS="" use kde && MYSUBDIRS="$MYSUBDIRS kde" use gtk && MYSUBDIRS="$MYSUBDIRS gtk" use gtk2 && MYSUBDIRS="$MYSUBDIRS gtk2" sed -e "s/^TOPSUBDIRS.*$/TOPSUBDIRS = $MYSUBDIRS/" Makefile.orig > Makefile make || die } src_install () { make DESTDIR=${D} install cd ${S} dodoc ChangeLog README TODO }