From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1659516-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 08A48159C9B
	for <garchives@archives.gentoo.org>; Wed,  7 Aug 2024 10:33:48 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0011DE2D25;
	Wed,  7 Aug 2024 10:33:46 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id CAD29E2D25
	for <gentoo-commits@lists.gentoo.org>; Wed,  7 Aug 2024 10:33:46 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id E5BAA3430B6
	for <gentoo-commits@lists.gentoo.org>; Wed,  7 Aug 2024 10:33:45 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 73C811EC3
	for <gentoo-commits@lists.gentoo.org>; Wed,  7 Aug 2024 10:33:43 +0000 (UTC)
From: "Lucio Sauer" <watermanpaint@posteo.net>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Lucio Sauer" <watermanpaint@posteo.net>
Message-ID: <1723022014.61e3a28a8a67222943ab97bcfaf604462ce72e5d.watermanpaint@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-zig/zls/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: dev-zig/zls/zls-9999.ebuild
X-VCS-Directories: dev-zig/zls/
X-VCS-Committer: watermanpaint
X-VCS-Committer-Name: Lucio Sauer
X-VCS-Revision: 61e3a28a8a67222943ab97bcfaf604462ce72e5d
X-VCS-Branch: master
Date: Wed,  7 Aug 2024 10:33:43 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 1dcc1d69-0709-44d9-a9fa-c8a7e46cfe37
X-Archives-Hash: af8657b2f76b5bb5da1e86d04c3a3df5

commit:     61e3a28a8a67222943ab97bcfaf604462ce72e5d
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Wed Aug  7 09:13:13 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Wed Aug  7 09:13:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=61e3a28a

dev-zig/zls: sync 9999 ebuild with 0.13.0

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

 dev-zig/zls/zls-9999.ebuild | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/dev-zig/zls/zls-9999.ebuild b/dev-zig/zls/zls-9999.ebuild
index d5b61e56a..3cdd0da1d 100644
--- a/dev-zig/zls/zls-9999.ebuild
+++ b/dev-zig/zls/zls-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -19,6 +19,8 @@ EZIG_MAX_EXCLUSIVE="99991"
 DEPEND="dev-lang/zig:${EZIG_MIN}"
 RDEPEND="${DEPEND}"
 
+DOCS=( README.md )
+
 # see https://github.com/ziglang/zig/issues/3382
 # For now, Zig Build System doesn't support CFLAGS/LDFLAGS/etc.
 QA_FLAGS_IGNORED="usr/bin/zls"
@@ -105,23 +107,34 @@ ezig() {
 
 src_unpack() {
 	git-r3_src_unpack
+
 	cd "${S}" || die
-	ezig build --fetch || die "Fetching Zig modules failed"
-	local ZLS_GEN_FLAGS="--generate-version-data master --generate-version-data-path version_data_offline.zig"
+	ezig build --fetch --global-cache-dir "${WORKDIR}/zig-eclass/" || die "Pre-fetching Zig modules failed"
+	local ZLS_GEN_FLAGS="--generate-version-data master --generate-version-data-path version_data.zig"
 	ezig build gen --verbose -- ${ZLS_GEN_FLAGS} || die "Pre-generating Zig version data failed"
 }
 
+src_configure() {
+	export ZBS_ARGS=(
+		--prefix usr/
+		-Doptimize=ReleaseSafe
+		--system "${WORKDIR}/zig-eclass/p/"
+		-Dversion_data_file_path=version_data.zig
+		--verbose
+	)
+}
+
 src_compile() {
-	ezig build -Doptimize=ReleaseSafe -Dversion_data_file_path=version_data_offline.zig --verbose || die
+	ezig build "${ZBS_ARGS[@]}"
 }
 
 src_test() {
-	ezig build test -Doptimize=ReleaseSafe -Dversion_data_file_path=version_data_offline.zig --verbose || die
+	ezig build test "${ZBS_ARGS[@]}"
 }
 
 src_install() {
-	DESTDIR="${ED}" ezig build install --prefix /usr -Doptimize=ReleaseSafe -Dversion_data_file_path=version_data_offline.zig --verbose || die
-	dodoc README.md
+	DESTDIR="${ED}" ezig build install "${ZBS_ARGS[@]}"
+	einstalldocs
 }
 
 pkg_postinst() {