Gentoo Archives: gentoo-commits

From: Leonardo Hernandez <leohdz172@×××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-wm/dwl/files/, gui-wm/dwl/
Date: Thu, 31 Mar 2022 16:11:44
Message-Id: 1648743057.d0d326c769e6c57edae44963851cee5d4d37f119.leohdz172@gentoo
1 commit: d0d326c769e6c57edae44963851cee5d4d37f119
2 Author: Leonardo Hernández Hernández <leohdz172 <AT> outlook <DOT> com>
3 AuthorDate: Thu Mar 31 16:10:30 2022 +0000
4 Commit: Leonardo Hernandez <leohdz172 <AT> outlook <DOT> com>
5 CommitDate: Thu Mar 31 16:10:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d0d326c7
7
8 gui-wm/dwl: update live ebuild
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> outlook.com>
12
13 gui-wm/dwl/dwl-9999.ebuild | 13 ++++++++-----
14 gui-wm/dwl/files/enable-xwayland.patch | 22 ----------------------
15 2 files changed, 8 insertions(+), 27 deletions(-)
16
17 diff --git a/gui-wm/dwl/dwl-9999.ebuild b/gui-wm/dwl/dwl-9999.ebuild
18 index 53590e463..e70037611 100644
19 --- a/gui-wm/dwl/dwl-9999.ebuild
20 +++ b/gui-wm/dwl/dwl-9999.ebuild
21 @@ -1,9 +1,9 @@
22 -# Copyright 2021 Gentoo Authors
23 +# Copyright 2022 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=7
27
28 -inherit savedconfig git-r3
29 +inherit savedconfig git-r3 flag-o-matic
30
31 DESCRIPTION="dwm for Wayland"
32 HOMEPAGE="https://github.com/djpohly/dwl"
33 @@ -32,13 +32,16 @@ BDEPEND="
34 src_prepare() {
35 restore_config config.h
36
37 - use X && eapply "${FILESDIR}"/enable-xwayland.patch
38 -
39 default
40 }
41
42 +src_configure() {
43 + use X && append-cflags $(test-flags-CC -DXWAYLAND)
44 + append-cflags $(test-flags-CC -Wno-unused-result)
45 +}
46 +
47 src_install() {
48 - emake PREFIX="${ED}/usr" install
49 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
50
51 insinto /usr/share/wayland-sessions
52 doins "${FILESDIR}"/dwl.desktop
53
54 diff --git a/gui-wm/dwl/files/enable-xwayland.patch b/gui-wm/dwl/files/enable-xwayland.patch
55 deleted file mode 100644
56 index b70238550..000000000
57 --- a/gui-wm/dwl/files/enable-xwayland.patch
58 +++ /dev/null
59 @@ -1,22 +0,0 @@
60 -From 4c643fa8a1f1370fb3e21548fa7a2cad33cb4bec Mon Sep 17 00:00:00 2001
61 -From: Leonardo Hernandez Hernandez <leohdz172@×××××××.com>
62 -Date: Sun, 26 Sep 2021 19:12:42 -0500
63 -Subject: [PATCH] enable xwayland
64 -
65 ----
66 - config.mk | 2 +-
67 - 1 file changed, 1 insertion(+), 1 deletion(-)
68 -
69 -diff --git a/config.mk b/config.mk
70 -index cd4e821..9a886cc 100644
71 ---- a/config.mk
72 -+++ b/config.mk
73 -@@ -5,4 +5,4 @@ PREFIX = /usr/local
74 - CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wdeclaration-after-statement
75 -
76 - # Uncomment to build XWayland support
77 --#CFLAGS += -DXWAYLAND
78 -+CFLAGS += -DXWAYLAND
79 ---
80 -2.32.0
81 -