summaryrefslogtreecommitdiff
path: root/dev-libs/sway/sway-1.0-r1.ebuild
blob: e5d79485d3b0ba57aa9a154582d1f2098f1e0d8a (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
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit eutils meson ninja-utils

DESCRIPTION="i3-compatible Wayland window manager"
HOMEPAGE="http://swaywm.org/"

SRC_URI="https://github.com/swaywm/sway/archive/1.0-beta.1.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
# TODO
IUSE="wallpapers bash-completion zsh-completion +xwayland"

RDEPEND="
	dev-libs/wlroots
	xwayland? ( dev-libs/wlroots[x11-backend] )
	dev-libs/wayland
	x11-base/xorg-server[wayland]
	>=dev-libs/libinput-1.6.0
	sys-libs/libcap
	dev-libs/libpcre
	>=dev-libs/json-c-0.13:0=
	x11-libs/pango
	x11-libs/cairo
	x11-libs/gdk-pixbuf[jpeg]
	virtual/pam
	>=sys-apps/dbus-1.10
	"

DEPEND="${RDEPEND}
	dev-util/meson
	app-text/scdoc
	virtual/pkgconfig"

src_configure() {
	local emesonargs=(
		-Ddefault-wallpaper=$(usex wallpapers)
		-Dzsh-completions=$(usex zsh-completion)
		-Dbash-completions=$(usex bash-completion)
		-Denable-xwayland=$(usex xwayland)
	)
	meson_src_configure
}