Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-apps/swaylock/
Date: Sun, 29 Jan 2023 00:11:01
Message-Id: 1674951052.9433bf9978875d9f5b86f49e4501bfaadc1e8a26.prometheanfire@gentoo
1 commit: 9433bf9978875d9f5b86f49e4501bfaadc1e8a26
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 29 00:10:07 2023 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 00:10:52 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9433bf99
7
8 gui-apps/swaylock: add 1.7.2
9
10 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
11
12 gui-apps/swaylock/Manifest | 1 +
13 gui-apps/swaylock/swaylock-1.7.2.ebuild | 55 +++++++++++++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/gui-apps/swaylock/Manifest b/gui-apps/swaylock/Manifest
17 index 462d167a3ff1..3172e62ca328 100644
18 --- a/gui-apps/swaylock/Manifest
19 +++ b/gui-apps/swaylock/Manifest
20 @@ -1,3 +1,4 @@
21 DIST swaylock-1.6.tar.gz 36439 BLAKE2B 8944bbd5ec0dd719f8dc627dbf878fcf07df3f060b56bce3ab215a2c21fe43debfeac15f6ef7eba43415f3b94a75a335fd692e653ac48407c1cf10b400f8ff67 SHA512 9a472c25e53a41c461af41af31c7fc8b275754628d0b20f4e5085cd7ca514e68361293a6e93fb6fcb7632419a3c73e4578e03294af28fe62d944cc43339f280d
22 DIST swaylock-1.7.1.tar.gz 37290 BLAKE2B 2055d5b4be46926217ff596e20b4f9e46cc028f61f0283b2ce4673e828b2bf8971c5a10761c56fecbd2dd392beb522661da5981f50dfcb2ee2a7cb47429e1d30 SHA512 36cd7f92f9a936dfe1c5fe43c7722c97cbf5169c6133ac5417b1966b151bbd44d84ffffd229358d40c3c48c3ff4537fc1f81406d5563d58ed3b40050569b77f4
23 +DIST swaylock-1.7.2.tar.gz 37368 BLAKE2B 146d73255a0d1439cf75ccb2fff528e47929718eaa75dc5a1567feeac59e65ebf674679e559dd634f375b5ca1bd44f6fe195f7362441b1979eaa222ba35812b8 SHA512 0593f7dfb258bd77796cb757e2e52d01829e0746306ce7991313a2982feead698c22753db53b00719ac1c82f6573563bcf5815f68c06680aa8ee6d419cac7549
24 DIST swaylock-1.7.tar.gz 37149 BLAKE2B 7675b56a28ce932bd163cd41ce498295b61aff51d204c5323b187ddde9ea17f6ef1ac2777272fd92703e49f44b3f749645b4715a75ed54845590513e7dddd524 SHA512 44c5a4e482674caeb86da78e49d4593128a14adad2d6e46994f984b2b2b893416d6ceeb6b0b5746ad5594892e65c9dab9764bbe4bf617a90d92622a41b791ed0
25
26 diff --git a/gui-apps/swaylock/swaylock-1.7.2.ebuild b/gui-apps/swaylock/swaylock-1.7.2.ebuild
27 new file mode 100644
28 index 000000000000..aeef41c319be
29 --- /dev/null
30 +++ b/gui-apps/swaylock/swaylock-1.7.2.ebuild
31 @@ -0,0 +1,55 @@
32 +# Copyright 1999-2023 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit fcaps meson
38 +
39 +DESCRIPTION="Screen locker for Wayland"
40 +HOMEPAGE="https://github.com/swaywm/swaylock"
41 +
42 +if [[ ${PV} == 9999 ]]; then
43 + inherit git-r3
44 + EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
45 +else
46 + SRC_URI="https://github.com/swaywm/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
48 +fi
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +IUSE="+gdk-pixbuf +man +pam"
53 +
54 +DEPEND="
55 + dev-libs/wayland
56 + x11-libs/cairo
57 + x11-libs/libxkbcommon
58 + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 )
59 + pam? ( sys-libs/pam )
60 +"
61 +RDEPEND="${DEPEND}"
62 +BDEPEND="
63 + >=dev-libs/wayland-protocols-1.25
64 + >=dev-util/wayland-scanner-1.15
65 + virtual/pkgconfig
66 + man? ( app-text/scdoc )
67 +"
68 +
69 +src_configure() {
70 + local emesonargs=(
71 + -Dman-pages=$(usex man enabled disabled)
72 + -Dpam=$(usex pam enabled disabled)
73 + -Dgdk-pixbuf=$(usex gdk-pixbuf enabled disabled)
74 + "-Dfish-completions=true"
75 + "-Dzsh-completions=true"
76 + "-Dbash-completions=true"
77 + )
78 +
79 + meson_src_configure
80 +}
81 +
82 +pkg_postinst() {
83 + if ! use pam; then
84 + fcaps cap_sys_admin usr/bin/swaylock
85 + fi
86 +}