From 3820b13ea92cf773440d95730314939e8187a684 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Tue, 10 Jan 2023 23:45:27 -0500 Subject: gui-wm/hyprland: use meson instead of cmake Signed-off-by: Julien Roy --- gui-wm/hyprland/Manifest | 1 + gui-wm/hyprland/hyprland-0.20.1.ebuild | 55 ++++++++++++++++++++-------------- gui-wm/hyprland/metadata.xml | 5 ++++ 3 files changed, 38 insertions(+), 23 deletions(-) diff --git a/gui-wm/hyprland/Manifest b/gui-wm/hyprland/Manifest index 93b660d..7ee4bd0 100644 --- a/gui-wm/hyprland/Manifest +++ b/gui-wm/hyprland/Manifest @@ -1,3 +1,4 @@ +DIST contrib.tar.gz 7408 BLAKE2B 03c3733a0b7b747f759b1b13f6fbd5342bc5cdea31f142730f69af85abf576f2c35bd7ea01e1aafba8ad7ae63505d7a9372279538ffb8cea3d61839e2bf4ea21 SHA512 671ea675b8f3de9b6ff8cce62297b5c14947b458de88ffa4bca5c51aafb66fc475782d0ed609a18e5281147f89aa531d4480ee46bb888f98651e4620f58318b4 DIST hyprland-0.20.1.tar.gz 708773 BLAKE2B 9ade26890c269d36212ca7eee4946d152a222cdbd67e508e10a61b2bc3f63eff36a3a385b90126db951aa6a83568342fc91cd1e3cdc3ed40516e3b31acef07b8 SHA512 37f7d1279f4b1d8e441842287dd812e5118d0a54a7e660cb1035970c8b651f889292e8bd065f019a79397e99a0c160aa55375709b7357ef888ca02d6cd273d6a DIST hyprland-protocols.tar.gz 4858 BLAKE2B 565532803fe6975efdba621c9ef69e4a7c18f040a65818e9f0f61d1dda15a3927f4aca25972989172554d5be5332f014d57dc8e1d0bb207ea5ba64aaec0e65f2 SHA512 03e176149fb0749f63fc58aea1175bfed92f0a30895d17e022ebdf9bb6f786e3a1018244379d0a6d205c590b25eccba0d7bea273bb389dd1031fad3d8467ef23 DIST wlr.tar.bz2 448534 BLAKE2B 35ff3e316ce5fa5d444e623597fdc61f143aa07440b8821faecc131aa5376b4ed691e84511ef438dfe4d429941d09fe0ab2d403414fd6a91e54a5bef890a4d68 SHA512 98af3902be681b11989f7d0c3b147ef3e4ef27dd377dd74b4e2a5151be1eeb0ff99d7738f2be4050116a7233820b0bb4f581ae0229d44043bfbd0f6af59108d4 diff --git a/gui-wm/hyprland/hyprland-0.20.1.ebuild b/gui-wm/hyprland/hyprland-0.20.1.ebuild index d0f49a1..d7c424b 100644 --- a/gui-wm/hyprland/hyprland-0.20.1.ebuild +++ b/gui-wm/hyprland/hyprland-0.20.1.ebuild @@ -3,27 +3,24 @@ EAPI=8 -inherit cmake toolchain-funcs +inherit meson toolchain-funcs DESCRIPTION="A dynamic tiling Wayland compositor that doesn't sacrifice on its looks" HOMEPAGE="https://github.com/hyprwm/Hyprland/releases" -if [[ "${PV}" == *9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/hyprwm/Hyprland" -else - PROTOCOMMIT=301733ae466b229066ba15a53e6d8b91c5dcef5b - WLRCOMMIT=dc7cc98cf21a8dc19ab8895505500e3700646af0 - SRC_URI="https://github.com/hyprwm/Hyprland/archive/v${PV}beta.tar.gz -> ${P}.tar.gz - https://github.com/hyprwm/hyprland-protocols/archive/${PROTOCOMMIT}.tar.gz -> hyprland-protocols.tar.gz - https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${WLRCOMMIT}/wlroots-${WLRCOMMIT}.tar.bz2 -> wlr.tar.bz2" - KEYWORDS="~amd64" - S="${WORKDIR}/Hyprland-${PV}beta" -fi +PROTOCOMMIT=301733ae466b229066ba15a53e6d8b91c5dcef5b +WLRCOMMIT=dc7cc98cf21a8dc19ab8895505500e3700646af0 +CONTRIBCOMMIT=37c8121f98d76f57caa00dd7106877876e0d7483 +SRC_URI="https://github.com/hyprwm/Hyprland/archive/v${PV}beta.tar.gz -> ${P}.tar.gz + https://github.com/hyprwm/hyprland-protocols/archive/${PROTOCOMMIT}.tar.gz -> hyprland-protocols.tar.gz + https://github.com/hyprwm/contrib/archive/${CONTRIBCOMMIT}.tar.gz -> contrib.tar.gz + https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${WLRCOMMIT}/wlroots-${WLRCOMMIT}.tar.bz2 -> wlr.tar.bz2" +S="${WORKDIR}/Hyprland-${PV}beta" +KEYWORDS="~amd64" LICENSE="BSD" SLOT="0" -IUSE="X systemd" +IUSE="X grimblast shellevents systemd" RDEPEND=" dev-libs/libevdev @@ -45,6 +42,13 @@ RDEPEND=" x11-libs/libxkbcommon x11-libs/pixman virtual/libudev + grimblast? ( + app-misc/jq + gui-apps/grim + gui-apps/slurp + gui-apps/wl-clipboard + x11-libs/libnotify + ) X? ( x11-base/xwayland x11-libs/libxcb @@ -53,16 +57,18 @@ RDEPEND=" ) " DEPEND="${RDEPEND}" +BDEPEND=" + grimblast? ( app-text/scdoc ) + shellevents? ( app-text/scdoc ) +" src_unpack() { default - if [[ "${PV}" != *9999* ]]; then - rmdir "${S}/subprojects/wlroots" - rmdir "${S}/subprojects/hyprland-protocols" - mv "${WORKDIR}/wlroots-${WLRCOMMIT}" "${S}/subprojects/wlroots" || die - mv "${WORKDIR}/hyprland-protocols-${PROTOCOMMIT}" "${S}/subprojects/hyprland-protocols" || die - fi + rmdir "${S}/subprojects/wlroots" + rmdir "${S}/subprojects/hyprland-protocols" + mv "${WORKDIR}/wlroots-${WLRCOMMIT}" "${S}/subprojects/wlroots" || die + mv "${WORKDIR}/hyprland-protocols-${PROTOCOMMIT}" "${S}/subprojects/hyprland-protocols" || die } src_configure() { @@ -71,7 +77,10 @@ src_configure() { die "Hyprland requires >=sys-devel/gcc-12.1.0 or >=sys-devel/clang-15.0.0 to build" fi - mycmakeargs+=( -DNO_XWAYLAND:STRING=$(usex X false true) ) - mycmakeargs+=( -DNO_SYSTEMD:STRING=$(usex systemd false true) ) - cmake_src_configure + local emesonargs=( + $(meson_feature X xwayland) + $(meson_feature systemd) + ) + + meson_src_configure } diff --git a/gui-wm/hyprland/metadata.xml b/gui-wm/hyprland/metadata.xml index 88aac4f..151d36f 100644 --- a/gui-wm/hyprland/metadata.xml +++ b/gui-wm/hyprland/metadata.xml @@ -11,6 +11,11 @@ https://github.com/hyprwm/Hyprland/issues hyprwm/Hyprland hyprwm/hyprland-protocols + hyprwm/contrib wlroots/wlroots + + Install 'grimblast': a Hyprland version of the sway script for taking screenshots + Install 'shellevents': Invoke shell functions in response to Hyprland socket2 events. + -- cgit v1.2.3