summaryrefslogtreecommitdiff
path: root/gui-apps/swaylock
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-03-03 13:42:34 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-03-03 13:42:34 +0000
commit066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (patch)
tree3cb05783d73b2c33589ba305144a31c718e123cd /gui-apps/swaylock
parent16449a80e28af2209916cc66d19c9a44ca2b90d9 (diff)
gentoo resync : 03.03.2019
Diffstat (limited to 'gui-apps/swaylock')
-rw-r--r--gui-apps/swaylock/Manifest4
-rw-r--r--gui-apps/swaylock/metadata.xml34
-rw-r--r--gui-apps/swaylock/swaylock-1.3.ebuild61
-rw-r--r--gui-apps/swaylock/swaylock-9999.ebuild61
4 files changed, 160 insertions, 0 deletions
diff --git a/gui-apps/swaylock/Manifest b/gui-apps/swaylock/Manifest
new file mode 100644
index 000000000000..7e50b6e5e714
--- /dev/null
+++ b/gui-apps/swaylock/Manifest
@@ -0,0 +1,4 @@
+DIST swaylock-1.3.tar.gz 32848 BLAKE2B 81ed50839bcb0139e7fc2081bd37e738f3e6ef23e96a5108d1acf56cc3425285f7382576a54201f1bf188883b1da06492074c091877af13832c0140e4e6099fd SHA512 723d758d76f076f3f1539ea0d651f6ad2562659c72eef7e895d7827a0be21db663652fe4ce2609065aff45ff20230879599868cff327ab52b896330ca04d78c4
+EBUILD swaylock-1.3.ebuild 1294 BLAKE2B 5b1d9db5caaeb3b11fb612099f793cce30d6a07cbaed5172c8c2721d304e6d54cdabd3753479bb7462fcf590d27f7a3b127717bd57a7e2c0bbb5bd3975561133 SHA512 4d599dc575540d876be1917ffad1d9322583c96c9bfa7bdf0ab000c70532a0e79f68bfcdabe866bca12700f17e96e38b99645c9fec1fbf2e8110ca4094ff8719
+EBUILD swaylock-9999.ebuild 1292 BLAKE2B 062145b686f73db672fe973f0976aaf3d2d9536cd1015b245606db07700c468808719f03bbcdede28455ddbca92df11bf3991c72e1fafdfa0ebee83f21626fd9 SHA512 3aa087cd681e0cf69aac6b059864147cc3bb98000cbde3b469befacf81c2a5e5eec29501912187828fa9eca64f9b950d78d0cd42489b031ac5dcfd048b5b9d7f
+MISC metadata.xml 1292 BLAKE2B 9f376dc92ce4d49acf4ad1d79c1b24465d9944e48fce54f23e2e8a076a2d65282ec9fc963246e8e8a85d85b7f9258a17724221e2c63453ed2d1cd98b95853759 SHA512 d53e022caa435f7904f8b9f86c18cf33b9663cf48a8d3d34d6779e2ed4625beafcd30f34d5ecc224f45349846e8716b7587c9ce711216ce7326e27424675c595
diff --git a/gui-apps/swaylock/metadata.xml b/gui-apps/swaylock/metadata.xml
new file mode 100644
index 000000000000..26cfed9c82aa
--- /dev/null
+++ b/gui-apps/swaylock/metadata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <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. 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="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/gui-apps/swaylock/swaylock-1.3.ebuild b/gui-apps/swaylock/swaylock-1.3.ebuild
new file mode 100644
index 000000000000..c42b75c8e103
--- /dev/null
+++ b/gui-apps/swaylock/swaylock-1.3.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}
+ !<=gui-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
+}
diff --git a/gui-apps/swaylock/swaylock-9999.ebuild b/gui-apps/swaylock/swaylock-9999.ebuild
new file mode 100644
index 000000000000..5ea7fb975255
--- /dev/null
+++ b/gui-apps/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}
+ !<=gui-wm/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
+}