blob: 15a4f2565efb182d061c37a65d15291d3d00adde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 1999-2009 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.61.4.ebuild,v 1.2 2009/03/02 22:56:49 yngwin Exp $
EAPI="2"
NEED_KDE="none"
inherit flag-o-matic cmake-utils kde4-base
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"
# NOTE: alpha and sparc dropped due to kde4-base dep on qt-webkit
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
IUSE="kde"
DEPEND="x11-libs/qt-gui:4[dbus]
kde? ( >=kde-base/kwin-4.1.0 )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
DOCS="ChangeLog README TODO"
src_prepare() {
if has_version '>=x11-libs/qt-gui-4.5.0_rc1'; then
sed -i "s/QStyleOptionTabV2/QStyleOptionTabV3/" "${S}"/style/qtcurve.cpp
fi
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
}
|