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/, gui-wm/dwl/files/
Date: Mon, 27 Sep 2021 01:17:44
Message-Id: 1632705448.24122b55f2e1fa5519857898c9753928ed513040.leohdz172@gentoo
1 commit: 24122b55f2e1fa5519857898c9753928ed513040
2 Author: Leonardo Hernandez Hernandez <leohdz172 <AT> outlook <DOT> com>
3 AuthorDate: Mon Sep 27 01:16:58 2021 +0000
4 Commit: Leonardo Hernandez <leohdz172 <AT> outlook <DOT> com>
5 CommitDate: Mon Sep 27 01:17:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=24122b55
7
8 gui-wm/dwl: add live version
9
10 take maintainership for live version
11 add patch to enable wayland in config.mk
12
13 Package-Manager: Portage-3.0.20, Repoman-3.0.3
14 Signed-off-by: Leonardo Hernandez Hernandez <leohdz172 <AT> outlook.com>
15
16 gui-wm/dwl/dwl-9999.ebuild | 49 ++++++++++++++++++++++++++++++++++
17 gui-wm/dwl/files/enable-xwayland.patch | 22 +++++++++++++++
18 gui-wm/dwl/metadata.xml | 4 +++
19 3 files changed, 75 insertions(+)
20
21 diff --git a/gui-wm/dwl/dwl-9999.ebuild b/gui-wm/dwl/dwl-9999.ebuild
22 new file mode 100644
23 index 000000000..fb81ba877
24 --- /dev/null
25 +++ b/gui-wm/dwl/dwl-9999.ebuild
26 @@ -0,0 +1,49 @@
27 +# Copyright 2021 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +inherit savedconfig git-r3
33 +
34 +DESCRIPTION="dwm for Wayland"
35 +HOMEPAGE="https://github.com/djpohly/dwl"
36 +EGIT_REPO_URI="https://github.com/djpohly/dwl"
37 +
38 +LICENSE="CC0-1.0 GPL-3 MIT"
39 +SLOT="0"
40 +KEYWORDS=""
41 +IUSE="X"
42 +
43 +RDEPEND="
44 + dev-libs/libinput
45 + dev-libs/wayland
46 + x11-libs/libxcb
47 + x11-libs/libxkbcommon
48 + >=gui-libs/wlroots-0.14:=[X(-)?]
49 + <gui-libs/wlroots-0.15:=[X(-)?]
50 +"
51 +DEPEND="${RDEPEND}"
52 +BDEPEND="
53 + dev-libs/wayland-protocols
54 + dev-util/wayland-scanner
55 + virtual/pkgconfig
56 +"
57 +
58 +src_prepare() {
59 + restore_config config.h
60 +
61 + use X && eapply "${FILESDIR}"/enable-xwayland.patch
62 +
63 + default
64 +}
65 +
66 +src_install() {
67 + emake PREFIX="${ED}/usr" install
68 +
69 + insinto /usr/share/wayland-sessions
70 + doins "${FILESDIR}"/dwl.desktop
71 +
72 + einstalldocs
73 +
74 + save_config config.h
75 +}
76
77 diff --git a/gui-wm/dwl/files/enable-xwayland.patch b/gui-wm/dwl/files/enable-xwayland.patch
78 new file mode 100644
79 index 000000000..b70238550
80 --- /dev/null
81 +++ b/gui-wm/dwl/files/enable-xwayland.patch
82 @@ -0,0 +1,22 @@
83 +From 4c643fa8a1f1370fb3e21548fa7a2cad33cb4bec Mon Sep 17 00:00:00 2001
84 +From: Leonardo Hernandez Hernandez <leohdz172@×××××××.com>
85 +Date: Sun, 26 Sep 2021 19:12:42 -0500
86 +Subject: [PATCH] enable xwayland
87 +
88 +---
89 + config.mk | 2 +-
90 + 1 file changed, 1 insertion(+), 1 deletion(-)
91 +
92 +diff --git a/config.mk b/config.mk
93 +index cd4e821..9a886cc 100644
94 +--- a/config.mk
95 ++++ b/config.mk
96 +@@ -5,4 +5,4 @@ PREFIX = /usr/local
97 + CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wdeclaration-after-statement
98 +
99 + # Uncomment to build XWayland support
100 +-#CFLAGS += -DXWAYLAND
101 ++CFLAGS += -DXWAYLAND
102 +--
103 +2.32.0
104 +
105
106 diff --git a/gui-wm/dwl/metadata.xml b/gui-wm/dwl/metadata.xml
107 index ad8cead24..aac9766aa 100644
108 --- a/gui-wm/dwl/metadata.xml
109 +++ b/gui-wm/dwl/metadata.xml
110 @@ -1,6 +1,10 @@
111 <?xml version="1.0" encoding="UTF-8"?>
112 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
113 <pkgmetadata>
114 + <maintainer restrict="=gui-wm/dwl-9999" type="person">
115 + <email>leohdz172@×××××××.com</email>
116 + <name>Leonardo Hernandez Hernandez</name>
117 + </maintainer>
118 <maintainer type="person">
119 <email>svdm-gentoo@××××××××××.com</email>
120 <name>Simon van der Maas</name>