aboutsummaryrefslogtreecommitdiff
path: root/gui-wm
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2023-04-09 21:56:07 -0400
committerJulien Roy <julien@jroy.ca>2023-04-09 21:56:07 -0400
commitbf5e15969fad01fe432e91bebf6435f078ab0a83 (patch)
tree8ecad8702a6d42886ad1161435fd51fbe1b76e16 /gui-wm
parentnet-im/whatsapp-for-linux: add 1.6.2 (diff)
downloadguru-bf5e15969fad01fe432e91bebf6435f078ab0a83.tar.gz
guru-bf5e15969fad01fe432e91bebf6435f078ab0a83.tar.bz2
guru-bf5e15969fad01fe432e91bebf6435f078ab0a83.zip
gui-wm/hyprland: add 0.24.1
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'gui-wm')
-rw-r--r--gui-wm/hyprland/Manifest5
-rw-r--r--gui-wm/hyprland/hyprland-0.24.1.ebuild113
-rw-r--r--gui-wm/hyprland/metadata.xml1
3 files changed, 119 insertions, 0 deletions
diff --git a/gui-wm/hyprland/Manifest b/gui-wm/hyprland/Manifest
index f525a0101..c7d04e422 100644
--- a/gui-wm/hyprland/Manifest
+++ b/gui-wm/hyprland/Manifest
@@ -1,8 +1,13 @@
DIST contrib-0.22.0.tar.gz 11142 BLAKE2B 1d18956f69689eb737c079c3829ff47a47a36c05d151ad58a629621f2d6a0218368b2b41640d61dd670fb06f139c3c515ade9f4c301a8c4f82e70cf2d4a6b4e5 SHA512 655b9d98dc14205d5e42babbce2f89d63eb8f427db2a5fa7157c07d3021ea598cb3c4e5441a78f4a371b1e00bc32737263512ff137549c70bb5c09659a210b6d
+DIST contrib-0.24.1.tar.gz 12262 BLAKE2B dcb971c345ada8bef50719fdd3ce081641c1eb92d19ced174f0a6a961d68785a130ff1b0c4cca1685983b02a6af3bfafa3e6a03567ce7280fa0bbc1e57802b3b SHA512 266d5e1dd258b1a0e1487794f06a8480a65c161c829ac59cc99632f0488dbc261390816a06a574a694c76be4374ac59bdcce8f473be80481c47ff52347956ba2
DIST contrib.tar.gz 7408 BLAKE2B 03c3733a0b7b747f759b1b13f6fbd5342bc5cdea31f142730f69af85abf576f2c35bd7ea01e1aafba8ad7ae63505d7a9372279538ffb8cea3d61839e2bf4ea21 SHA512 671ea675b8f3de9b6ff8cce62297b5c14947b458de88ffa4bca5c51aafb66fc475782d0ed609a18e5281147f89aa531d4480ee46bb888f98651e4620f58318b4
DIST hyprland-0.21.0-r1.tar.gz 714570 BLAKE2B 6576765ec28e918be9aefa1252ad70019e2d77ae6f07b61161692ed1d0016d52376f1aae30b4200ae003585ca8ff907e810c635dc639d360f4f22be52d313b0d SHA512 a1fcd015be10267503d9ca529a538a0eebe8c197e91134de8377cca150efd99d0e51e7c9751ef8e81587fe04a497edff9d18b0e9dc5751a0f3eb4b3775c8ecad
DIST hyprland-0.22.0.tar.gz 723020 BLAKE2B 54f682c5efd0061eb2ee1919be994c06c92e832b258ef4286086a6e0d5c5e0d6006f624103ddb05c722fd2b5db30557a489a06b8d11dd0f13bd77b1829317700 SHA512 e72ec2037ce23ba0d5d9af75d9ef2448b813a3e8862932e6780c2649e0df74cb9ff13cdaf41c5a09b06b3e51a09b48a13cbf923d73feaa5d5836ca023a7a551f
+DIST hyprland-0.24.1.tar.gz 758442 BLAKE2B 5bdbf0895f731515e3913eb82468dafac666b2bbe80cc611519698aefa68b6e01b6cc39115b69492d5d01f8bd62f7fd1e414297af72856f698ddbccde822fc1a SHA512 47e093e4afedac50b7d28cc8495d237369852cefac99bce1ed3c83935013a55ecd543ac3b337c6a6c711abb2a4ed745b8a33f65ba83fe8ed99edc1c360f3c2d4
DIST hyprland-protocols-0.22.0.tar.gz 4858 BLAKE2B 565532803fe6975efdba621c9ef69e4a7c18f040a65818e9f0f61d1dda15a3927f4aca25972989172554d5be5332f014d57dc8e1d0bb207ea5ba64aaec0e65f2 SHA512 03e176149fb0749f63fc58aea1175bfed92f0a30895d17e022ebdf9bb6f786e3a1018244379d0a6d205c590b25eccba0d7bea273bb389dd1031fad3d8467ef23
+DIST hyprland-protocols-0.24.1.tar.gz 6343 BLAKE2B cffa25c1fbac992db9aee57956615c2a5f8a6e90150d86246218e6d346e566a43527f56cab08b07359bd2f56b1e02b741fb0dbb37ec35fbadd22dfdb2006d3b0 SHA512 f8534c0f6562ce3c770ed9c79b8b78504d6f3aa75001c74ecfa5418af939e88a020ca1cef08d20c62e73c764d66452b5ce212a0f0d2e9a3aaba635ee80b142c5
DIST hyprland-protocols.tar.gz 4858 BLAKE2B 565532803fe6975efdba621c9ef69e4a7c18f040a65818e9f0f61d1dda15a3927f4aca25972989172554d5be5332f014d57dc8e1d0bb207ea5ba64aaec0e65f2 SHA512 03e176149fb0749f63fc58aea1175bfed92f0a30895d17e022ebdf9bb6f786e3a1018244379d0a6d205c590b25eccba0d7bea273bb389dd1031fad3d8467ef23
+DIST udis-0.24.1.tar.gz 116983 BLAKE2B b1dc4f5b9f4227afcfd353868709e1d31a86185bcafd0d2219e44b7946e3036cbde0ada2d5c1558b4eb49d5da1ee6e14210682f72fda873732dfc4813f015e36 SHA512 64fc65b7388db25b6a8b008b51e274753e5e8b1dbd48126bdd676a3d0276ce37a4140bc5d08d6499ab5e61f51109eb8b9d1b14588bf8dc6d44d1642305403a82
DIST wlr-0.22.0.tar.bz2 449752 BLAKE2B f28970353d0a2723543ac6cc1d1aca467d1d85ce19392156a4e569290dc886a0a917e19c5f2fea1cc7d7826563431c863ea8eb1380e471807322c60d2e21354d SHA512 656795ad0fd1e0a2955bb63f0770d476f90921a4c746a37829283b640358f74db6495b5eac9f6f0bddba9f4675e912bdf56c382d2c3df2af1007295821924b91
+DIST wlr-0.24.1.tar.bz2 459208 BLAKE2B a9a904f0699b3557554c0f93a4a407d013ee1749459f9d0461067439a5b688e4ec8ca1ddc000e7037a5ae26ac99f459f31c2b30e4445cbe9773a8c0e0d43f08a SHA512 10639493371e208d47237ca76f6c622d12f7e3c32dbd27cfa62fd6c87a0e6326b9be1db980ec891da06500314859ab9166c773923ac59afef5c9740d3a5a16b0
DIST wlr.tar.bz2 448534 BLAKE2B 35ff3e316ce5fa5d444e623597fdc61f143aa07440b8821faecc131aa5376b4ed691e84511ef438dfe4d429941d09fe0ab2d403414fd6a91e54a5bef890a4d68 SHA512 98af3902be681b11989f7d0c3b147ef3e4ef27dd377dd74b4e2a5151be1eeb0ff99d7738f2be4050116a7233820b0bb4f581ae0229d44043bfbd0f6af59108d4
diff --git a/gui-wm/hyprland/hyprland-0.24.1.ebuild b/gui-wm/hyprland/hyprland-0.24.1.ebuild
new file mode 100644
index 000000000..637c515c4
--- /dev/null
+++ b/gui-wm/hyprland/hyprland-0.24.1.ebuild
@@ -0,0 +1,113 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson toolchain-funcs
+
+DESCRIPTION="A dynamic tiling Wayland compositor that doesn't sacrifice on its looks"
+HOMEPAGE="https://github.com/hyprwm/Hyprland/releases"
+
+PROTOCOMMIT=4d29e48433270a2af06b8bc711ca1fe5109746cd
+WLRCOMMIT=7abda952d0000b72d240fe1d41457b9288f0b6e5
+CONTRIBCOMMIT=1af47a008e850c595aeddc83bb3f04fd81935caa
+UDISCOMMIT=5336633af70f3917760a6d441ff02d93477b0c86
+SRC_URI="https://github.com/hyprwm/${PN^}/archive/v${PV}.tar.gz -> ${PF}.tar.gz
+ https://github.com/hyprwm/hyprland-protocols/archive/${PROTOCOMMIT}.tar.gz \
+ -> hyprland-protocols-${PV}.tar.gz
+ https://github.com/hyprwm/contrib/archive/${CONTRIBCOMMIT}.tar.gz \
+ -> contrib-${PV}.tar.gz
+ https://github.com/canihavesomecoffee/udis86/archive/${UDISCOMMIT}.tar.gz \
+ -> udis-${PV}.tar.gz
+ https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${WLRCOMMIT}/wlroots-${WLRCOMMIT}.tar.bz2 \
+ -> wlr-${PV}.tar.bz2"
+S="${WORKDIR}/${PN^}-${PV}"
+
+KEYWORDS="~amd64"
+LICENSE="BSD"
+SLOT="0"
+IUSE="X grimblast legacy-renderer scratchpad shellevents systemd"
+
+RDEPEND="
+ app-misc/jq
+ dev-libs/libevdev
+ dev-libs/libinput
+ dev-libs/libliftoff
+ dev-libs/wayland
+ >=dev-libs/wayland-protocols-1.31
+ dev-util/glslang
+ dev-util/vulkan-headers
+ gui-libs/gtk-layer-shell
+ gui-libs/wlroots[X?]
+ media-libs/libdisplay-info
+ media-libs/libglvnd[X?]
+ media-libs/mesa[gles2,wayland,X?]
+ media-libs/vulkan-loader
+ x11-base/xcb-proto
+ x11-libs/cairo
+ x11-libs/libdrm
+ x11-libs/libxkbcommon
+ x11-libs/pixman
+ x11-misc/xkeyboard-config
+ virtual/libudev
+ grimblast? (
+ gui-apps/grim
+ gui-apps/slurp
+ gui-apps/wl-clipboard
+ x11-libs/libnotify
+ )
+ X? (
+ gui-libs/wlroots[x11-backend]
+ x11-base/xwayland
+ x11-libs/libxcb
+ x11-libs/xcb-util-image
+ x11-libs/xcb-util-renderutil
+ x11-libs/xcb-util-wm
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ grimblast? ( app-text/scdoc )
+ shellevents? ( app-text/scdoc )
+"
+
+src_unpack() {
+ default
+
+ rmdir "${S}/subprojects/wlroots"
+ rmdir "${S}/subprojects/hyprland-protocols"
+ rmdir "${S}/subprojects/udis86"
+ mv "${WORKDIR}/wlroots-${WLRCOMMIT}" "${S}/subprojects/wlroots" || die
+ mv "${WORKDIR}/hyprland-protocols-${PROTOCOMMIT}" "${S}/subprojects/hyprland-protocols" || die
+ mv "${WORKDIR}/udis86-${UDISCOMMIT}" "${S}/subprojects/udis86" || die
+ # Workaround for https://github.com/hyprwm/Hyprland/issues/1207
+ cp "${S}/subprojects/hyprland-protocols/protocols/hyprland-toplevel-export-v1.xml" "${S}/protocols" || die
+}
+
+src_prepare() {
+ STDLIBVER=$(echo '#include <string>' | $(tc-getCXX) -x c++ -dM -E - | \
+ grep GLIBCXX_RELEASE | sed 's/.*\([1-9][0-9]\)/\1/')
+ if ! [[ ${STDLIBVER} -ge 12 ]]; then
+ die "Hyprland requires >=sys-devel/gcc-12.1.0 to build"
+ fi
+
+ default
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_feature legacy-renderer legacy_renderer)
+ $(meson_feature X xwayland)
+ $(meson_feature systemd)
+ )
+
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install --skip-subprojects
+
+ use grimblast && emake PREFIX="${ED}/usr" -C "${WORKDIR}/contrib-${CONTRIBCOMMIT}/grimblast" install
+ use scratchpad && emake PREFIX="${ED}/usr" -C "${WORKDIR}/contrib-${CONTRIBCOMMIT}/scratchpad" install
+ use shellevents && emake PREFIX="${ED}/usr" -C "${WORKDIR}/contrib-${CONTRIBCOMMIT}/shellevents" install
+}
diff --git a/gui-wm/hyprland/metadata.xml b/gui-wm/hyprland/metadata.xml
index d9b138f69..5acac2587 100644
--- a/gui-wm/hyprland/metadata.xml
+++ b/gui-wm/hyprland/metadata.xml
@@ -16,6 +16,7 @@
</upstream>
<use>
<flag name="grimblast">Install 'grimblast': a Hyprland version of the sway script for taking screenshots</flag>
+ <flag name="legacy-renderer">Enable legacy renderer</flag>
<flag name="scratchpad">Install 'scratchpad': a Bash script that sends focused window to a special workspace</flag>
<flag name="shellevents">Install 'shellevents': Invoke shell functions in response to Hyprland socket2 events.</flag>
</use>