1 |
commit: feb04b9534db4886657316d519db700baf180880 |
2 |
Author: Julien Roy <julien <AT> jroy <DOT> ca> |
3 |
AuthorDate: Tue Jan 31 01:11:39 2023 +0000 |
4 |
Commit: Julien Roy <julien <AT> jroy <DOT> ca> |
5 |
CommitDate: Tue Jan 31 01:12:31 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=feb04b95 |
7 |
|
8 |
gui-wm/hyprland: add patch for bug 891799 |
9 |
Also fix dependencies for USE="X" |
10 |
|
11 |
Closes: https://bugs.gentoo.org/891799 |
12 |
Signed-off-by: Julien Roy <julien <AT> jroy.ca> |
13 |
|
14 |
gui-wm/hyprland/Manifest | 2 +- |
15 |
gui-wm/hyprland/files/0.21.0-meson.patch | 13 +++++++++++++ |
16 |
.../{hyprland-0.21.0.ebuild => hyprland-0.21.0-r1.ebuild} | 12 ++++++++++-- |
17 |
3 files changed, 24 insertions(+), 3 deletions(-) |
18 |
|
19 |
diff --git a/gui-wm/hyprland/Manifest b/gui-wm/hyprland/Manifest |
20 |
index ce25b0cf3..007dad7cf 100644 |
21 |
--- a/gui-wm/hyprland/Manifest |
22 |
+++ b/gui-wm/hyprland/Manifest |
23 |
@@ -1,4 +1,4 @@ |
24 |
DIST contrib.tar.gz 7408 BLAKE2B 03c3733a0b7b747f759b1b13f6fbd5342bc5cdea31f142730f69af85abf576f2c35bd7ea01e1aafba8ad7ae63505d7a9372279538ffb8cea3d61839e2bf4ea21 SHA512 671ea675b8f3de9b6ff8cce62297b5c14947b458de88ffa4bca5c51aafb66fc475782d0ed609a18e5281147f89aa531d4480ee46bb888f98651e4620f58318b4 |
25 |
-DIST hyprland-0.21.0.tar.gz 714570 BLAKE2B 6576765ec28e918be9aefa1252ad70019e2d77ae6f07b61161692ed1d0016d52376f1aae30b4200ae003585ca8ff907e810c635dc639d360f4f22be52d313b0d SHA512 a1fcd015be10267503d9ca529a538a0eebe8c197e91134de8377cca150efd99d0e51e7c9751ef8e81587fe04a497edff9d18b0e9dc5751a0f3eb4b3775c8ecad |
26 |
+DIST hyprland-0.21.0-r1.tar.gz 715422 BLAKE2B b001e246c48d6f92a779abb1aaa41c03ca4154cdebf31b8916147f917e9ba020f39090d5d7476b54b1a63f29ede28da2dd7b6d20a0304826b73d4ca46d462f7c SHA512 cc4e917889afe0a2a9a3f7d508e9dc27c4a21ba2a4fc2e809c54102c2f1458ba5ccf7d29c28c37ac5b4eb75a51f460c39e1654a752d47c1120cb4cef0e65b98a |
27 |
DIST hyprland-protocols.tar.gz 4858 BLAKE2B 565532803fe6975efdba621c9ef69e4a7c18f040a65818e9f0f61d1dda15a3927f4aca25972989172554d5be5332f014d57dc8e1d0bb207ea5ba64aaec0e65f2 SHA512 03e176149fb0749f63fc58aea1175bfed92f0a30895d17e022ebdf9bb6f786e3a1018244379d0a6d205c590b25eccba0d7bea273bb389dd1031fad3d8467ef23 |
28 |
DIST wlr.tar.bz2 448534 BLAKE2B 35ff3e316ce5fa5d444e623597fdc61f143aa07440b8821faecc131aa5376b4ed691e84511ef438dfe4d429941d09fe0ab2d403414fd6a91e54a5bef890a4d68 SHA512 98af3902be681b11989f7d0c3b147ef3e4ef27dd377dd74b4e2a5151be1eeb0ff99d7738f2be4050116a7233820b0bb4f581ae0229d44043bfbd0f6af59108d4 |
29 |
|
30 |
diff --git a/gui-wm/hyprland/files/0.21.0-meson.patch b/gui-wm/hyprland/files/0.21.0-meson.patch |
31 |
new file mode 100644 |
32 |
index 000000000..30664610e |
33 |
--- /dev/null |
34 |
+++ b/gui-wm/hyprland/files/0.21.0-meson.patch |
35 |
@@ -0,0 +1,13 @@ |
36 |
+diff --git a/protocols/meson.build b/protocols/meson.build |
37 |
+index 9d47e0a..c082845 100644 |
38 |
+--- a/protocols/meson.build |
39 |
++++ b/protocols/meson.build |
40 |
+@@ -29,7 +29,7 @@ protocols = [ |
41 |
+ ['pointer-constraints-unstable-v1.xml'], |
42 |
+ ['tablet-unstable-v2.xml'], |
43 |
+ ['idle.xml'], |
44 |
+- [hl_protocol_dir, 'protocols/hyprland-toplevel-export-v1.xml'] |
45 |
++ ['hyprland-toplevel-export-v1.xml'] |
46 |
+ ] |
47 |
+ wl_protos_src = [] |
48 |
+ wl_protos_headers = [] |
49 |
|
50 |
diff --git a/gui-wm/hyprland/hyprland-0.21.0.ebuild b/gui-wm/hyprland/hyprland-0.21.0-r1.ebuild |
51 |
similarity index 87% |
52 |
rename from gui-wm/hyprland/hyprland-0.21.0.ebuild |
53 |
rename to gui-wm/hyprland/hyprland-0.21.0-r1.ebuild |
54 |
index 3901b7500..3669168cc 100644 |
55 |
--- a/gui-wm/hyprland/hyprland-0.21.0.ebuild |
56 |
+++ b/gui-wm/hyprland/hyprland-0.21.0-r1.ebuild |
57 |
@@ -11,7 +11,7 @@ HOMEPAGE="https://github.com/hyprwm/Hyprland/releases" |
58 |
PROTOCOMMIT=301733ae466b229066ba15a53e6d8b91c5dcef5b |
59 |
WLRCOMMIT=dc7cc98cf21a8dc19ab8895505500e3700646af0 |
60 |
CONTRIBCOMMIT=37c8121f98d76f57caa00dd7106877876e0d7483 |
61 |
-SRC_URI="https://github.com/hyprwm/${PN^}/archive/v${PV}beta.tar.gz -> ${P}.tar.gz |
62 |
+SRC_URI="https://github.com/hyprwm/${PN^}/archive/v${PV}beta.tar.gz -> ${PF}.tar.gz |
63 |
https://github.com/hyprwm/hyprland-protocols/archive/${PROTOCOMMIT}.tar.gz -> hyprland-protocols.tar.gz |
64 |
https://github.com/hyprwm/contrib/archive/${CONTRIBCOMMIT}.tar.gz -> contrib.tar.gz |
65 |
https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${WLRCOMMIT}/wlroots-${WLRCOMMIT}.tar.bz2 -> wlr.tar.bz2" |
66 |
@@ -48,9 +48,11 @@ RDEPEND=" |
67 |
x11-libs/libnotify |
68 |
) |
69 |
X? ( |
70 |
+ gui-libs/wlroots[x11-backend] |
71 |
x11-base/xwayland |
72 |
x11-libs/libxcb |
73 |
x11-libs/xcb-util-image |
74 |
+ x11-libs/xcb-util-renderutil |
75 |
x11-libs/xcb-util-wm |
76 |
) |
77 |
" |
78 |
@@ -60,6 +62,10 @@ BDEPEND=" |
79 |
shellevents? ( app-text/scdoc ) |
80 |
" |
81 |
|
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}/0.21.0-meson.patch" |
84 |
+) |
85 |
+ |
86 |
src_unpack() { |
87 |
default |
88 |
|
89 |
@@ -67,6 +73,8 @@ src_unpack() { |
90 |
rmdir "${S}/subprojects/hyprland-protocols" |
91 |
mv "${WORKDIR}/wlroots-${WLRCOMMIT}" "${S}/subprojects/wlroots" || die |
92 |
mv "${WORKDIR}/hyprland-protocols-${PROTOCOMMIT}" "${S}/subprojects/hyprland-protocols" || die |
93 |
+ # Workaround for https://github.com/hyprwm/Hyprland/issues/1207 |
94 |
+ cp "${S}/subprojects/hyprland-protocols/protocols/hyprland-toplevel-export-v1.xml" "${S}/protocols" || die |
95 |
} |
96 |
|
97 |
src_prepare() { |
98 |
@@ -89,7 +97,7 @@ src_configure() { |
99 |
} |
100 |
|
101 |
src_install() { |
102 |
- meson_src_install --skip-subprojects wlroots |
103 |
+ meson_src_install --skip-subprojects |
104 |
|
105 |
use grimblast && emake PREFIX="${ED}/usr" -C "${WORKDIR}/contrib-${CONTRIBCOMMIT}/grimblast" install |
106 |
use shellevents && emake PREFIX="${ED}/usr" -C "${WORKDIR}/contrib-${CONTRIBCOMMIT}/shellevents" install |