From 1ef7ee9af3d2b4475855a6a4e8f79a9b8757abb1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niccol=C3=B2=20Scatena?= Date: Sat, 9 Feb 2019 18:13:51 +0100 Subject: [PATCH] dev-libs/swaylock: various fixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - Use ${PN} wherever possible; - Fix use flag order in IUSE; - Remove bash-completion use flag: bash completions should be always installed (see [1]); - Rename use flag: doc -> man (doc is a global use flag used to install additional documentation that most users does not want); - Fix order of (R)DEPEND; - Remove required use gdk-pixbuf[jpeg]: the jpeg use flag is not required to be enabled. If the user wants support for JPEG images, he can manually enable it in gdk-pixbuf; - Move scdoc and wayland-protocols deps to BDEPEND (required only when building); - Fix dependency blocks: an user may install <=sway-1.0_beta2 with the swaylock use flag disabled and then install the swaylock package; - Add -Dwerror=false to meson args. In metadata.xml: - Add upstream infos; - Improve longdescription; - Add myself as maintainer. [1] www.gentoo.org/support/news-items/2014-11-25-bash-completion-2_1-r90.html Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Niccolò Scatena Signed-off-by: Aaron Bauman --- dev-libs/swaylock/metadata.xml | 23 ++++++++++++++-- dev-libs/swaylock/swaylock-1.3.ebuild | 39 ++++++++++++++++++--------- 2 files changed, 48 insertions(+), 14 deletions(-) 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 @@ prometheanfire@gentoo.org Matthew Thode + + speedjack95@gmail.com + Niccolò Scatena + - 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 dev-libs/sway. - Enable additional image format support via the x11-libs/gdk-pixbuf library Enable fish completion support + Enable additional image format support via the x11-libs/gdk-pixbuf library + Build and install man pages + + swaywm/swaylock + + sir@cmpwn.com + Drew DeVault + + https://github.com/swaywm/swaylock/issues + https://github.com/swaywm/swaylock/releases + 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 ) - !