summaryrefslogtreecommitdiff
path: root/dev-libs/swaylock
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/swaylock')
-rw-r--r--dev-libs/swaylock/Manifest5
-rw-r--r--dev-libs/swaylock/metadata.xml23
-rw-r--r--dev-libs/swaylock/swaylock-1.3.ebuild39
-rw-r--r--dev-libs/swaylock/swaylock-9999.ebuild61
4 files changed, 112 insertions, 16 deletions
diff --git a/dev-libs/swaylock/Manifest b/dev-libs/swaylock/Manifest
index c1bc6f6f451c..269bd3cbec91 100644
--- a/dev-libs/swaylock/Manifest
+++ b/dev-libs/swaylock/Manifest
@@ -1,3 +1,4 @@
DIST swaylock-1.3.tar.gz 32848 BLAKE2B 81ed50839bcb0139e7fc2081bd37e738f3e6ef23e96a5108d1acf56cc3425285f7382576a54201f1bf188883b1da06492074c091877af13832c0140e4e6099fd SHA512 723d758d76f076f3f1539ea0d651f6ad2562659c72eef7e895d7827a0be21db663652fe4ce2609065aff45ff20230879599868cff327ab52b896330ca04d78c4
-EBUILD swaylock-1.3.ebuild 1113 BLAKE2B 6f25e1118e36c9891f3ed28584c864a80b4cb189405926af2cb686b7d6027dac11b14ffb915772f88be6ee5c7dfb65e31151b3bccec4eb1b32b5f8efe9b9ae3a SHA512 b10d4429010ea4f645624bb4cc9bd0a8a728e1b17848c63e7f119629b219086a1abaa7f8df994bb33f24b1b2f9e7ba8653a8d25446a69c6e8e13d11d43af4646
-MISC metadata.xml 570 BLAKE2B 954003d784e88ba07c283ca3685c9badb503d4860531a73de3bb1463ca94767002336ac0815b7ba31a45a8db5d26257b9029c134fd482e238438b70b06edfbb4 SHA512 158a487be5b46cbcba3fa9db92a7dac416a1b383637102d9007111bf99027c47bb6e24bc8f5858b7eca450df939646293cfdc0b167b272db0179f26930246e88
+EBUILD swaylock-1.3.ebuild 1294 BLAKE2B 7de04b1552c17a2e19a501beacd2e5a990e25057773ea27ecb1af0aeae5a28f3d2754afadf1a76ef3fa4d22e8e5883ac2b0d84f7ca3d91a6532ad86348a66322 SHA512 7e374c8a78f58e4aa0ba38d5aa21596a879162478aec4dc57c9aa131399652091f77972f63b68bdc2faaf08f0ae64fcd36d0ef8b45ab3bf91cb4d495d92f8578
+EBUILD swaylock-9999.ebuild 1294 BLAKE2B 7de04b1552c17a2e19a501beacd2e5a990e25057773ea27ecb1af0aeae5a28f3d2754afadf1a76ef3fa4d22e8e5883ac2b0d84f7ca3d91a6532ad86348a66322 SHA512 7e374c8a78f58e4aa0ba38d5aa21596a879162478aec4dc57c9aa131399652091f77972f63b68bdc2faaf08f0ae64fcd36d0ef8b45ab3bf91cb4d495d92f8578
+MISC metadata.xml 1292 BLAKE2B 9f376dc92ce4d49acf4ad1d79c1b24465d9944e48fce54f23e2e8a076a2d65282ec9fc963246e8e8a85d85b7f9258a17724221e2c63453ed2d1cd98b95853759 SHA512 d53e022caa435f7904f8b9f86c18cf33b9663cf48a8d3d34d6779e2ed4625beafcd30f34d5ecc224f45349846e8716b7587c9ce711216ce7326e27424675c595
diff --git a/dev-libs/swaylock/metadata.xml b/dev-libs/swaylock/metadata.xml
index 4155370f2f7c..26cfed9c82aa 100644
--- a/dev-libs/swaylock/metadata.xml
+++ b/dev-libs/swaylock/metadata.xml
@@ -5,11 +5,30 @@
<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>
diff --git a/dev-libs/swaylock/swaylock-1.3.ebuild b/dev-libs/swaylock/swaylock-1.3.ebuild
index c6e0258c8c52..85539fb9095e 100644
--- a/dev-libs/swaylock/swaylock-1.3.ebuild
+++ b/dev-libs/swaylock/swaylock-1.3.ebuild
@@ -7,34 +7,49 @@ inherit fcaps meson
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
}
diff --git a/dev-libs/swaylock/swaylock-9999.ebuild b/dev-libs/swaylock/swaylock-9999.ebuild
new file mode 100644
index 000000000000..85539fb9095e
--- /dev/null
+++ b/dev-libs/swaylock/swaylock-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit fcaps meson
+
+DESCRIPTION="Screen locker for Wayland"
+HOMEPAGE="https://github.com/swaywm/swaylock"
+
+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"
+IUSE="fish-completion +gdk-pixbuf +man +pam zsh-completion"
+
+DEPEND="
+ dev-libs/wayland
+ x11-libs/cairo
+ x11-libs/libxkbcommon
+ gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 )
+ pam? ( virtual/pam )
+"
+RDEPEND="
+ ${DEPEND}
+ !<=dev-libs/sway-1.0_beta2[swaylock]
+"
+BDEPEND="
+ >=dev-libs/wayland-protocols-1.14
+ virtual/pkgconfig
+ man? ( app-text/scdoc )
+"
+
+src_configure() {
+ local emesonargs=(
+ -Dman-pages=$(usex man enabled disabled)
+ -Dpam=$(usex pam enabled disabled)
+ -Dgdk-pixbuf=$(usex gdk-pixbuf enabled disabled)
+ $(meson_use fish-completion fish-completions)
+ $(meson_use zsh-completion zsh-completions)
+ "-Dbash-completions=true"
+ "-Dwerror=false"
+ )
+ if [[ ${PV} != 9999 ]]; then
+ emesonargs+=("-Dswaylock-version=${PV}")
+ fi
+
+ meson_src_configure
+}
+
+pkg_postinst() {
+ if ! use pam; then
+ fcaps cap_sys_admin usr/bin/swaylock
+ fi
+}