# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-themes/qtcurve-qt4/qtcurve-qt4-0.60.0.ebuild,v 1.2 2008/12/30 12:58:34 yngwin Exp $ EAPI="2" inherit flag-o-matic cmake-utils MY_P="${P/qtcurve-qt4/QtCurve-KDE4}" DESCRIPTION="A set of widget styles for Qt4 based apps, also available for KDE3 and GTK2" HOMEPAGE="http://www.kde-look.org/content/show.php?content=40492" SRC_URI="http://home.freeuk.com/cpdrummond/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" IUSE="kde" DEPEND="|| ( x11-libs/qt-gui:4[dbus] =kde-base/kwin-4.1.0 x11-libs/qt-gui:4[dbus] ) ) x86? ( kde? ( >=kde-base/kwin-4.1.0 x11-libs/qt-gui:4[dbus] ) )" # kde-4 support needs methods from qt-gui-4.4 S="${WORKDIR}/${MY_P}" DOCS="ChangeLog README TODO" src_compile() { if use !kde ; then append-cppflags "-DQTC_NO_KDE4_LINKING=true -DQTC_DISABLE_KDEFILEDIALOG_CALLS=true"; sed -i "s/find_package(KDE4)/#&/" "${S}"/CMakeLists.txt fi cmake-utils_src_compile }