public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: gui-wm/river/, gui-wm/river/files/
@ 2024-08-04 16:51 Daichi Yamamoto
  0 siblings, 0 replies; 2+ messages in thread
From: Daichi Yamamoto @ 2024-08-04 16:51 UTC (permalink / raw
  To: gentoo-commits

commit:     8547c7f8e231a8b74eaab47248b90e89abc4c8a8
Author:     Daichi Yamamoto <dev <AT> dyama <DOT> net>
AuthorDate: Sun Aug  4 11:37:46 2024 +0000
Commit:     Daichi Yamamoto <dev <AT> dyama <DOT> net>
CommitDate: Sun Aug  4 16:19:55 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8547c7f8

gui-wm/river: update zig src_unpack()

Signed-off-by: Daichi Yamamoto <dev <AT> dyama.net>

 gui-wm/river/files/river-0.3.5-build-zig-zon.patch | 27 --------------------
 gui-wm/river/files/river-0.3.5-zig-0.12.0.patch    |  4 +--
 gui-wm/river/metadata.xml                          |  1 -
 gui-wm/river/river-0.3.5.ebuild                    | 29 ++++++++++++++--------
 4 files changed, 20 insertions(+), 41 deletions(-)

diff --git a/gui-wm/river/files/river-0.3.5-build-zig-zon.patch b/gui-wm/river/files/river-0.3.5-build-zig-zon.patch
deleted file mode 100644
index ae916f5b6..000000000
--- a/gui-wm/river/files/river-0.3.5-build-zig-zon.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- a/build.zig.zon
-+++ b/build.zig.zon
-@@ -4,20 +4,16 @@
-     .paths = .{""},
-     .dependencies = .{
-         .@"zig-pixman" = .{
--            .url = "https://codeberg.org/ifreund/zig-pixman/archive/v0.2.0.tar.gz",
--            .hash = "12209db20ce873af176138b76632931def33a10539387cba745db72933c43d274d56",
-+            .path = "deps/zig-pixman",
-         },
-         .@"zig-wayland" = .{
--            .url = "https://codeberg.org/ifreund/zig-wayland/archive/v0.2.0.tar.gz",
--            .hash = "1220687c8c47a48ba285d26a05600f8700d37fc637e223ced3aa8324f3650bf52242",
-+            .path = "deps/zig-wayland",
-         },
-         .@"zig-wlroots" = .{
--            .url = "https://codeberg.org/ifreund/zig-wlroots/archive/v0.18.0.tar.gz",
--            .hash = "12204d789e17c158971f69c7b900e8d8f288e7b9e42b2242f3adfbca57e8266d848f",
-+            .path = "deps/zig-wlroots",
-         },
-         .@"zig-xkbcommon" = .{
--            .url = "https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.2.0.tar.gz",
--            .hash = "1220c90b2228d65fd8427a837d31b0add83e9fade1dcfa539bb56fd06f1f8461605f",
-+            .path = "deps/zig-xkbcommon",
-         },
-     },
- }

diff --git a/gui-wm/river/files/river-0.3.5-zig-0.12.0.patch b/gui-wm/river/files/river-0.3.5-zig-0.12.0.patch
index 88442d220..d974d9b67 100644
--- a/gui-wm/river/files/river-0.3.5-zig-0.12.0.patch
+++ b/gui-wm/river/files/river-0.3.5-zig-0.12.0.patch
@@ -1,6 +1,6 @@
 zig-wayland-0.2.0
---- a/deps/zig-wayland/src/scanner.zig
-+++ b/deps/zig-wayland/src/scanner.zig
+--- a/deps/p/1220687c8c47a48ba285d26a05600f8700d37fc637e223ced3aa8324f3650bf52242/src/scanner.zig
++++ b/deps/p/1220687c8c47a48ba285d26a05600f8700d37fc637e223ced3aa8324f3650bf52242/src/scanner.zig
 @@ -528,7 +528,7 @@
      // These interfaces are special in that their version may never be increased.
      // That is, they are pinned to version 1 forever. They also may break the

