From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 BC6E2159C9B for ; Wed, 7 Aug 2024 09:17:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E767DE2B44; Wed, 7 Aug 2024 09:17:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CBEC9E2B44 for ; Wed, 7 Aug 2024 09:17:11 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F50634307A for ; Wed, 7 Aug 2024 09:17:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F1CC4E6F for ; Wed, 7 Aug 2024 09:17:08 +0000 (UTC) From: "Eric Joldasov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eric Joldasov" Message-ID: <1723022014.61e3a28a8a67222943ab97bcfaf604462ce72e5d.bratishkaerik@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev 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: bratishkaerik X-VCS-Committer-Name: Eric Joldasov X-VCS-Revision: 61e3a28a8a67222943ab97bcfaf604462ce72e5d X-VCS-Branch: dev Date: Wed, 7 Aug 2024 09:17:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a2a1156a-3ea0-4387-955f-c6da0925c06f X-Archives-Hash: 70ee95a79cc668c8aa69e3efa20eefeb commit: 61e3a28a8a67222943ab97bcfaf604462ce72e5d Author: Eric Joldasov landless-city net> AuthorDate: Wed Aug 7 09:13:13 2024 +0000 Commit: Eric Joldasov getgoogleoff me> 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 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() {