/[gentoo-x86]/x11-themes/qtcurve-qt4/qtcurve-qt4-1.5.0.ebuild
Gentoo

Contents of /x11-themes/qtcurve-qt4/qtcurve-qt4-1.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Jun 29 15:50:40 2010 UTC (3 years, 9 months ago) by wired
Branch: MAIN
Changes since 1.1: +10 -1 lines
qtcurve-qt4: fixed bug #326017
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 wired 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 wired 1.2 # $Header: /var/cvsroot/gentoo-x86/x11-themes/qtcurve-qt4/qtcurve-qt4-1.5.0.ebuild,v 1.1 2010/06/28 11:39:34 wired Exp $
4 wired 1.1
5     EAPI="2"
6     KDE_REQUIRED="optional"
7     KDE_MINIMAL="4.2"
8     inherit confutils cmake-utils kde4-base
9    
10     MY_P="${P/qtcurve-qt4/QtCurve-KDE4}"
11     DESCRIPTION="A set of widget styles for Qt4 based apps, also available for GTK2"
12     HOMEPAGE="http://www.kde-look.org/content/show.php?content=40492"
13     SRC_URI="http://craigd.wikispaces.com/file/view/${MY_P}.tar.bz2"
14    
15     LICENSE="GPL-2"
16     SLOT="0"
17     KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
18     IUSE="kde windeco"
19    
20     DEPEND="x11-libs/qt-gui:4[dbus]
21     x11-libs/qt-svg:4
22     kde? ( >=kde-base/systemsettings-${KDE_MINIMAL}
23     windeco? ( >=kde-base/kwin-${KDE_MINIMAL} ) )"
24     RDEPEND="${DEPEND}"
25    
26     S=${WORKDIR}/${MY_P}
27     DOCS="ChangeLog README TODO"
28    
29     pkg_setup() {
30     confutils_use_depend_all windeco kde
31     use kde && kde4-base_pkg_setup
32     }
33    
34 wired 1.2 src_prepare() {
35     if use kde && ! use windeco; then
36     sed -e "/#include <kdecoration.h>/d" \
37     -e "s/if(KDecorationDefines::BorderTiny==size)/if(0==size)/" \
38     -i "${S}"/kwin/qtcurveconfig.cpp ||
39     die "sed failed"
40     fi
41     }
42    
43 wired 1.1 src_configure() {
44     if use kde; then
45     kde4-base_src_configure
46     else
47     mycmakeargs="-DQTC_QT_ONLY=true"
48     cmake-utils_src_configure
49     fi
50     }

  ViewVC Help
Powered by ViewVC 1.1.20