aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Joldasov <bratishkaerik@getgoogleoff.me>2023-08-22 17:15:27 +0600
committerEric Joldasov <bratishkaerik@getgoogleoff.me>2023-08-26 23:00:38 +0600
commit0eb28c38bc75d8241423749cc2edad4cd8555673 (patch)
tree39f6b8542e03d0f08bff0a71f57b93561a1e4b07 /dev-zig
parentdev-cpp/drogon: drop 1.8.3 (diff)
downloadguru-0eb28c38bc75d8241423749cc2edad4cd8555673.tar.gz
guru-0eb28c38bc75d8241423749cc2edad4cd8555673.tar.bz2
guru-0eb28c38bc75d8241423749cc2edad4cd8555673.zip
dev-zig/zls: fix for 9999
See upstream PR https://github.com/zigtools/zls/pull/1415 and commit https://github.com/zigtools/zls/commit/f95a0efca127c01450cd3beaf35e407e6dc1ff35 Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Diffstat (limited to 'dev-zig')
-rw-r--r--dev-zig/zls/zls-9999.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/dev-zig/zls/zls-9999.ebuild b/dev-zig/zls/zls-9999.ebuild
index f38e48ae0..fe83830fa 100644
--- a/dev-zig/zls/zls-9999.ebuild
+++ b/dev-zig/zls/zls-9999.ebuild
@@ -108,18 +108,20 @@ src_unpack() {
cd "${S}" || die
# "zig build" doesn't have "fetch" subcommand yet
ezig build --help || die "Fetching Zig modules failed"
+ local ZLS_GEN_FLAGS="--generate-version-data master --generate-version-data-path version_data_offline.zig"
+ ezig build gen --verbose -- ${ZLS_GEN_FLAGS} || die "Pre-generating Zig version data failed"
}
src_compile() {
- ezig build -Doptimize=ReleaseSafe -Ddata_version=master --verbose || die
+ ezig build -Doptimize=ReleaseSafe -Dversion_data_file_path=version_data_offline.zig --verbose || die
}
src_test() {
- ezig build test -Doptimize=ReleaseSafe -Ddata_version=master --verbose || die
+ ezig build test -Doptimize=ReleaseSafe -Dversion_data_file_path=version_data_offline.zig --verbose || die
}
src_install() {
- DESTDIR="${ED}" ezig build install --prefix /usr -Doptimize=ReleaseSafe -Ddata_version=master --verbose || die
+ DESTDIR="${ED}" ezig build install --prefix /usr -Doptimize=ReleaseSafe -Dversion_data_file_path=version_data_offline.zig --verbose || die
dodoc README.md
}