diff --git a/gui-wm/river/metadata.xml b/gui-wm/river/metadata.xml
index 9d512004a..44c7580c5 100644
--- a/gui-wm/river/metadata.xml
+++ b/gui-wm/river/metadata.xml
@@ -8,7 +8,6 @@
 	<use>
 		<flag name="fish-completion">Enable fish-completion support</flag>
 		<flag name="llvm">Use LLVM Zig backend</flag>
-		<flag name="xwayland">Enable xwayland support</flag>
 	</use>
 	<upstream>
 		<remote-id type="codeberg">river/river</remote-id>

diff --git a/gui-wm/river/river-0.3.5.ebuild b/gui-wm/river/river-0.3.5.ebuild
index 068cdf626..631d339a4 100644
--- a/gui-wm/river/river-0.3.5.ebuild
+++ b/gui-wm/river/river-0.3.5.ebuild
@@ -18,27 +18,31 @@ SRC_URI="
 S="${WORKDIR}/${PN}"
 
 PATCHES=(
-	"${FILESDIR}/${P}-build-zig-zon.patch"
 	"${FILESDIR}/${P}-zig-0.12.0.patch"
 )
 
 LICENSE="GPL-3+"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="+llvm +man pie xwayland bash-completion zsh-completion fish-completion"
+IUSE="+X +llvm +man pie bash-completion zsh-completion fish-completion"
 
 EZIG_MIN="0.12"
 EZIG_MAX_EXCLUSIVE="0.13"
 
 DEPEND="
-	|| ( dev-lang/zig-bin:${EZIG_MIN} dev-lang/zig:${EZIG_MIN} )
+	dev-libs/libevdev
 	dev-libs/wayland
-	gui-libs/wlroots:0.18
-	xwayland? ( x11-base/xwayland )
-	x11-libs/libxkbcommon
+	dev-libs/wayland-protocols
+	gui-libs/wlroots:0.18=[X?]
+	x11-libs/libxkbcommon:=[X?]
 	x11-libs/pixman
 "
 RDEPEND="${DEPEND}"
+BDEPEND="
+	|| ( dev-lang/zig-bin:${EZIG_MIN} dev-lang/zig:${EZIG_MIN} )
+	man? ( app-text/scdoc )
+	virtual/pkgconfig
+"
 
 DOCS=( README.md )
 
