You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-wm/razorqt/razorqt-0.4.1-r2.ebuild

94 lines
1.9 KiB

# 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-r2.ebuild,v 1.3 2012/06/30 06:17:05 yngwin 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-misc/xdg-utils-1.1.0_rc1_p20120319
|| (
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"
"${FILESDIR}/${P}-unbundle-xdg-utils.patch"
"${FILESDIR}/${P}-add-missing-headers.patch"
)
src_configure() {
local mycmakeargs=(
-DBUNDLE_XDG_UTILS=NO
$(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."
}