1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Screen locker for Wayland"
9 HOMEPAGE="https://github.com/swaywm/swaylock"
11 if [[ ${PV} == 9999 ]]; then
13 EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
15 SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~arm64 ~x86"
21 IUSE="fish-completion +gdk-pixbuf +man +pam zsh-completion"
27 gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 )
32 !<=gui-wm/sway-1.0_beta2[swaylock]
35 >=dev-libs/wayland-protocols-1.14
37 man? ( app-text/scdoc )
42 -Dman-pages=$(usex man enabled disabled)
43 -Dpam=$(usex pam enabled disabled)
44 -Dgdk-pixbuf=$(usex gdk-pixbuf enabled disabled)
45 $(meson_use fish-completion fish-completions)
46 $(meson_use zsh-completion zsh-completions)
47 "-Dbash-completions=true"
50 if [[ ${PV} != 9999 ]]; then
51 emesonargs+=("-Dswaylock-version=${PV}")
59 fcaps cap_sys_admin usr/bin/swaylock