aboutsummaryrefslogtreecommitdiff
blob: b2ee945612e6addb4b574a29670a7424f10ff32e (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

DISABLE_AUTOFORMATTING="true"
DECLARATIVE_REQUIRED="always"
VIRTUALX_REQUIRED="test"
KDE_LINGUAS="bs cs da de el es et fi fr ga gl hu it lt mr nl pt pt_BR ro ru sk
sl sv tr uk zh_CN zh_TW"
inherit kde4-base readme.gentoo

DESCRIPTION="Alternative KDE screen management"
HOMEPAGE="https://projects.kde.org/projects/extragear/base/kscreen"

LICENSE="GPL-2 LGPL-2.1"
SLOT="4"
KEYWORDS=""
IUSE="debug"

DEPEND="
	>=dev-libs/qjson-0.8
	>=x11-libs/libkscreen-${PV}:4
"
RDEPEND="${DEPEND}"

DOC_CONTENTS="Disable the old screen management:
# qdbus org.kde.kded /kded org.kde.kded.unloadModule randrmonitor
# qdbus org.kde.kded /kded org.kde.kded.setModuleAutoloading randrmonitor false

Enable the kded module for the kscreen based screen management:
# qdbus org.kde.kded /kded org.kde.kded.loadModule kscreen

Now simply (un-)plugging displays should enable/disable them, while
the last state is remembered.
"

src_install() {
	kde4-base_src_install
	readme.gentoo_create_doc
}

pkg_postinst() {
	kde4-base_pkg_postinst
	readme.gentoo_print_elog
}