Gentoo Archives: gentoo-commits

From: Matthias Coppens <coppens.matthias.abc@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-apps/swaylock-effects/, gui-apps/swaylock-blur/
Date: Mon, 07 Sep 2020 09:25:08
Message-Id: 1599470691.2037b5f48cbd21f4c79da7c6a37cc20abffd7d44.coppens.matthias@gentoo
1 commit: 2037b5f48cbd21f4c79da7c6a37cc20abffd7d44
2 Author: Matthias Coppens <coppens.matthias.abc <AT> gmail <DOT> com>
3 AuthorDate: Mon Sep 7 09:23:33 2020 +0000
4 Commit: Matthias Coppens <coppens.matthias.abc <AT> gmail <DOT> com>
5 CommitDate: Mon Sep 7 09:24:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2037b5f4
7
8 gui-apps/swaylock-{blur -> effects}: Swaylock-blur deprecated
9
10 Upstream archived the project swaylock-blur, swaylock-effects is to be
11 used instead. I will remove gui-apps/swaylock-blur in 30 days.
12
13 Package-Manager: Portage-3.0.5, Repoman-3.0.1
14 Signed-off-by: Matthias Coppens <coppens.matthias.abc <AT> gmail.com>
15
16 gui-apps/swaylock-blur/swaylock-blur-0.3.1.ebuild | 7 ++-
17 gui-apps/swaylock-effects/Manifest | 2 +
18 gui-apps/swaylock-effects/metadata.xml | 17 ++++++
19 .../swaylock-effects/swaylock-effects-1.6.0.ebuild | 61 +++++++++++++++++++++
20 .../swaylock-effects/swaylock-effects-1.6.1.ebuild | 62 ++++++++++++++++++++++
21 .../swaylock-effects/swaylock-effects-9999.ebuild | 62 ++++++++++++++++++++++
22 6 files changed, 210 insertions(+), 1 deletion(-)
23
24 diff --git a/gui-apps/swaylock-blur/swaylock-blur-0.3.1.ebuild b/gui-apps/swaylock-blur/swaylock-blur-0.3.1.ebuild
25 index dc0ab7c..0d48329 100644
26 --- a/gui-apps/swaylock-blur/swaylock-blur-0.3.1.ebuild
27 +++ b/gui-apps/swaylock-blur/swaylock-blur-0.3.1.ebuild
28 @@ -66,7 +66,7 @@ SRC_URI="
29 RESTRICT="mirror"
30 LICENSE="MIT"
31 SLOT="0"
32 -KEYWORDS="~amd64"
33 +KEYWORDS="" # Upstream has archived the project, use swaylock-effects instead
34 IUSE=""
35
36 DEPEND="
37 @@ -76,3 +76,8 @@ DEPEND="
38 gui-wm/sway
39 "
40 RDEPEND="${RDEPEND}"
41 +
42 +pkg_postinst() {
43 + ewarn "gui-apps/swaylock-blur is deprecated"
44 + ewarn "in favor of gui-apps/swaylock-effects."
45 +}
46
47 diff --git a/gui-apps/swaylock-effects/Manifest b/gui-apps/swaylock-effects/Manifest
48 new file mode 100644
49 index 0000000..8d7ac51
50 --- /dev/null
51 +++ b/gui-apps/swaylock-effects/Manifest
52 @@ -0,0 +1,2 @@
53 +DIST swaylock-effects-1.6.0.tar.gz 609458 BLAKE2B 3efe72d9124b410fe4a6c6d751716f9dbc7aaf9357786b3e87171ef12c9eb8f01425fa86247b940316708214195faf49df3b5cfdbe884ebf88367915da2868eb SHA512 9e93ee9dc8f5e984a195abc50937125b19cd9fec8f71a373430980d6995510947c71bf3c3c26152ef3d4fe2c39f8d875c249aa8ec085d60c670d94b633dcea83
54 +DIST swaylock-effects-1.6.1.tar.gz 616395 BLAKE2B 1d66fe012f6a5c7202a5ad73344e50bb7544680cb9414bc0b93ab7cec835dee6887ef09fb89bebb5df4ffb35a2f6e8ecbe5ff418f976d870edb7485deefcf40c SHA512 5b2e2537e683e50814a4dc5c2109a902a9f9533c13d2d656e965694a01111727dd819420c979d323d6d0353b03111782064ecc61d712479049d1df9ff84f30bb
55
56 diff --git a/gui-apps/swaylock-effects/metadata.xml b/gui-apps/swaylock-effects/metadata.xml
57 new file mode 100644
58 index 0000000..aadb0e3
59 --- /dev/null
60 +++ b/gui-apps/swaylock-effects/metadata.xml
61 @@ -0,0 +1,17 @@
62 +<?xml version="1.0" encoding="UTF-8"?>
63 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
64 +<pkgmetadata>
65 + <maintainer type="person">
66 + <name>Matthias Coppens</name>
67 + <email>coppens.matthias.abc@×××××.com</email>
68 + </maintainer>
69 + <use>
70 + <flag name="fish-completion">Enable fish completion support</flag>
71 + <flag name="gdk-pixbuf">Enable additional image format support via the <pkg>x11-libs/gdk-pixbuf</pkg> library</flag>
72 + <flag name="man">Build and install man pages</flag>
73 + </use>
74 + <upstream>
75 + <remote-id type="github">mortie/swaylock-effects</remote-id>
76 + <bugs-to>https://github.com/mortie/swaylock-effects/issues</bugs-to>
77 + </upstream>
78 +</pkgmetadata>
79
80 diff --git a/gui-apps/swaylock-effects/swaylock-effects-1.6.0.ebuild b/gui-apps/swaylock-effects/swaylock-effects-1.6.0.ebuild
81 new file mode 100644
82 index 0000000..01f13fb
83 --- /dev/null
84 +++ b/gui-apps/swaylock-effects/swaylock-effects-1.6.0.ebuild
85 @@ -0,0 +1,61 @@
86 +# Copyright 1999-2020 Gentoo Authors
87 +# Distributed under the terms of the GNU General Public License v2
88 +
89 +EAPI=7
90 +
91 +inherit fcaps meson
92 +
93 +DESCRIPTION="Swaylock, with fancy effects"
94 +HOMEPAGE="https://github.com/mortie/swaylock-effects"
95 +
96 +if [[ ${PV} == 9999 ]]
97 +then
98 + inherit git-r3
99 + EGIT_REPO_URI="https://github.com/mortie/swaylock-effects.git"
100 +else
101 + MY_PV="$(ver_rs 2 -)"
102 + S="${WORKDIR}/swaylock-effects-${MY_PV}"
103 + SRC_URI="https://github.com/mortie/swaylock-effects/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
104 + KEYWORDS="~amd64"
105 +fi
106 +
107 +LICENSE="MIT"
108 +SLOT="0"
109 +IUSE="fish-completion +gdk-pixbuf +man +pam zsh-completion"
110 +
111 +RESTRICT="mirror"
112 +
113 +DEPEND="
114 + !gui-apps/swaylock
115 + dev-libs/wayland
116 + x11-libs/cairo
117 + x11-libs/libxkbcommon
118 + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 )
119 + pam? ( sys-libs/pam )
120 +"
121 +RDEPEND="${DEPEND}"
122 +BDEPEND="
123 + >=dev-libs/wayland-protocols-1.14
124 + virtual/pkgconfig
125 + man? ( app-text/scdoc )
126 +"
127 +
128 +src_configure() {
129 + local emesonargs=(
130 + -Dman-pages=$(usex man enabled disabled)
131 + -Dpam=$(usex pam enabled disabled)
132 + -Dgdk-pixbuf=$(usex gdk-pixbuf enabled disabled)
133 + $(meson_use fish-completion fish-completions)
134 + $(meson_use zsh-completion zsh-completions)
135 + "-Dbash-completions=true"
136 + "-Dwerror=false"
137 + )
138 +
139 + meson_src_configure
140 +}
141 +
142 +pkg_postinst() {
143 + if ! use pam; then
144 + fcaps cap_sys_admin usr/bin/swaylock
145 + fi
146 +}
147
148 diff --git a/gui-apps/swaylock-effects/swaylock-effects-1.6.1.ebuild b/gui-apps/swaylock-effects/swaylock-effects-1.6.1.ebuild
149 new file mode 100644
150 index 0000000..10e238b
151 --- /dev/null
152 +++ b/gui-apps/swaylock-effects/swaylock-effects-1.6.1.ebuild
153 @@ -0,0 +1,62 @@
154 +# Copyright 1999-2020 Gentoo Authors
155 +# Distributed under the terms of the GNU General Public License v2
156 +
157 +EAPI=7
158 +
159 +inherit fcaps meson
160 +
161 +DESCRIPTION="Swaylock, with fancy effects"
162 +HOMEPAGE="https://github.com/mortie/swaylock-effects"
163 +
164 +if [[ ${PV} == 9999 ]]
165 +then
166 + inherit git-r3
167 + EGIT_REPO_URI="https://github.com/mortie/swaylock-effects.git"
168 +else
169 + MY_PV="$(ver_rs 2 -)"
170 + S="${WORKDIR}/swaylock-effects-${MY_PV}"
171 + SRC_URI="https://github.com/mortie/swaylock-effects/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
172 + KEYWORDS="~amd64"
173 +fi
174 +
175 +LICENSE="MIT"
176 +SLOT="0"
177 +IUSE="fish-completion +gdk-pixbuf +man +pam zsh-completion"
178 +
179 +RESTRICT="mirror"
180 +
181 +DEPEND="
182 + !gui-apps/swaylock
183 + dev-libs/wayland
184 + x11-libs/cairo
185 + x11-libs/libxkbcommon
186 + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 )
187 + pam? ( sys-libs/pam )
188 +"
189 +RDEPEND="${DEPEND}"
190 +BDEPEND="
191 + >=sys-devel/gcc-9
192 + >=dev-libs/wayland-protocols-1.14
193 + virtual/pkgconfig
194 + man? ( app-text/scdoc )
195 +"
196 +
197 +src_configure() {
198 + local emesonargs=(
199 + -Dman-pages=$(usex man enabled disabled)
200 + -Dpam=$(usex pam enabled disabled)
201 + -Dgdk-pixbuf=$(usex gdk-pixbuf enabled disabled)
202 + $(meson_use fish-completion fish-completions)
203 + $(meson_use zsh-completion zsh-completions)
204 + "-Dbash-completions=true"
205 + "-Dwerror=false"
206 + )
207 +
208 + meson_src_configure
209 +}
210 +
211 +pkg_postinst() {
212 + if ! use pam; then
213 + fcaps cap_sys_admin usr/bin/swaylock
214 + fi
215 +}
216
217 diff --git a/gui-apps/swaylock-effects/swaylock-effects-9999.ebuild b/gui-apps/swaylock-effects/swaylock-effects-9999.ebuild
218 new file mode 100644
219 index 0000000..10e238b
220 --- /dev/null
221 +++ b/gui-apps/swaylock-effects/swaylock-effects-9999.ebuild
222 @@ -0,0 +1,62 @@
223 +# Copyright 1999-2020 Gentoo Authors
224 +# Distributed under the terms of the GNU General Public License v2
225 +
226 +EAPI=7
227 +
228 +inherit fcaps meson
229 +
230 +DESCRIPTION="Swaylock, with fancy effects"
231 +HOMEPAGE="https://github.com/mortie/swaylock-effects"
232 +
233 +if [[ ${PV} == 9999 ]]
234 +then
235 + inherit git-r3
236 + EGIT_REPO_URI="https://github.com/mortie/swaylock-effects.git"
237 +else
238 + MY_PV="$(ver_rs 2 -)"
239 + S="${WORKDIR}/swaylock-effects-${MY_PV}"
240 + SRC_URI="https://github.com/mortie/swaylock-effects/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
241 + KEYWORDS="~amd64"
242 +fi
243 +
244 +LICENSE="MIT"
245 +SLOT="0"
246 +IUSE="fish-completion +gdk-pixbuf +man +pam zsh-completion"
247 +
248 +RESTRICT="mirror"
249 +
250 +DEPEND="
251 + !gui-apps/swaylock
252 + dev-libs/wayland
253 + x11-libs/cairo
254 + x11-libs/libxkbcommon
255 + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 )
256 + pam? ( sys-libs/pam )
257 +"
258 +RDEPEND="${DEPEND}"
259 +BDEPEND="
260 + >=sys-devel/gcc-9
261 + >=dev-libs/wayland-protocols-1.14
262 + virtual/pkgconfig
263 + man? ( app-text/scdoc )
264 +"
265 +
266 +src_configure() {
267 + local emesonargs=(
268 + -Dman-pages=$(usex man enabled disabled)
269 + -Dpam=$(usex pam enabled disabled)
270 + -Dgdk-pixbuf=$(usex gdk-pixbuf enabled disabled)
271 + $(meson_use fish-completion fish-completions)
272 + $(meson_use zsh-completion zsh-completions)
273 + "-Dbash-completions=true"
274 + "-Dwerror=false"
275 + )
276 +
277 + meson_src_configure
278 +}
279 +
280 +pkg_postinst() {
281 + if ! use pam; then
282 + fcaps cap_sys_admin usr/bin/swaylock
283 + fi
284 +}