aboutsummaryrefslogtreecommitdiff
blob: 6870800b7ed5cca9a0fc4e96402085dc9b568f3d (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit qt4-r2 git-2

DESCRIPTION="Qt utility to change Xcrusor themes without restarting X Server."
HOMEPAGE="http://gitorious.org/qt-xcurtheme"
EGIT_REPO_URI="git://gitorious.org/qt-xcurtheme/mainline"

LICENSE="GPL-2 WTFPL-2"
SLOT="0"
KEYWORDS=""
IUSE="tools"

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

src_prepare() {
	sed -i "/QMAKE_LFLAGS_RELEASE/d" xct.pro ||
		die "xct.pro sed failed";
	sed -i "/QMAKE_LFLAGS_RELEASE/d" tools/cursorFXconvert/lcft.pro ||
		die	"lcft.pro sed failed";
}

src_configure() {
	qt4-r2_src_configure
	if use tools; then
		pushd tools/cursorFXconvert/ > /dev/null
		eqmake4
		popd > /dev/null
	fi
}

src_compile() {
	qt4-r2_src_compile
	if use tools; then
		pushd tools/cursorFXconvert/ > /dev/null
		emake
		popd > /dev/null
	fi
}

src_install() {
	dobin "${PN}"
	if use tools; then
		pushd tools/cursorFXconvert/ > /dev/null
		dobin lcft
		popd > /dev/null
	fi
}