public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-wm/hyprland/
Date: Tue, 28 Feb 2023 00:35:11 +0000 (UTC)	[thread overview]
Message-ID: <1677544495.89de392ec167decd60c73a9dd924382d0981e8a7.julien@gentoo> (raw)

commit:     89de392ec167decd60c73a9dd924382d0981e8a7
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Tue Feb 28 00:34:55 2023 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Tue Feb 28 00:34:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=89de392e

gui-wm/hyprland: add 0.22.0

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 gui-wm/hyprland/Manifest               |   4 ++
 gui-wm/hyprland/hyprland-0.22.0.ebuild | 109 +++++++++++++++++++++++++++++++++
 gui-wm/hyprland/metadata.xml           |   1 +
 3 files changed, 114 insertions(+)

diff --git a/gui-wm/hyprland/Manifest b/gui-wm/hyprland/Manifest
index 030c8873f..f525a0101 100644
--- a/gui-wm/hyprland/Manifest
+++ b/gui-wm/hyprland/Manifest
@@ -1,4 +1,8 @@
+DIST contrib-0.22.0.tar.gz 11142 BLAKE2B 1d18956f69689eb737c079c3829ff47a47a36c05d151ad58a629621f2d6a0218368b2b41640d61dd670fb06f139c3c515ade9f4c301a8c4f82e70cf2d4a6b4e5 SHA512 655b9d98dc14205d5e42babbce2f89d63eb8f427db2a5fa7157c07d3021ea598cb3c4e5441a78f4a371b1e00bc32737263512ff137549c70bb5c09659a210b6d
 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-protocols-0.22.0.tar.gz 4858 BLAKE2B 565532803fe6975efdba621c9ef69e4a7c18f040a65818e9f0f61d1dda15a3927f4aca25972989172554d5be5332f014d57dc8e1d0bb207ea5ba64aaec0e65f2 SHA512 03e176149fb0749f63fc58aea1175bfed92f0a30895d17e022ebdf9bb6f786e3a1018244379d0a6d205c590b25eccba0d7bea273bb389dd1031fad3d8467ef23
 DIST hyprland-protocols.tar.gz 4858 BLAKE2B 565532803fe6975efdba621c9ef69e4a7c18f040a65818e9f0f61d1dda15a3927f4aca25972989172554d5be5332f014d57dc8e1d0bb207ea5ba64aaec0e65f2 SHA512 03e176149fb0749f63fc58aea1175bfed92f0a30895d17e022ebdf9bb6f786e3a1018244379d0a6d205c590b25eccba0d7bea273bb389dd1031fad3d8467ef23
+DIST wlr-0.22.0.tar.bz2 449752 BLAKE2B f28970353d0a2723543ac6cc1d1aca467d1d85ce19392156a4e569290dc886a0a917e19c5f2fea1cc7d7826563431c863ea8eb1380e471807322c60d2e21354d SHA512 656795ad0fd1e0a2955bb63f0770d476f90921a4c746a37829283b640358f74db6495b5eac9f6f0bddba9f4675e912bdf56c382d2c3df2af1007295821924b91
 DIST wlr.tar.bz2 448534 BLAKE2B 35ff3e316ce5fa5d444e623597fdc61f143aa07440b8821faecc131aa5376b4ed691e84511ef438dfe4d429941d09fe0ab2d403414fd6a91e54a5bef890a4d68 SHA512 98af3902be681b11989f7d0c3b147ef3e4ef27dd377dd74b4e2a5151be1eeb0ff99d7738f2be4050116a7233820b0bb4f581ae0229d44043bfbd0f6af59108d4

diff --git a/gui-wm/hyprland/hyprland-0.22.0.ebuild b/gui-wm/hyprland/hyprland-0.22.0.ebuild
new file mode 100644
index 000000000..f1f1798b6
--- /dev/null
+++ b/gui-wm/hyprland/hyprland-0.22.0.ebuild
@@ -0,0 +1,109 @@
+# 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=301733ae466b229066ba15a53e6d8b91c5dcef5b
+WLRCOMMIT=677a3f2f8847ed2de49dd60868f9d9487a546f58
+CONTRIBCOMMIT=d5c0c94d61ac600687382b2e0959864d6fbc84b8
+SRC_URI="https://github.com/hyprwm/${PN^}/archive/v${PV}beta.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://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${WLRCOMMIT}/wlroots-${WLRCOMMIT}.tar.bz2 \
+	-> wlr-${PV}.tar.bz2"
+S="${WORKDIR}/${PN^}-${PV}beta"
+
+KEYWORDS="~amd64"
+LICENSE="BSD"
+SLOT="0"
+IUSE="X grimblast scratchpad shellevents systemd"
+
+RDEPEND="
+	app-misc/jq
+	dev-libs/libevdev
+	dev-libs/libinput
+	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/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 )
+"
+
+PATCHES=(
+	"${FILESDIR}/0.21.0-meson.patch"
+)
+
+src_unpack() {
+	default
+
+	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
+	# 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 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 151d36f31..d9b138f69 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="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>
 </pkgmetadata>


             reply	other threads:[~2023-02-28  0:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-28  0:35 Julien Roy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-05-07 20:29 [gentoo-commits] repo/proj/guru:dev commit in: gui-wm/hyprland/ Julien Roy
2023-05-07 20:29 Julien Roy
2023-05-07 20:29 Julien Roy
2023-04-23 19:53 Julien Roy
2023-04-23 17:44 Julien Roy
2023-04-17  2:01 Julien Roy
2023-04-10  1:56 Julien Roy
2023-04-10  1:56 Julien Roy
2023-01-31 17:46 Julien Roy
2023-01-29 22:47 Julien Roy
2023-01-28 16:28 Julien Roy
2023-01-21 22:55 Julien Roy
2023-01-18  1:11 Julien Roy
2023-01-14 14:59 Julien Roy
2023-01-12  1:37 Julien Roy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1677544495.89de392ec167decd60c73a9dd924382d0981e8a7.julien@gentoo \
    --to=julien@jroy.ca \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox