<email>prometheanfire@gentoo.org</email>
<name>Matthew Thode</name>
</maintainer>
+ <maintainer type="person">
+ <email>speedjack95@gmail.com</email>
+ <name>Niccolò Scatena</name>
+ </maintainer>
<longdescription lang="en">
- Swaylock is a screen locking utility for Wayland compositors.
+ Swaylock is a screen locking utility for Wayland compositors. It is
+ compatible with any Wayland compositor which implements the following
+ Wayland protocols: wlr-layer-shell, wlr-input-inhibitor, xdg-output,
+ xdg-shell.
+
+ Swaylock is the official screen locker for <pkg>dev-libs/sway</pkg>.
</longdescription>
<use>
- <flag name="gdk-pixbuf">Enable additional image format support via the <pkg>x11-libs/gdk-pixbuf</pkg> library</flag>
<flag name="fish-completion">Enable fish completion support</flag>
+ <flag name="gdk-pixbuf">Enable additional image format support via the <pkg>x11-libs/gdk-pixbuf</pkg> library</flag>
+ <flag name="man">Build and install man pages</flag>
</use>
+ <upstream>
+ <remote-id type="github">swaywm/swaylock</remote-id>
+ <maintainer status="active">
+ <email>sir@cmpwn.com</email>
+ <name>Drew DeVault</name>
+ </maintainer>
+ <bugs-to>https://github.com/swaywm/swaylock/issues</bugs-to>
+ <changelog>https://github.com/swaywm/swaylock/releases</changelog>
+ </upstream>
</pkgmetadata>
DESCRIPTION="Screen locker for Wayland"
HOMEPAGE="https://github.com/swaywm/swaylock"
-SRC_URI="https://github.com/swaywm/swaylock/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
+else
+ SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+pam +gdk-pixbuf zsh-completion bash-completion fish-completion +doc"
+IUSE="fish-completion +gdk-pixbuf +man +pam zsh-completion"
-RDEPEND="dev-libs/wayland
- x11-libs/libxkbcommon
+DEPEND="
+ dev-libs/wayland
x11-libs/cairo
- gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[jpeg] )
+ x11-libs/libxkbcommon
+ gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 )
pam? ( virtual/pam )
"
-DEPEND="${RDEPEND}
+RDEPEND="
+ ${DEPEND}
+ !<=dev-libs/sway-1.0_beta2[swaylock]
+"
+BDEPEND="
>=dev-libs/wayland-protocols-1.14
- doc? ( app-text/scdoc )
- !<dev-libs/sway-1.0_rc1
+ virtual/pkgconfig
+ man? ( app-text/scdoc )
"
+
src_configure() {
local emesonargs=(
- -Dman-pages=$(usex doc enabled disabled)
+ -Dman-pages=$(usex man enabled disabled)
-Dpam=$(usex pam enabled disabled)
-Dgdk-pixbuf=$(usex gdk-pixbuf enabled disabled)
- $(meson_use bash-completion bash-completions)
$(meson_use fish-completion fish-completions)
$(meson_use zsh-completion zsh-completions)
- -Dswaylock-version=${PV}
+ "-Dbash-completions=true"
+ "-Dwerror=false"
)
+ if [[ ${PV} != 9999 ]]; then
+ emesonargs+=("-Dswaylock-version=${PV}")
+ fi
meson_src_configure
}