9 |
9 |
amd64? ( https://ziglang.org/download/${PV}/zig-linux-x86_64-${PV}.tar.xz )
|
10 |
10 |
arm? ( https://ziglang.org/download/${PV}/zig-linux-armv7a-${PV}.tar.xz )
|
11 |
11 |
arm64? ( https://ziglang.org/download/${PV}/zig-linux-aarch64-${PV}.tar.xz )
|
|
12 |
ppc? ( https://ziglang.org/download/${PV}/zig-linux-powerpc-${PV}.tar.xz )
|
|
13 |
ppc64? ( https://ziglang.org/download/${PV}/zig-linux-powerpc64le-${PV}.tar.xz )
|
12 |
14 |
riscv? ( https://ziglang.org/download/${PV}/zig-linux-riscv64-${PV}.tar.xz )
|
13 |
|
x86? ( https://ziglang.org/download/${PV}/zig-linux-i386-${PV}.tar.xz )"
|
|
15 |
x86? ( https://ziglang.org/download/${PV}/zig-linux-x86-${PV}.tar.xz )"
|
14 |
16 |
|
15 |
17 |
# project itself: MIT
|
16 |
18 |
# There are bunch of projects under "lib/" folder that are needed for cross-compilation.
|
... | ... | |
25 |
27 |
# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+
|
26 |
28 |
LICENSE="MIT Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain BSD-2 ZPL ISC HPND BSD inner-net LGPL-2.1+"
|
27 |
29 |
SLOT="$(ver_cut 1-2)"
|
28 |
|
KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
|
|
30 |
KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
29 |
31 |
IUSE="doc"
|
30 |
32 |
|
31 |
33 |
IDEPEND="app-eselect/eselect-zig"
|
... | ... | |
34 |
36 |
# because they can use compile-time mechanics (and it is easier for distributions to patch them)
|
35 |
37 |
# Here we use this feature for fixing programs that use standard library
|
36 |
38 |
# Note: Zig build system is also part of standard library, so we can fix it too
|
37 |
|
PATCHES=(
|
38 |
|
"${FILESDIR}/zig-0.10.1-musl-1.2.4-lfs64.patch"
|
39 |
|
)
|
|
39 |
#PATCHES=()
|
40 |
40 |
|
41 |
41 |
QA_PREBUILT="opt/${P}/zig"
|
42 |
42 |
|
... | ... | |
60 |
60 |
|
61 |
61 |
pkg_postinst() {
|
62 |
62 |
eselect zig update ifunset
|
63 |
|
|
64 |
|
elog "0.10.1 release uses self-hosted compiler by default and fixes some bugs from 0.10.0"
|
65 |
|
elog "But your code still can be un-compilable since some features still not implemented or bugs not fixed"
|
66 |
|
elog "Upstream recommends:"
|
67 |
|
elog " * Using old compiler if experiencing such breakage (flag '-fstage1')"
|
68 |
|
elog " * Waiting for release 0.11.0 with old compiler removed (these changes are already merged in 9999)"
|
69 |
|
elog "Also see: https://ziglang.org/download/0.10.0/release-notes.html#Self-Hosted-Compiler"
|
70 |
|
elog "and https://ziglang.org/download/0.10.0/release-notes.html#How-to-Upgrade"
|
71 |
63 |
}
|
72 |
64 |
|
73 |
65 |
pkg_postrm() {
|