Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: gui-wm/dwl/, gui-wm/dwl/files/
Date: Sat, 26 Jun 2021 10:53:42
Message-Id: 1624668540.8f2d32a64feee96b8dd76ca787533364df381dd8.lanodan@gentoo
1 commit: 8f2d32a64feee96b8dd76ca787533364df381dd8
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sat Jun 26 00:46:22 2021 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Sat Jun 26 00:49:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8f2d32a6
7
8 gui-wm/dwl: savedconfig and use flag for Xwayland
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 gui-wm/dwl/dwl-0.2.1.ebuild | 45 +++++++++++++++++++++++++++++++++++++-------
13 gui-wm/dwl/files/dwl.desktop | 7 +++++++
14 2 files changed, 45 insertions(+), 7 deletions(-)
15
16 diff --git a/gui-wm/dwl/dwl-0.2.1.ebuild b/gui-wm/dwl/dwl-0.2.1.ebuild
17 index fbd1f9833..285f36ac7 100644
18 --- a/gui-wm/dwl/dwl-0.2.1.ebuild
19 +++ b/gui-wm/dwl/dwl-0.2.1.ebuild
20 @@ -3,18 +3,49 @@
21
22 EAPI=7
23
24 +inherit flag-o-matic savedconfig toolchain-funcs
25 +
26 DESCRIPTION="dwm for Wayland"
27 HOMEPAGE="https://github.com/djpohly/dwl"
28 -SRC_URI="https://github.com/djpohly/dwl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
29 +SRC_URI="https://github.com/djpohly/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
30
31 -LICENSE="GPL-3"
32 +LICENSE="CC0-1.0 GPL-3 MIT"
33 SLOT="0"
34 -KEYWORDS="~amd64"
35 +KEYWORDS="~amd64 ~x86"
36 +IUSE="X"
37 +
38 +RDEPEND="
39 + dev-libs/libinput
40 + dev-libs/wayland
41 + gui-libs/wlroots[X(-)?]
42 + x11-libs/libxcb
43 + x11-libs/libxkbcommon
44 +"
45 +DEPEND="${RDEPEND}"
46 +BDEPEND="
47 + dev-libs/wayland-protocols
48 + dev-util/wayland-scanner
49 + virtual/pkgconfig
50 +"
51
52 -DEPEND="gui-libs/wlroots
53 -dev-libs/wayland-protocols"
54 -RDEPEND="${DEPEND}"
55 +src_prepare() {
56 + default
57 +
58 + restore_config config.h
59 +}
60 +
61 +src_configure() {
62 + use X && append-cppflags -DXWAYLAND
63 + tc-export CC
64 +}
65
66 src_install() {
67 - emake PREFIX="${D}"/usr install
68 + emake PREFIX="${ED}/usr" install
69 +
70 + insinto /usr/share/wayland-sessions
71 + doins "${FILESDIR}"/dwl.desktop
72 +
73 + einstalldocs
74 +
75 + save_config config.h
76 }
77
78 diff --git a/gui-wm/dwl/files/dwl.desktop b/gui-wm/dwl/files/dwl.desktop
79 new file mode 100644
80 index 000000000..343f5d4cd
81 --- /dev/null
82 +++ b/gui-wm/dwl/files/dwl.desktop
83 @@ -0,0 +1,7 @@
84 +[Desktop Entry]
85 +Name=dwl
86 +Comment=dwm for Wayland
87 +Exec=/usr/bin/dwl
88 +TryExec=dwl
89 +Icon=
90 +Type=Application