commit: e8909f160eb2030fb69374795f70a93c6686f34a Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> AuthorDate: Sat Feb 9 01:13:09 2019 +0000 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> CommitDate: Sat Feb 9 02:22:54 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8909f16
dev-libs/swaylock: initial add Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> dev-libs/swaylock/Manifest | 1 + dev-libs/swaylock/metadata.xml | 15 ++++++++++++ dev-libs/swaylock/swaylock-1.3.ebuild | 46 +++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) diff --git a/dev-libs/swaylock/Manifest b/dev-libs/swaylock/Manifest new file mode 100644 index 00000000000..ee04cb54cde --- /dev/null +++ b/dev-libs/swaylock/Manifest @@ -0,0 +1 @@ +DIST swaylock-1.3.tar.gz 32848 BLAKE2B 81ed50839bcb0139e7fc2081bd37e738f3e6ef23e96a5108d1acf56cc3425285f7382576a54201f1bf188883b1da06492074c091877af13832c0140e4e6099fd SHA512 723d758d76f076f3f1539ea0d651f6ad2562659c72eef7e895d7827a0be21db663652fe4ce2609065aff45ff20230879599868cff327ab52b896330ca04d78c4 diff --git a/dev-libs/swaylock/metadata.xml b/dev-libs/swaylock/metadata.xml new file mode 100644 index 00000000000..4155370f2f7 --- /dev/null +++ b/dev-libs/swaylock/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>prometheanf...@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <longdescription lang="en"> + Swaylock is a screen locking utility for Wayland compositors. + </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> + </use> +</pkgmetadata> diff --git a/dev-libs/swaylock/swaylock-1.3.ebuild b/dev-libs/swaylock/swaylock-1.3.ebuild new file mode 100644 index 00000000000..c6e0258c8c5 --- /dev/null +++ b/dev-libs/swaylock/swaylock-1.3.ebuild @@ -0,0 +1,46 @@ +# 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" +SRC_URI="https://github.com/swaywm/swaylock/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+pam +gdk-pixbuf zsh-completion bash-completion fish-completion +doc" + +RDEPEND="dev-libs/wayland + x11-libs/libxkbcommon + x11-libs/cairo + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[jpeg] ) + pam? ( virtual/pam ) +" +DEPEND="${RDEPEND} + >=dev-libs/wayland-protocols-1.14 + doc? ( app-text/scdoc ) + !<dev-libs/sway-1.0_rc1 +" +src_configure() { + local emesonargs=( + -Dman-pages=$(usex doc 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} + ) + + meson_src_configure +} + +pkg_postinst() { + if ! use pam; then + fcaps cap_sys_admin usr/bin/swaylock + fi +}