blob: f0cfcc86a3ca0fe747437adc72c0eff4f36faa94 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/razorqt/razorqt-0.4.1-r1.ebuild,v 1.2 2012/04/23 20:38:49 mgorny Exp $
EAPI=4
inherit cmake-utils
DESCRIPTION="An advanced, easy-to-use, and fast desktop environment based on Qt"
HOMEPAGE="http://razor-qt.org"
if [[ ${PV} = *9999* ]]; then
inherit git-2
EGIT_REPO_URI="git://github.com/Razor-qt/razor-qt.git"
EGIT_BRANCH="0.4.1"
KEYWORDS=""
else
SRC_URI="mirror://github/Razor-qt/razor-qt/${P}.tar.bz2"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="doc policykit"
COMMON_DEPEND="sys-apps/file
policykit? (
dev-libs/glib:2
sys-auth/polkit-qt
)
sys-libs/zlib
x11-libs/libX11
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXfixes
x11-libs/libXrender
x11-libs/qt-core:4
x11-libs/qt-dbus:4
x11-libs/qt-gui:4
x11-libs/qt-script:4"
DEPEND="${COMMON_DEPEND}
doc? ( app-doc/doxygen )
dev-util/cmake"
RDEPEND="${COMMON_DEPEND}
|| (
x11-wm/openbox
kde-base/kwin
x11-wm/metacity
xfce-base/xfwm4
x11-wm/enlightenment
x11-wm/fvwm
x11-wm/sawfish
x11-wm/windowmaker
)"
PATCHES=( "${FILESDIR}/${P}-automagic.patch" )
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_enable policykit)
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_make
# build developer documentation using Doxygen
use doc && emake -C "${CMAKE_BUILD_DIR}" docs
}
src_install() {
cmake-utils_src_install
# install developer documentation
use doc && dodoc -r "${CMAKE_BUILD_DIR}/docs"
}
pkg_postinst() {
einfo "To be able to Shutdown/Reboot from Razor,"
einfo "make sure sys-power/upower is installed."
einfo "For the Removable Media plugin to work,"
einfo "make sure sys-fs/udisks is installed."
}
|