Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/zig-bin/
Date: Mon, 07 Nov 2022 06:52:19
Message-Id: 1667803922.5c000bbe19f88a5534a3c3d2a74f07045bdf5995.sam@gentoo
1 commit: 5c000bbe19f88a5534a3c3d2a74f07045bdf5995
2 Author: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me>
3 AuthorDate: Tue Nov 1 03:56:56 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 7 06:52:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c000bbe
7
8 dev-lang/zig-bin: add 0.10.0
9
10 Bug: https://bugs.gentoo.org/876181
11 Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me>
12 Closes: https://github.com/gentoo/gentoo/pull/28061
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 dev-lang/zig-bin/Manifest | 5 ++++
16 dev-lang/zig-bin/zig-bin-0.10.0.ebuild | 52 ++++++++++++++++++++++++++++++++++
17 2 files changed, 57 insertions(+)
18
19 diff --git a/dev-lang/zig-bin/Manifest b/dev-lang/zig-bin/Manifest
20 index c85903697075..f3a4958e521b 100644
21 --- a/dev-lang/zig-bin/Manifest
22 +++ b/dev-lang/zig-bin/Manifest
23 @@ -1,5 +1,10 @@
24 DIST zig-0.9.1-fix-detecting-abi.patch 22233 BLAKE2B fa523c4c4c23a74c0b4f85c6d2d91ef98b31d25694bb9dbc7988b82db972a16ab273aa9f1883cfa8ca79ef7fc56fca67d0a8656ba248b6db47bc902b7ac64a93 SHA512 259967f88f54c20f556bd9d67189ce3a2cfeb0250f0cee4dffb29020d976d61265a5dd9ae9cfcadfb7b1e152b47ee17f4184eafac2b80495f4ee8f98733cd692
25 +DIST zig-linux-aarch64-0.10.0.tar.xz 40387688 BLAKE2B 47d0cb61f054b79dcd9e5f87f3f910c9440079dca7648a3017c871fb20bc76e07de5b76a438a9d8eda147e77061bebf43b1486160899eeca0972b547b269c607 SHA512 5db0df7fce49dd3ca7002c3d9782a8d16c8b92721cf5f8983978dddcfb42dd31c4e3edad5a321bceda627730320c95dc552226b9e5e06ba84315804153991de1
26 DIST zig-linux-aarch64-0.9.1.tar.xz 37034860 BLAKE2B 3b984198d74ee01570e4e10175dc4471268970cc5bd66d732042f17f1cf31301cec9237df756b7fa589915ed4c4f29dcd9ba61fb8e65ce7e9b579762773fe26d SHA512 ca647f04a67a45ad9e869e335266fad9a4a0f3f377da31d54a6f022727404db6cf2386d33315df20d5da0b6883f59e27bb0d73e18856e571cf4bc8f890565639
27 +DIST zig-linux-armv7a-0.10.0.tar.xz 50805936 BLAKE2B 57a2c8bf10d80a5b06570ebea786be725e6020a7184835a966ddae32a2126910915e2d2bae0932226edb644692ff39e7ab201a8d040c62106ac40539cd3e8096 SHA512 31d16e477a52e10d6ce4e646c7b97d6162c68d5938890b815fb9d5da527248ab46926649d68d5623953b9fbac707131c89d5c8388e9ae5128cf2182d0ab58278
28 DIST zig-linux-armv7a-0.9.1.tar.xz 37974652 BLAKE2B 5d51260d8322d1400719d97c7cac2d12555622272900533128e20d45ea7a1c321b8a3eb9c7c406bbfd459da24d19451c65011bc2cac0b0c29a0372c56ea73a2b SHA512 239c5f02aeb1c85bc2c43374d610e27722c434d23cf3adf43b3923772dfe5800e340d6a6b3672bd307c159c2cccce5137aabb5b6648148c351e29c171de9e333
29 +DIST zig-linux-i386-0.10.0.tar.xz 48451732 BLAKE2B e1ae0d48723e1439b612f56dee05776d83a9cabe4bd4ddc6198d777a51a5b2b8c696cf7ce7817641ab46edb91eff992abc4d12de7620d21b1bb63fc482d610da SHA512 6c4152137047efbf2cf3a65583697325baf29c5847734d38622207d15de04aa5bbcd15e37c3c07c51536a2f34ab16ceaf7776c009b0862cb510ed2a0494bdeef
30 DIST zig-linux-i386-0.9.1.tar.xz 44969172 BLAKE2B 7051242284f1ceca662a64257adf64b7383b71b475f27abd3377bdaf8335d56d8cbb9a961ebceb6ae26058258216848dcbde2f50f95a74e0b64578a9522f33d5 SHA512 5bdf0ebffe45023b5a28331137458d258048c7974311c8e8090bc610f0ec262dc0004f0a939cff443b1d94a9cca4035de8e6e98dad9d668413888da02b325b6d
31 +DIST zig-linux-riscv64-0.10.0.tar.xz 42272968 BLAKE2B 95fe8589b9be99625acb5c9a97fafd3126b838c7e0722529d34cfe87043cb0e8d6957e6f2bb3ac3ae1fc2f51cf6a062b98abe224c221ba659de1e16703b53255 SHA512 ae00cf4eb5e499bd44e94d6cd77464d85878881034ce088ef69aa1f3fdf58420768112b36007829ecaba74e77e96c0706222a2fc1397b773e3bb5f726a710549
32 +DIST zig-linux-x86_64-0.10.0.tar.xz 44142400 BLAKE2B 7ba72ce57e616c5ead2fb84dc7e1b0ff08e8dffab56ca30cd00bff1d9b80fd62034f3d78b903f37f911665239a4717a6e93230faa77b3f387b0dada835672fb7 SHA512 87037766e58a736d7e4f9fca1c21dce070f2de8cd08dae7951e67252327b72dd69f79831f5c8e406be7ecc6522184400eba3bd265d3c7020c8fa4d2efc9f8766
33 DIST zig-linux-x86_64-0.9.1.tar.xz 41011464 BLAKE2B 053fc1c3d30e5798b7d30c9a4f9b5609b9b080e9f237dab52ae661b183663fca6582dcc37458e8a51dd7eb4fbd1d3a9946f7c67cb756b69460f0e23b03cc96eb SHA512 0e5f5971dc9e586911f98122a410c98d8aaef2795d2d68488a1e9468ea45135479dac7f92708c973db4f8efce78cb0c6b3759cf239fba6237052434a2120d4d3
34
35 diff --git a/dev-lang/zig-bin/zig-bin-0.10.0.ebuild b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
36 new file mode 100644
37 index 000000000000..45c577eadde5
38 --- /dev/null
39 +++ b/dev-lang/zig-bin/zig-bin-0.10.0.ebuild
40 @@ -0,0 +1,52 @@
41 +# Copyright 2022 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=8
45 +
46 +DESCRIPTION="A robust, optimal, and maintainable programming language"
47 +HOMEPAGE="https://ziglang.org/"
48 +SRC_URI="
49 + amd64? ( https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
50 + arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz )
51 + arm64? ( https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
52 + riscv? ( https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
53 + x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
54 +
55 +LICENSE="MIT"
56 +SLOT="0"
57 +KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
58 +
59 +RDEPEND="!dev-lang/zig"
60 +# Zig provides its standard library in source form "/opt/zig-bin-{PV}/lib/",
61 +# and all other Zig libraries are meant to be consumed in source form,
62 +# because they can use compile-time mechanics (and it is easier for distributions to patch them)
63 +# Here we use this feature for fixing programs that use standard library
64 +# Note: Zig build system is also part of standard library, so we can fix it too
65 +#PATCHES=( )
66 +
67 +QA_PREBUILT="opt/${P}/zig"
68 +
69 +src_unpack() {
70 + unpack ${A}
71 +
72 + mv "${WORKDIR}/"* "${S}"
73 +}
74 +
75 +src_install() {
76 + insinto /opt/
77 + doins -r "${S}"
78 +
79 + dosym -r /opt/${P}/doc/ /usr/share/doc/${PF}
80 + dosym -r /opt/${P}/zig /usr/bin/zig
81 + fperms 0755 /usr/bin/zig
82 +}
83 +
84 +pkg_postinst() {
85 + elog "0.10.0 release introduces self-hosted compiler for general use by default"
86 + elog "It means that your code can be un-compilable since this compiler has some new or removed features and new or fixed bugs"
87 + elog "Upstream recommends using stage1 if experiencing such breakage,"
88 + elog "until bugfix release 0.10.1 or release 0.11.0 where old compiler will be fully replaced"
89 + elog "You can use old compiler by using '-fstage1' flag"
90 + elog "Also see: https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler"
91 + elog "and https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade"
92 +}