@@ -108,16 +112,19 @@ ezig() {
 src_unpack() {
 	default
 
+	# unpacking into ${S} to patch zig-wayland-0.2.0
+	# without patches, it would be better using ${WORKDIR}/deps
 	mkdir "${S}/deps" || die
-	mv zig-pixman "${S}/deps" || die
-	mv zig-wayland "${S}/deps" || die
-	mv zig-wlroots "${S}/deps" || die
-	mv zig-xkbcommon "${S}/deps" || die
+	ezig fetch --global-cache-dir "${S}/deps" "${DISTDIR}/zig-pixman-0.2.0.tar.gz"
+	ezig fetch --global-cache-dir "${S}/deps" "${DISTDIR}/zig-wayland-0.2.0.tar.gz"
+	ezig fetch --global-cache-dir "${S}/deps" "${DISTDIR}/zig-wlroots-0.18.0.tar.gz"
+	ezig fetch --global-cache-dir "${S}/deps" "${DISTDIR}/zig-xkbcommon-0.2.0.tar.gz"
 }
 
 src_configure() {
 	export ZBS_ARGS=(
 		--prefix usr/
+		--system "${S}/deps/p"
 		-Doptimize=ReleaseSafe
 
 		-Dpie=$(usex pie true false)
@@ -126,7 +133,7 @@ src_configure() {
 		-Dbash-completion=$(usex bash-completion true false)
 		-Dzsh-completion=$(usex zsh-completion true false)
 		-Dfish-completion=$(usex fish-completion true false)
-		-Dxwayland=$(usex xwayland true false)
+		-Dxwayland=$(usex X true false)
 	)
 }
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: gui-wm/river/, gui-wm/river/files/
@ 2024-08-23 10:40 Eric Joldasov
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Joldasov @ 2024-08-23 10:40 UTC (permalink / raw
  To: gentoo-commits

commit:     5f8a4e0b0720c964e18aa7791ae454f0dfb0eff9
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Fri Aug 23 10:24:14 2024 +0000
Commit:     Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me>
CommitDate: Fri Aug 23 10:24:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5f8a4e0b

gui-wm/river: drop 0.3.5

Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net>

 gui-wm/river/files/river-0.3.5-zig-0.12.0.patch |  27 -----
 gui-wm/river/river-0.3.5.ebuild                 | 154 ------------------------
 2 files changed, 181 deletions(-)

diff --git a/gui-wm/river/files/river-0.3.5-zig-0.12.0.patch b/gui-wm/river/files/river-0.3.5-zig-0.12.0.patch
deleted file mode 100644
index d974d9b67..000000000
--- a/gui-wm/river/files/river-0.3.5-zig-0.12.0.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-zig-wayland-0.2.0
---- a/deps/p/1220687c8c47a48ba285d26a05600f8700d37fc637e223ced3aa8324f3650bf52242/src/scanner.zig
-+++ b/deps/p/1220687c8c47a48ba285d26a05600f8700d37fc637e223ced3aa8324f3650bf52242/src/scanner.zig
-@@ -528,7 +528,7 @@
-     // These interfaces are special in that their version may never be increased.
-     // That is, they are pinned to version 1 forever. They also may break the
-     // normally required tree object creation hierarchy.
--    const version_locked_interfaces = std.StaticStringMap(void).initComptime(.{
-+    const version_locked_interfaces = std.ComptimeStringMap(void, .{
-         .{"wl_display"},
-         .{"wl_registry"},
-         .{"wl_callback"},
-
-river-0.3.5
---- a/river/command.zig
-+++ b/river/command.zig
-@@ -36,9 +36,8 @@
-     vertical,
- };
-
--const command_impls = std.StaticStringMap(
-+const command_impls = std.ComptimeStringMap(
-     *const fn (*Seat, []const [:0]const u8, *?[]const u8) Error!void,
--).initComptime(
-     .{
-         // zig fmt: off
-         .{ "attach-mode",               @import("command/attach_mode.zig").defaultAttachMode },

diff --git a/gui-wm/river/river-0.3.5.ebuild b/gui-wm/river/river-0.3.5.ebuild
deleted file mode 100644
index 65e6d4373..000000000
--- a/gui-wm/river/river-0.3.5.ebuild
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit edo
-
-DESCRIPTION="A dynamic tiling Wayland compositor"
-HOMEPAGE="https://isaacfreund.com/software/river/"
-
-SRC_URI="
-	https://codeberg.org/river/river/archive/v${PV}.tar.gz -> ${P}.tar.gz
-	https://codeberg.org/ifreund/zig-pixman/archive/v0.2.0.tar.gz -> zig-pixman-0.2.0.tar.gz
-	https://codeberg.org/ifreund/zig-wayland/archive/v0.2.0.tar.gz -> zig-wayland-0.2.0.tar.gz
-	https://codeberg.org/ifreund/zig-wlroots/archive/v0.18.0.tar.gz -> zig-wlroots-0.18.0.tar.gz
-	https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.2.0.tar.gz -> zig-xkbcommon-0.2.0.tar.gz
-"
-S="${WORKDIR}/${PN}"
-
-PATCHES=(
-	"${FILESDIR}/${P}-zig-0.12.0.patch"
-)
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="+X +llvm +man pie"
-
-EZIG_MIN="0.12"
-EZIG_MAX_EXCLUSIVE="0.13"
-
-DEPEND="
-	dev-libs/libevdev
-	dev-libs/wayland
-	dev-libs/wayland-protocols
-	gui-libs/wlroots:0.18=[X?]
-	x11-libs/libxkbcommon:=[X?]
-	x11-libs/pixman
-"
-RDEPEND="${DEPEND}"
-BDEPEND="
-	|| ( dev-lang/zig-bin:${EZIG_MIN} dev-lang/zig:${EZIG_MIN} )
-	man? ( app-text/scdoc )
-	virtual/pkgconfig
-"
-
-DOCS=( README.md )
-
-# https://github.com/ziglang/zig/issues/3382
-QA_FLAGS_IGNORED="usr/bin/*"
-
-# Many thanks to Florian Schmaus (Flowdalic)!
-# Adapted from https://github.com/gentoo/gentoo/pull/28986
-# Set the EZIG environment variable.
-zig-set_EZIG() {
-	[[ -n ${EZIG} ]] && return
-
-	local candidate selected selected_ver ver
-
-	for candidate in "${BROOT}"/usr/bin/zig-*; do
-		if [[ ! -L ${candidate} || ${candidate} != */zig?(-bin)-+([0-9.]) ]]; then
-			continue
-		fi
-
-		ver=${candidate##*-}
-
-		if [[ -n ${EZIG_EXACT_VER} ]]; then
-			ver_test "${ver}" -ne "${EZIG_EXACT_VER}" && continue
-
-			selected="${candidate}"
-			selected_ver="${ver}"
-			break
-		fi
-
-		if [[ -n ${EZIG_MIN} ]] \
-			   && ver_test "${ver}" -lt "${EZIG_MIN}"; then
-			# Candidate does not satisfy EZIG_MIN condition.
-			continue
-		fi
-
-		if [[ -n ${EZIG_MAX_EXCLUSIVE} ]] \
-			   && ver_test "${ver}" -ge "${EZIG_MAX_EXCLUSIVE}"; then
-			# Candidate does not satisfy EZIG_MAX_EXCLUSIVE condition.
-			continue
-		fi
-
-		if [[ -n ${selected_ver} ]] \
-			   && ver_test "${selected_ver}" -gt "${ver}"; then
-			# Candidate is older than the currently selected candidate.
-			continue
-		fi
-
-		selected="${candidate}"
-		selected_ver="${ver}"
-	done
-
-	if [[ -z ${selected} ]]; then
-		die "Could not find (suitable) zig installation in ${BROOT}/usr/bin"
-	fi
-
-	export EZIG="${selected}"
-	export EZIG_VER="${selected_ver}"
-}
-
-# Invoke zig with the optionally provided arguments.
-ezig() {
-	zig-set_EZIG
-
-	edo "${EZIG}" "${@}"
-}
-
-src_unpack() {
-	default
-
-	# unpacking into ${S} to patch zig-wayland-0.2.0
-	# without patches, it would be better using ${WORKDIR}/deps
-	mkdir "${S}/deps" || die
-	ezig fetch --global-cache-dir "${S}/deps" "${DISTDIR}/zig-pixman-0.2.0.tar.gz"
-	ezig fetch --global-cache-dir "${S}/deps" "${DISTDIR}/zig-wayland-0.2.0.tar.gz"
-	ezig fetch --global-cache-dir "${S}/deps" "${DISTDIR}/zig-wlroots-0.18.0.tar.gz"
-	ezig fetch --global-cache-dir "${S}/deps" "${DISTDIR}/zig-xkbcommon-0.2.0.tar.gz"
-}
-
-src_configure() {
-	export ZBS_ARGS=(
-		--prefix usr/
-		--system "${S}/deps/p"
-		-Doptimize=ReleaseSafe
-
-		-Dpie=$(usex pie true false)
-		-Dno-llvm=$(usex llvm false true)
-		-Dman-pages=$(usex man true false)
-		-Dxwayland=$(usex X true false)
-	)
-}
-
-src_compile() {
-	ezig build "${ZBS_ARGS[@]}"
-}
-
-src_test() {
-	ezig build test "${ZBS_ARGS[@]}"
-}
-
-src_install() {
-	DESTDIR="${ED}" ezig build install "${ZBS_ARGS[@]}"
-	einstalldocs
-
-	insinto /usr/share/wayland-sessions
-	doins contrib/river.desktop
-
-	insinto /usr/share/${PN}
-	doins -r example
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-23 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23 10:40 [gentoo-commits] repo/proj/guru:dev commit in: gui-wm/river/, gui-wm/river/files/ Eric Joldasov
  -- strict thread matches above, loose matches on Subject: below --
2024-08-04 16:51 Daichi Yamamoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox