aboutsummaryrefslogtreecommitdiff
blob: c743eb117403ceff60b1872e010ba8a487bb99c5 (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
36
37
38
39
40
41
42
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

KDE_REQUIRED="optional"
inherit kde4-base qt4

MY_PN="floatstyle"
MY_P="${MY_PN}-${PV/_alpha/a}"

DESCRIPTION="QT4/KDE4 style based on gonx"
HOMEPAGE="http://kde-look.org/content/show.php?content=54477"
SRC_URI="http://kde-look.org/CONTENT/content-files/54477-${MY_P}.tar.bz2"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="debug"

DEPEND="
	x11-libs/qt-gui:4
"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

src_compile() {
	eqmake4 ${MY_PN}.pro || die "qmake failed"
	emake || die "make failed"
}

src_install() {
	insinto /usr/lib/qt4/plugins/styles
	doins libfloatstyle.so || die "libfloatstyle.so install failed"

	if use kde; then
		insinto "/usr/share/apps/kstyle/themes"
		doins float.themerc || die "float.themerc install failed"
	fi
}