blob: a6ba23ced96f63590414ea6d24ae68df59855590 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit git-2 bash-completion-r1 udev
DESCRIPTION="Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr or disper"
HOMEPAGE="https://github.com/phillipberndt/autorandr"
SRC_URI=""
EGIT_REPO_URI="${HOMEPAGE}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="udev +pm-utils"
DEPEND="udev? ( virtual/udev )
pm-utils? ( sys-power/pm-utils )"
RDEPEND="${DEPEND}"
src_install() {
exeinto /usr/bin
doexe autorandr
dodoc README.md
newbashcomp bash_completion/${PN} ${PN}
if use udev; then
udev_dorules udev/40-monitor-hotplug.rules
fi
if use pm-utils; then
exeinto /usr/lib/pm-utils/sleep.d
doexe pm-utils/40autorandr
fi
}
pkg_postinst() {
udev_reload
}
|