diff options
Diffstat (limited to 'dev-lang/zig')
-rw-r--r-- | dev-lang/zig/Manifest | 4 | ||||
-rw-r--r-- | dev-lang/zig/zig-0.10.1-r2.ebuild | 13 | ||||
-rw-r--r-- | dev-lang/zig/zig-9999.ebuild | 32 |
3 files changed, 40 insertions, 9 deletions
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest index d1a3b7640e20..89501a0b4d0b 100644 --- a/dev-lang/zig/Manifest +++ b/dev-lang/zig/Manifest @@ -1,5 +1,5 @@ AUX zig-0.10.0-build-dir-install-stage3.patch 1430 BLAKE2B cca909207cadfe1c9b31b9481a705882506363aaf41db7672f42cc66937f85f7b2f2b53346d29a4d748d1aef05e77efcc6e668ac498a7d172a6d8654034d5c4a SHA512 6704adb1f146ed78c8030aad2c739e30d0ec7ffda40273b5520914b16cc67d497afd9b1b59a1acfbb0097d7f5b0a5517973c45ef43ccbc35d8af051500577117 DIST zig-0.10.1.tar.xz 15143112 BLAKE2B 4954d95ad763000eedf73a78e62bc0e99d65bba91c7127cdf1ea4503eb67817265daf572f645b7efbe9e24087e690b2768f0b2bc6c43b5fd76eab33143e964fe SHA512 d443adf61556bc95470537c6b0371a0ac99d19a06b15635cf1e5055ae7849039680c9006105e06e1bd6ba0fc12da14c54c1d28ac597c7dee17ee3a5cd9cf79f8 -EBUILD zig-0.10.1-r2.ebuild 5020 BLAKE2B e1bd6c9a3f256bd6a0a8d3ed3ef0313a30b1570f14e838d496ce618f6104af570b201d88bd6f31711ef55eb94d96796be230ae7c1d04b9eb7a0dd1ffc5188be0 SHA512 ad280c38779573a03b29b182a7b61aa98b3260811240c3ce19716e98b13b1dd9dc4865a265d5bfc048b1ae38026aded35bc25b2ffbbddb6aff7e181f5694c850 -EBUILD zig-9999.ebuild 3730 BLAKE2B f50bbad9233d63114c2dda8b54d0f2d082f8be26a0562e72cad8fc5148af99900b6c3621c6f82d2c042cd92d078686cb693b7356c3b44c69fab4fbf9db81e1a2 SHA512 628a39830028519868017083b11f0194c0144a7ebb4ca4f762230454577b80f1e360420dd2d8832d42808b1028e66aedbd039699b5e8d394a2c46f4c1e1a7eab +EBUILD zig-0.10.1-r2.ebuild 5865 BLAKE2B e8cff6a84cf4003f573e16d3db91c3f32d535adef9209cb2e2831a2fb7a0a1f9937291c3133999feb4f9dc36bb63b2e7e90951ca650e6b9e7c7551cfd743a7d5 SHA512 b1e009bc0771142d9d26d1f66cfbb38a5e4f70d414a5224c2c21965c0a4ed6d95abb8a59bd234c623b25f6ad985cdc0c4efe6974c84c92f0aa19136864a7d003 +EBUILD zig-9999.ebuild 4818 BLAKE2B 168b99d3652501b7f1c53237f802cba10ca8bac1cf7ddd92f441e96e3f6e5b3cad3b3e3e57cb25345edb465f9b9174c1d0a01505ba415db345c868d727af552c SHA512 030d78dc79772d8ca1f89c997fc7d0d8fcc1799d49bb42482bbfe82fbda219d1d61a2a116bd0a1524c9f7453ba521d39ae65a6ec7ece5494f1d02df10584d95a MISC metadata.xml 541 BLAKE2B 6f5c7fbf759f0430f69073a17a0dae4b8bebf335b54c3b43da6b24104dc3de05a3b686cddbbd31e4dae1fc31695a2f08d000d22437ed6f1847de8fa95e3b1952 SHA512 d49cf0a8ad76ac9a6f6fb091effddbbcd812b56f91df6d3c782e15197cb4ff4423fb1076671a232aabcb9833af19ef8c820ad6df312a1e4d72e665680314c083 diff --git a/dev-lang/zig/zig-0.10.1-r2.ebuild b/dev-lang/zig/zig-0.10.1-r2.ebuild index fc06e3a6e545..6200470dec94 100644 --- a/dev-lang/zig/zig-0.10.1-r2.ebuild +++ b/dev-lang/zig/zig-0.10.1-r2.ebuild @@ -16,7 +16,18 @@ else KEYWORDS="~amd64 ~arm ~arm64" fi -LICENSE="MIT" +# project itself: MIT +# There are bunch of projects under "lib/" folder that are needed for cross-compilation. +# Files that are unnecessary for cross-compilation are removed by upstream +# and therefore their licenses (if any special) are not included. +# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain +# lib/libc/musl: MIT BSD-2 +# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND +# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+ +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+" SLOT="$(ver_cut 1-2)" IUSE="doc" diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild index 2fbe3863ef40..dd8650c3aa2c 100644 --- a/dev-lang/zig/zig-9999.ebuild +++ b/dev-lang/zig/zig-9999.ebuild @@ -16,7 +16,18 @@ else KEYWORDS="~amd64 ~arm ~arm64" fi -LICENSE="MIT" +# project itself: MIT +# There are bunch of projects under "lib/" folder that are needed for cross-compilation. +# Files that are unnecessary for cross-compilation are removed by upstream +# and therefore their licenses (if any special) are not included. +# lib/libunwind: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libcxxabi: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libcxx: Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT ) +# lib/libc/wasi: || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT BSD-2 ) public-domain +# lib/libc/musl: MIT BSD-2 +# lib/libc/mingw: ZPL public-domain BSD-2 ISC HPND +# lib/libc/glibc: BSD HPND ISC inner-net LGPL-2.1+ +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+" SLOT="$(ver_cut 1-2)" IUSE="doc" @@ -105,6 +116,7 @@ src_configure() { -DZIG_USE_LLVM_CONFIG=ON -DCMAKE_PREFIX_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})" -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/$(get_libdir)/zig/${PV}" + -DZIG_NO_LANGREF="$(usex !doc ON OFF)" ) cmake_src_configure @@ -115,17 +127,25 @@ src_compile() { if use doc; then cd "${BUILD_DIR}" || die - edo ./zig2 run ../doc/docgen.zig -- --zig ./zig2 ../doc/langref.html.in "${S}/langref.html" - edo ./zig2 test ../lib/std/std.zig --zig-lib-dir ../lib -fno-emit-bin -femit-docs="${S}/std" + mv ./stage3/doc/langref.html "${S}" || die + edo ./stage3/bin/zig test ../lib/std/std.zig --zig-lib-dir ../lib -fno-emit-bin -femit-docs="${S}/std" fi } src_test() { cd "${BUILD_DIR}" || die local ZIG_TEST_ARGS="-Dstatic-llvm=false -Denable-llvm -Dskip-non-native \ - -Drelease -Dtarget=$(get_zig_target) -Dcpu=$(get_zig_mcpu)" - # TBF zig2 -> stage3/bin/zig when (if) https://github.com/ziglang/zig/pull/14255 will be merged - edo ./zig2 build test ${ZIG_TEST_ARGS} + -Doptimize=ReleaseSafe -Dtarget=$(get_zig_target) -Dcpu=$(get_zig_mcpu)" + local ZIG_TEST_STEPS=( + test-cases test-fmt test-behavior test-compiler-rt test-universal-libc test-compare-output + test-standalone test-c-abi test-link test-stack-traces test-cli test-asm-link test-translate-c + test-run-translated-c test-std + ) + + local step + for step in "${ZIG_TEST_STEPS[@]}" ; do + edob ./stage3/bin/zig build ${step} ${ZIG_TEST_ARGS} + done } src_install() { |