summaryrefslogtreecommitdiff
path: root/dev-lang
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/Manifest.gzbin18516 -> 18528 bytes
-rw-r--r--dev-lang/crystal/Manifest3
-rw-r--r--dev-lang/crystal/crystal-1.2.2.ebuild104
-rw-r--r--dev-lang/nim/Manifest4
-rw-r--r--dev-lang/nim/metadata.xml39
-rw-r--r--dev-lang/nim/nim-1.6.2.ebuild91
-rw-r--r--dev-lang/perl/Manifest2
-rw-r--r--dev-lang/perl/perl-5.34.0-r6.ebuild12
-rw-r--r--dev-lang/rust-bin/Manifest2
-rw-r--r--dev-lang/rust-bin/rust-bin-1.56.1.ebuild2
-rw-r--r--dev-lang/rust/Manifest2
-rw-r--r--dev-lang/rust/rust-1.56.1.ebuild2
-rw-r--r--dev-lang/tcl/Manifest2
-rw-r--r--dev-lang/tcl/tcl-8.6.12.ebuild15
-rw-r--r--dev-lang/typescript/Manifest2
-rw-r--r--dev-lang/typescript/typescript-4.5.4.ebuild39
-rw-r--r--dev-lang/zig/Manifest4
-rw-r--r--dev-lang/zig/zig-0.9.0.ebuild59
-rw-r--r--dev-lang/zig/zig-9999.ebuild20
19 files changed, 365 insertions, 39 deletions
diff --git a/dev-lang/Manifest.gz b/dev-lang/Manifest.gz
index b6673521b72f..06988469b148 100644
--- a/dev-lang/Manifest.gz
+++ b/dev-lang/Manifest.gz
Binary files differ
diff --git a/dev-lang/crystal/Manifest b/dev-lang/crystal/Manifest
index 42d770256133..b8a903503fa4 100644
--- a/dev-lang/crystal/Manifest
+++ b/dev-lang/crystal/Manifest
@@ -13,7 +13,10 @@ DIST crystal-1.1.1-1-linux-x86_64.tar.gz 27999355 BLAKE2B 115d9002973d9e0e1ad2ed
DIST crystal-1.1.1.tar.gz 2477825 BLAKE2B 4e1b06c831a22447a4d1f065be64b12642ee4b4a75f24b0b73b990944afe6e2a6fca95189b46ea0656b8d13bd7c6a83a23452779b494822803a0264e02b9d4ce SHA512 6e9e977792c863d17ae94aa285a65a453da581a71c3fd9c57cc606ae20813504d675faffa74f78e7c4cf863b6334c4a63ab5356c04fb11d3267dd516e060fe74
DIST crystal-1.2.1-1-linux-x86_64.tar.gz 28586682 BLAKE2B 4d7847cdc6263c369de0926055569986cece1302d2251e4b2d25308609e45c0aa3afe7cdfecba3b7909d7568b1e81aafe69f9976a90c8980684a92231cc3857c SHA512 23cfb2389c65202dc70ebadb85cf0390ba2366520fbfd4b7bb0683c5194cd2b5c87b6b4142dd251471ec4146a5c1046ec86bcafa50c66389a41c9cb394ee6f5d
DIST crystal-1.2.1.tar.gz 2618956 BLAKE2B e9ffd8b9114af419ee433093066dcf69f86e2f3293a6eeafee20f00c982dcd78774b3faf64d1e2568ba3141e24ef751cb2b5e0b2a2c57dac92d0039e6e224971 SHA512 a6acfac36a8a0d93e39947f2e35238f9cfc43485994fd6caf102f1d62ebc4d71d13d96801e998dbbff9541b76a8eb4fade7b998b179807ed49c1c338207a4720
+DIST crystal-1.2.2-1-linux-x86_64.tar.gz 28611412 BLAKE2B 95593120b00b09b0a250917cbfd0841a77ead5e768ad483a900452678be5b231408017c4ac668df4de675612a008a385ed0dbf6ea216aec0343f8b5e8ede3e98 SHA512 7fdb247074723f52f8dfb9d2e18eef1ceb6fcf595bd12ec7304eb292716c4462ee34d2d87eac56302053dd4d8cd2beccde3dc5bfa3c75e6e832813afecfadcde
+DIST crystal-1.2.2.tar.gz 2621720 BLAKE2B abd196aab8d874e7a26116b92b046893c5f03d3ad7a28902fd2bbc3fe8e801f4c5d6766397583864bc3b7642f5c508e7ea0beb82661f87943c8a9914e014e71b SHA512 855f9c103f05d1ebb03d146d93362849a15ea67a64c993219f7c66438585b590caa53a9482daf81810920b39795c9f5c3e2a0caf316b3d62826e2540fd5fb60e
EBUILD crystal-1.1.0.ebuild 3077 BLAKE2B af72e22439f83e8942e395396bce25139164627b3126abf42fb3bdabcd3e96140939f47af206f617b9dee21cf87f71123ea422799ee37bdb8a2f5d22c04bed14 SHA512 ff77873e8ee40d5851eb061e99cfc52502fc74d7365f2f1acd3f23262ff5fb7a016654e80c0b73c50ba5625c0fbc62a04990a6a8e5c3eb923467f24e070e9600
EBUILD crystal-1.1.1.ebuild 2670 BLAKE2B 7903a569997c6aa99c09b954a421c60676c6518b9ef80ba9a442d62db905dbaa78c95cff6926e5d6d4f96f334cc705d23449e4018e7e81f72759ec8f3bc897fd SHA512 c331bef8dd867fc6791bf7f7eb971ef96628fb2ea398fc8c06cbe04b84ff73f43f90700f6ef8bb57bf3179c9345d6ff019c9c0b3a6453d3d0d52d958d1edd4d0
EBUILD crystal-1.2.1.ebuild 2579 BLAKE2B abe976799a4d3d744b4fa4c29a3e74e013dcdf4c1dd56490d11081d8bd66575386a374e175c5a1ed32965d4705bc74fc82d29c69408cb8e6085c1b951a2ecd6c SHA512 3ccee358b72851b975b19fd7bdb741b702590ec34505eec928a367d3e8b5a5bf41464a3c437aad39aade4ddf763d7cdee077d1ebce75cfc56258689f89909018
+EBUILD crystal-1.2.2.ebuild 2579 BLAKE2B abe976799a4d3d744b4fa4c29a3e74e013dcdf4c1dd56490d11081d8bd66575386a374e175c5a1ed32965d4705bc74fc82d29c69408cb8e6085c1b951a2ecd6c SHA512 3ccee358b72851b975b19fd7bdb741b702590ec34505eec928a367d3e8b5a5bf41464a3c437aad39aade4ddf763d7cdee077d1ebce75cfc56258689f89909018
MISC metadata.xml 1137 BLAKE2B 0b424a44c0d8d0574e753fa82e327c60e982a280794ed75a1c1a3b7ca57e9e5a84404eabd22daf7c1af1dcbf3a96d903de11ccad84841e64e87b63d67e22332f SHA512 b4e330c331743342dbfc11f84ffe8c6b4096f654460a705fdfc3eeb3e760b0d12e5f9203779e87af2011138011b188d7753acc0b1505c9261ce2081ba465fc66
diff --git a/dev-lang/crystal/crystal-1.2.2.ebuild b/dev-lang/crystal/crystal-1.2.2.ebuild
new file mode 100644
index 000000000000..6e531f8dcf46
--- /dev/null
+++ b/dev-lang/crystal/crystal-1.2.2.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LLVM_MAX_SLOT=13
+inherit bash-completion-r1 llvm multiprocessing toolchain-funcs
+
+BV=${PV}-1
+BV_AMD64=${BV}-linux-x86_64
+
+DESCRIPTION="The Crystal Programming Language"
+HOMEPAGE="https://crystal-lang.org"
+SRC_URI="https://github.com/crystal-lang/crystal/archive/${PV}.tar.gz -> ${P}.tar.gz
+ amd64? ( https://github.com/crystal-lang/crystal/releases/download/${BV/-*}/crystal-${BV_AMD64}.tar.gz )"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc debug llvm-libunwind"
+
+# Upstream test suite not reliable
+RESTRICT=test
+
+DEPEND="
+ dev-libs/boehm-gc[static-libs,threads]
+ dev-libs/gmp:=
+ dev-libs/libatomic_ops
+ dev-libs/libevent
+ dev-libs/libpcre
+ dev-libs/pcl:=
+ <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=
+ llvm-libunwind? ( sys-libs/llvm-libunwind:= )
+ !llvm-libunwind? ( sys-libs/libunwind:= )
+"
+RDEPEND="${DEPEND}
+ dev-libs/libxml2
+ dev-libs/libyaml
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.0-verbose.patch
+ "${FILESDIR}"/${PN}-0.26.1-gentoo-tests-sandbox.patch
+ "${FILESDIR}"/${PN}-0.27.0-extra-spec-flags.patch
+ "${FILESDIR}"/${PN}-0.27.0-gentoo-tests-long-unix.patch
+ "${FILESDIR}"/${PN}-0.27.0-gentoo-tests-long-unix-2.patch
+)
+
+src_configure() {
+ local bootstrap_path=${WORKDIR}/${PN}-${BV}/bin
+ if [[ ! -d ${bootstrap_path} ]]; then
+ eerror "Binary tarball does not contain expected directory:"
+ die "'${bootstrap_path}' path does not exist."
+ fi
+
+ MY_EMAKE_COMMON_ARGS=(
+ $(usex debug "" release=1)
+ progress=true
+ stats=1
+ threads=$(makeopts_jobs)
+ verbose=1
+ CC=$(tc-getCC)
+ CXX=$(tc-getCXX)
+ AR=$(tc-getAR)
+ LLVM_CONFIG="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config"
+ PATH="${bootstrap_path}:${PATH}"
+ CRYSTAL_PATH=src
+ CRYSTAL_CONFIG_VERSION=${PV}
+ CRYSTAL_CONFIG_PATH="lib:${EPREFIX}/usr/$(get_libdir)/crystal"
+ )
+
+ # crystal uses 'LLVM_TARGETS' to override default list of targets
+ unset LLVM_TARGETS
+}
+
+src_compile() {
+ emake "${MY_EMAKE_COMMON_ARGS[@]}"
+ use doc && emake docs
+}
+
+src_test() {
+ # EXTRA_SPEC_FLAGS is useful to debug individual tests
+ # as part of full build:
+ # USE=debug EXTRA_SPEC_FLAGS='-e parse_set_cookie' emerge -1 crystal
+ emake std_spec "${MY_EMAKE_COMMON_ARGS[@]}" "EXTRA_SPEC_FLAGS=${EXTRA_SPEC_FLAGS}"
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/crystal
+ doins -r src/.
+ dobin .build/crystal
+
+ insinto /usr/share/zsh/site-functions
+ newins etc/completion.zsh _crystal
+
+ dodoc -r samples
+
+ if use doc ; then
+ docinto api
+ dodoc -r docs/.
+ fi
+
+ newbashcomp etc/completion.bash ${PN}
+}
diff --git a/dev-lang/nim/Manifest b/dev-lang/nim/Manifest
index 851cd412d323..355814bbd2b5 100644
--- a/dev-lang/nim/Manifest
+++ b/dev-lang/nim/Manifest
@@ -1,4 +1,6 @@
AUX nim-0.20.0-paths.patch 934 BLAKE2B 6a4e44c5656cde6d5127bf6a6b8db92cdf8aada0892c27d536d0c1030ed7da8dc97138a8941030101918021f2a301fa683169c8a656fefc6fb7d0fcdb24029d4 SHA512 bf8dbc3e3861ec3ea2718092b981e495194ead5b547e69d01d5d842d128dc4b96b0ba3e95c78afd8fd822d594199315a01de370851ed8f594c091231b9a10ee9
DIST nim-1.4.8.tar.xz 4786360 BLAKE2B 961b38275c4f9de87ac522c5b47368ce7f5543811a2dfd7b4f3fd79a104bcd0458caaaaab1705f99eb42c64735ca5f71d5018f8a8275a430d883233b28b1d412 SHA512 e6b245271495880f0eea271c46b4f5ce9168a421716a9a22367b6be3c2a9822937aad1f48eb61c151b040ac961728a89c8a6d143c8300057c0d8c1f2d66f3dd3
+DIST nim-1.6.2.tar.xz 5181616 BLAKE2B adedbcaad1b135b6f99459894856190103e2d2b678849e0418f77c02a54fde44224456ea13949f3fe9f5f020a90adde46593497895674bd9ae892b17708df292 SHA512 052b62c987035f7633f965356993cd4eec686f4f4f5c675cf966d82cb30fcf574045887a4402bcc20e487299fb5e8f65a921951c2dc21ac334e695e31d95d992
EBUILD nim-1.4.8.ebuild 1908 BLAKE2B c7e267e92cda81ae16e1dba7a82baaec77c12b7b7a3a4dccec994d868bef4cf7558562fe3d6f80ec5542f8195dacf0d291fce5d3ac3cabf1172bc887870ccae1 SHA512 70b3b578fc1ca1450fd02d31e865a1d7a2805d9c26c31ceba26076d9eb21100df1357645eee62f68b25f0a434f3bbd07479cbd661ec19b78af6cf253b7dc2438
-MISC metadata.xml 245 BLAKE2B 09d4ba8c1cc63eaf82d16d7371c3b7751b41971730cc81d830d88e3b965beeaf0fa9c49a1520a06c19325a392632cc7bb834bc77628b7df8bd5aca090053197c SHA512 e217497284ab5b4f89dbf65f8ff03ed238487a285c299b41392851b06d93c396d5062a46fa448889deee68a3b42ba790ae320c436277b0f88457917909054a19
+EBUILD nim-1.6.2.ebuild 2119 BLAKE2B b4c2954c990fd7c3a42e122ff7e98427a7a51a1b9468dcb2de46f0cfa47e6de66838ff7f74b94f63d9e00e5f880ed7c0adafe2b8346a53b92c6d0138f53e7754 SHA512 c385fb10fd13f8b9c31df16eabced9aaeb27824634d3f2eeaafcf9b37bdb441546a1ac3a7b789dd3f4bd5bcdacf8980a305541243c30cb23360010be3a797fcf
+MISC metadata.xml 1894 BLAKE2B 8ba43a558af584b0c455e16f6d710a2482fbd3d8a4ae80817ee0080165227e931f40b2269d6316ca4fc8773cea0e6d941feafcc30d8a2eb5eb0843d8f7e7df71 SHA512 6fbc92e65c8a85c82cba372aba12133acc626c2a33ec35aff4a02246e70f64dd06c51af121f17fb5cbab48df1aafa3e9af9375a1ccbd769590e26078a7dacf88
diff --git a/dev-lang/nim/metadata.xml b/dev-lang/nim/metadata.xml
index 9144ad2e7557..cca80bdcbe60 100644
--- a/dev-lang/nim/metadata.xml
+++ b/dev-lang/nim/metadata.xml
@@ -1,8 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
<pkgmetadata>
- <!-- maintainer-needed -->
- <upstream>
- <remote-id type="github">nim-lang/Nim</remote-id>
- </upstream>
+ <maintainer type="person">
+ <email>xgqt@gentoo.org</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <longdescription>
+ Nim is a statically typed compiled systems programming language.
+ It combines successful concepts from mature languages like Python,
+ Ada and Modula.
+ Nim generates native dependency-free executables, not dependent on a
+ virtual machine, which are small and allow easy redistribution.
+ The Nim compiler and the generated executables support all major platforms
+ like Windows, Linux, BSD and macOS.
+ Nim's memory management is deterministic and customizable with destructors
+ and move semantics, inspired by C++ and Rust. It is well-suited for
+ embedded, hard-realtime systems.
+ Modern concepts like zero-overhead iterators and compile-time evaluation of
+ user-defined functions, in combination with the preference of value-based
+ datatypes allocated on the stack, lead to extremely performant code.
+ Support for various backends: it compiles to C, C++ or JavaScript so that
+ Nim can be used for all backend and frontend needs.
+ Nim is self-contained: the compiler and the standard library are
+ implemented in Nim.
+ Nim has a powerful macro system which allows direct manipulation of the
+ AST, offering nearly unlimited opportunities.
+ Macros cannot change Nim's syntax because there is no need for it — the
+ syntax is flexible enough.
+ Modern type system with local type inference, tuples, generics and sum
+ types.
+ Statements are grouped by indentation but can span multiple lines.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/nim-lang/Nim/issues/</bugs-to>
+ <remote-id type="github">nim-lang/Nim</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-lang/nim/nim-1.6.2.ebuild b/dev-lang/nim/nim-1.6.2.ebuild
new file mode 100644
index 000000000000..6e066c0a612d
--- /dev/null
+++ b/dev-lang/nim/nim-1.6.2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 multiprocessing toolchain-funcs
+
+DESCRIPTION="compiled, garbage-collected systems programming language"
+HOMEPAGE="https://nim-lang.org/"
+SRC_URI="https://nim-lang.org/download/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="debug +readline"
+RESTRICT="test" # need to sort out depends and numerous failures
+
+RDEPEND="readline? ( sys-libs/readline:0= )"
+DEPEND="${DEPEND}"
+# test? ( net-libs/nodejs )
+
+PATCHES=( "${FILESDIR}"/${PN}-0.20.0-paths.patch )
+
+QA_FLAGS_IGNORED="
+usr/bin/atlas
+usr/bin/nim
+usr/bin/nim_dbg
+usr/bin/nimble
+usr/bin/nimgrep
+usr/bin/nimpretty
+usr/bin/nimsuggest
+usr/bin/testament
+"
+
+_run() {
+ echo "Running: ${@}"
+ PATH="${S}/bin:${PATH}" "${@}" || die "Failed: \"${*}\""
+}
+
+nim_use_enable() {
+ [[ -z "${2}" ]] && die "usage: nim_use_enable <USE flag> <compiler flag>"
+ use "${1}" && echo "-d:${2}"
+}
+
+src_configure() {
+ export XDG_CACHE_HOME="${T}/cache" #667182
+ unset NIMBLE_DIR
+ tc-export CC CXX LD
+
+ local build_type
+ if use debug ; then
+ build_type="debug"
+ else
+ build_type="release"
+ fi
+ export NIM_OPTS=( --parallelBuild:$(makeopts_jobs) -d:${build_type} )
+
+ # Override defaults
+ echo "gcc.exe = \"$(tc-getCC)\"" >> config/nim.cfg || die
+ echo "gcc.linkerexe = \"$(tc-getCC)\"" >> config/nim.cfg || die
+ echo "gcc.cpp.exe = \"$(tc-getCXX)\"" >> config/nim.cfg || die
+ echo "gcc.cpp.linkerexe = \"$(tc-getCXX)\"" >> config/nim.cfg || die
+}
+
+src_compile() {
+ _run bash ./build.sh
+
+ _run ./bin/nim ${NIM_OPTS[@]} compile koch
+ _run ./koch boot ${NIM_OPTS[@]} $(nim_use_enable readline useGnuReadline)
+ _run ./koch tools ${NIM_OPTS[@]}
+}
+
+src_install() {
+ _run ./koch install "${ED}"
+
+ # "./koch install" installs only "nim" binary
+ # but not the rest
+ exeinto /usr/bin
+ local exe
+ for exe in bin/* ; do
+ [[ "${exe}" == bin/nim ]] && continue
+ doexe "${exe}"
+ done
+
+ newbashcomp tools/nim.bash-completion nim
+ newbashcomp dist/nimble/nimble.bash-completion nimble
+}
+
+src_test() {
+ _run ./koch test
+}
diff --git a/dev-lang/perl/Manifest b/dev-lang/perl/Manifest
index 4712e6b2b2bb..006b42eeffc0 100644
--- a/dev-lang/perl/Manifest
+++ b/dev-lang/perl/Manifest
@@ -6,5 +6,5 @@ DIST perl-5.34.0.tar.xz 12881416 BLAKE2B 4139e77fbb38b2b72671c0b130233cf5ed35112
DIST perl-cross-1.3.6.tar.gz 110210 BLAKE2B 39074d6f4a526f59de2b1c40432936552e625a5a4e44fbb7ce3c1c3828b12c5298d1ab49b7d34ea92e2a4c8c88f8bbef8cc0c582a3fbbed975cf46d331e89c08 SHA512 d394fbd75d890442aa599eae8893a26540c8b7af966583ad1c3213c3fe0e074415cfed8814de8f397830833fd78267bdc55adc5267168198f269634c2ef3b982
EBUILD perl-5.34.0-r3.ebuild 26141 BLAKE2B 9eb33f6777b266b9a617a06d14b89ec29ca7e3a0a3596d5955f1b5f9e10a05db45eb2883b782329317065f2e92fee4378e75faebcbf49ad83d13f7714d036dcd SHA512 f0a140c3536192d0198e54b7d2f7b2316eae2b065627fe96df8949d97e0e61c37406e0cac7c827a58002251235c2b21f75d5b32f4cdf874596e6ec0fcbbe7295
EBUILD perl-5.34.0-r5.ebuild 25333 BLAKE2B b4ba8ef137c8b63648044bdf958346cce5577391673a0deef33f5ed9a322847fac5bad647c031a1b11ce2c186e729aeb5e143c16464b0cb98d6a31aca04cc23f SHA512 0cb2560fab5060333a5306086d6a9a9b356dbdc579e7da3eeb091b229cc510be8196f8a94ae8bd6d791e59aeb009f4b1c8e7ee776c9f9dd0d93634a37a119fe9
-EBUILD perl-5.34.0-r6.ebuild 25363 BLAKE2B 1ff81d0c12d6ae4a80d90a19c2ffb4017e6785aebd7d5c68d0fb7141b20123269cf647d69f1db7a32767c47e51c8e7bf4f95426dbeb7373f1dbe0b6a9f079b85 SHA512 0f52903d87b1bb0eb27fbd03cf3348d1831f07ddd971d3f65008ab5a6fc28c4f89950aa2cab1d50f9ff2b3e367ba794133ec2cfb986e6ffccb17544b2bef5ca9
+EBUILD perl-5.34.0-r6.ebuild 25763 BLAKE2B 5008d3d3b3d17b432b08387a6c5e28f847af73516847bf630aebe0c034b9ca182e75fdb1a4e9fa01d27401fc287f990afd31d62914269283c83dc74976e91a0d SHA512 e1b72d3681eb6f567c6b4d93c52bd0e91984f4b63ddbd205b602f3fb3da4b6392f6204400ecca84fb8dd9956b7634ce7e23f8e3c7e466614028dce48476a0965
MISC metadata.xml 431 BLAKE2B 89471506c7b258c1806338a5850ee9337f48b8e7497a3cad8b1e8bf18811152071d416732e0267e7d0c13386097990d1ca12bb0051deb7cb70403ab2e9bdb367 SHA512 87d2a0c6a10f71b243b1e9a79306ed0d440a7f447d84fe37f2bd3c40c60e8749fd9d7e97ad482e286153587b57d7db5d6a8df7cef94f332de7175f053dc843e1
diff --git a/dev-lang/perl/perl-5.34.0-r6.ebuild b/dev-lang/perl/perl-5.34.0-r6.ebuild
index c5e33db0b272..10a8bdee8bdb 100644
--- a/dev-lang/perl/perl-5.34.0-r6.ebuild
+++ b/dev-lang/perl/perl-5.34.0-r6.ebuild
@@ -430,6 +430,12 @@ src_prepare() {
if [[ ${CHOST} == *-darwin* ]] ; then
# fix install_name (soname) not to reference $D
sed -i -e '/install_name `pwd/s/`pwd`/\\$(shrpdir)/' Makefile.SH || die
+
+ # fix environ linkage absence (only a real issue on Darwin9)
+ if [[ ${CHOST##*-darwin} -le 9 ]] ; then
+ sed -i -e '/^PLDLFLAGS =/s/=/= -include crt_externs.h -Denviron="(*_NSGetEnviron())"/' \
+ Makefile.SH || die
+ fi
fi
default
@@ -614,9 +620,11 @@ src_configure() {
myconf "-Dld=env MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} $(tc-getCC)"
# Older macOS with non-Apple GCC chokes on inline in system headers
- # using c89 mode as injected by cflags.SH
+ # using c89 mode as injected by cflags.SH, in addition, we override
+ # cflags, so we loose PERL_DARWIN which enables compat code that
+ # apparently on more recent macOS releases is no longer necessary
[[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] && tc-is-gcc && \
- append-cflags -Dinline=__inline__
+ append-cflags -Dinline=__inline__ -DPERL_DARWIN
# flock on 32-bit sparc Solaris is broken, fall back to fcntl
[[ ${CHOST} == sparc-*-solaris* ]] && \
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest
index 5147fc123de9..614c53e02f05 100644
--- a/dev-lang/rust-bin/Manifest
+++ b/dev-lang/rust-bin/Manifest
@@ -229,6 +229,6 @@ EBUILD rust-bin-1.53.0.ebuild 5663 BLAKE2B 7d8c925c990e172264fd491b937c29b2760fd
EBUILD rust-bin-1.54.0.ebuild 5668 BLAKE2B 50f3bb8ee1fdf8de437a23417d505fa70df8caefc344f0f5cebe65206a59e8d0ff9c5855a852d9fa37c68294888f8f6ec1f1ca2d302d605c74c059dca9feffdc SHA512 5f54a746eb812df5659115f23b82488f7797177afef6e8b8047527f4ebee6862a5f5e83fcd9b9eea04f953bb773025fe6028d170077a2fa6e4e5519959faefbf
EBUILD rust-bin-1.55.0.ebuild 5668 BLAKE2B 50f3bb8ee1fdf8de437a23417d505fa70df8caefc344f0f5cebe65206a59e8d0ff9c5855a852d9fa37c68294888f8f6ec1f1ca2d302d605c74c059dca9feffdc SHA512 5f54a746eb812df5659115f23b82488f7797177afef6e8b8047527f4ebee6862a5f5e83fcd9b9eea04f953bb773025fe6028d170077a2fa6e4e5519959faefbf
EBUILD rust-bin-1.56.0.ebuild 5668 BLAKE2B 50f3bb8ee1fdf8de437a23417d505fa70df8caefc344f0f5cebe65206a59e8d0ff9c5855a852d9fa37c68294888f8f6ec1f1ca2d302d605c74c059dca9feffdc SHA512 5f54a746eb812df5659115f23b82488f7797177afef6e8b8047527f4ebee6862a5f5e83fcd9b9eea04f953bb773025fe6028d170077a2fa6e4e5519959faefbf
-EBUILD rust-bin-1.56.1.ebuild 6401 BLAKE2B dfcfff0ae9e75572bfb5f9002e628307acc08676bea1c7e46b96a541fb1786368a6648feea1fef587eaa8b31afd9baf3653c121f4d91961d728a2a2429c2f4e3 SHA512 07a0059cf5cfa7d70122e3ef4f98e594875714ec7a80825951fad5fa6b9ccd354608b66a42f6967e8639fe59210c37ee8649952e56ecfe1d500df203708db294
+EBUILD rust-bin-1.56.1.ebuild 6400 BLAKE2B 6480726b29ffef33d23861b33247570f762be534a26fac6a2cec980aa134ff80db856fec5e60c16fa4b29338ecb2b75292522bbf2614be14a97b4c87707b3019 SHA512 35ffcd88fac18078b133b06c1707c8d91a6f063e7014cf3a372a473b6640d03aa9001337eb20fa7235372517652f27c725cb343684bc43f2d2aee9aa0f3cf909
EBUILD rust-bin-1.57.0.ebuild 6405 BLAKE2B ad5c2a9ea2b11351473669d6c63a35d45cb75474fac186c251978afe787fd565f21cce1222f1522daf53f1418050409914c25b7be927a5d0bce509d499e4138c SHA512 44cef4e4832c276335185dbe05a71e1bf1470d6c3464ff845538fa3a5b8e6388ecbf7404b75553ba86aaa3ab9df62b074bf1ae1b5dae36aa52554419be95e1ed
MISC metadata.xml 591 BLAKE2B 6f9d494e400400b8b957eaa3c242b5f096808cc8372360eac0d9ae4bffcd2aa75b35bad4acc7248543b08466d8616b0145ae8a9b1534db1ad5ee838f07f9dc51 SHA512 9f59ea60d8ec9b748eac0789fa6750f32e4867e1c2cbe106ce270acdb7306d40fe8754315f8c65a924af43d5b3e88f4f50dec6361299de80ef1a25665aa03182
diff --git a/dev-lang/rust-bin/rust-bin-1.56.1.ebuild b/dev-lang/rust-bin/rust-bin-1.56.1.ebuild
index 2f51c72c6ac9..d5275329d2bc 100644
--- a/dev-lang/rust-bin/rust-bin-1.56.1.ebuild
+++ b/dev-lang/rust-bin/rust-bin-1.56.1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="$(rust_all_arch_uris ${MY_P})
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
SLOT="stable"
-KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~riscv x86"
+KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86"
IUSE="clippy cpu_flags_x86_sse2 doc prefix rls rust-src rustfmt"
DEPEND=""
diff --git a/dev-lang/rust/Manifest b/dev-lang/rust/Manifest
index 3dbda5180b0e..fbfdfb947be5 100644
--- a/dev-lang/rust/Manifest
+++ b/dev-lang/rust/Manifest
@@ -217,6 +217,6 @@ EBUILD rust-1.53.0.ebuild 20776 BLAKE2B 3c04bda7df5ce047b0e569a21cccf4b16a3a1355
EBUILD rust-1.54.0.ebuild 20780 BLAKE2B e786398c5cdb7e4baee057b839e0a2de42df1915109d92854f3c853eccb379edbcd89c109c43231370804b297912943b1ece1ada33bf3f0c6b24f9916c314512 SHA512 5e72f7e734727a853dcfe6773321f88ebf8369fda3e426d4e96a202c25cc5731173b13469fdd2b360e95e0fd59c12b30b1d934e156689bbc92e764b43b7d4ca5
EBUILD rust-1.55.0.ebuild 20687 BLAKE2B 1c462932adf84ff79b890f46672733c32ecb86428837ac7eeb0eea2a9d8d9ebb11ee04d46bbf6618b427952546d28912712d7d64772521338ccb0dbcebbf6d7c SHA512 ea19c5e506712421c139b8f72f55c28d993310fdd4223992c683ca4c74ed36ee87f31d24d52b2902dae9522189b45a4c61f8c7c68047587137c01d86fb06be06
EBUILD rust-1.56.0-r1.ebuild 20599 BLAKE2B 074ec32e12d0000c231e919071fa27f5e330eb046ed403cb0c3750aba23e90e9be9f6e1414795d1f76fe4dfe6ddedfb9de6f1685de1dd284b86a5272cd6d2616 SHA512 6598340e6dea370db70da26a22fb8c3f1b19cbe2c5c858e24b4d0e7aeb01c49c3f26cf79bee5cdcc0797d88971fcba4922c4747aa61971dc3d14d5f7c2ede938
-EBUILD rust-1.56.1.ebuild 20668 BLAKE2B 552ed2eb95d51c6f35c1de3a6abc5d22ff9c1f2c435abd88ca60ca4d3e3ecfa70cc1e0c3a0a584153abc2aa8bcfd01fd8bca9dfb8ec19321984eb81d2b3b27e5 SHA512 6f9c62da586763a22e62bebf15d0a82f436268ec8187b617b6d5be3334d962831a8140af3721ba0cc6902c61638e611a3cc4ef7a886ccdcaa2b65e5971055bcd
+EBUILD rust-1.56.1.ebuild 20667 BLAKE2B c3b7766a905df6bef5c7d8125e867a51cd41e1efdb7b57ce1db1ecbe5284dd9ca603b3f6f4eb0f4ef8d0afca02620ee6111ebafec058d864f93d9bbafdb19010 SHA512 64db6e53c51a8e7a63066a5aaa660d8c11c9930a0ef3c07a1907e999ad07a22d5d9c3f210baee9543854c60996e86b877449c22d821e978c872868905cf52d65
EBUILD rust-1.57.0.ebuild 20714 BLAKE2B 3f1d96513ace033bf24e9301e87cd7f85086b201a05cc4fd6caffa9bf8979773a3fb1d7a75a19f204fdb2e445270a5be2388f4a57328f7710d56e579ce234c9e SHA512 a8bc5f1210cdc48a5ab79b1f277c470d7d16aad0f58e39e0bc1ea391fc7cfdf28d08e797b0da7cac498b23cba9d715a5edd8595747af1279e857cee2e2c800f9
MISC metadata.xml 1224 BLAKE2B 90bfe107b31b32d18f23514ff47013976e2b754860491f7e190d5023acfa93bc0eeee9456cd048bb4bdef4e40911d90cc14f831454c45cf550319c42c65b701d SHA512 6524001cbfb59c94e7fb7df5a995de327fc193d18353363c4a0126f6c78ef92866f995cf592923aabc7cb2caebc6728f95badcd5c8c777ad7bb60cbbe6b20f07
diff --git a/dev-lang/rust/rust-1.56.1.ebuild b/dev-lang/rust/rust-1.56.1.ebuild
index 07a070344780..553d52f0fdb9 100644
--- a/dev-lang/rust/rust-1.56.1.ebuild
+++ b/dev-lang/rust/rust-1.56.1.ebuild
@@ -19,7 +19,7 @@ else
SLOT="stable/${ABI_VER}"
MY_P="rustc-${PV}"
SRC="${MY_P}-src.tar.xz"
- KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86"
+ KEYWORDS="amd64 arm arm64 ppc64 ~riscv x86"
fi
RUST_STAGE0_VERSION="1.$(($(ver_cut 2) - 1)).0"
diff --git a/dev-lang/tcl/Manifest b/dev-lang/tcl/Manifest
index 08f48d2eef13..405bb227d974 100644
--- a/dev-lang/tcl/Manifest
+++ b/dev-lang/tcl/Manifest
@@ -4,5 +4,5 @@ AUX tcl-8.6.9-include-spec.patch 488 BLAKE2B 06aa49163e8316b409238055d4b2ef67a3b
DIST tcl-core8.6.11-src.tar.gz 6041050 BLAKE2B 9c41d5ae5d22627b903d18c5ca607d4a2647d7af65d3029a463cf571d3fbe0bd48e15fef643e81de94296777985a36530a83718d4eb7befca4bc107ab860cc0d SHA512 fe3556c37305e3856743e9a202a320d44b1b3cbc926a1b7a4449ae5baf2f8df92214a9aa06f0a87645d032857fb71458fc864ff007fd73da60463ae5001f2d3f
DIST tcl-core8.6.12-src.tar.gz 6064625 BLAKE2B 30dc780562aa6955e2c417798cc96fabd23e947cee81146dc192156598e3c43f588864aab4392d62901b8964cf59bedb6cad1f064e32b03dd9733b3a0a7b5c8a SHA512 7144a50d19d3855edbda14b538cc94fe26c0dd357b979676c3fe02d599dab61ba777bf14f6aaebb63e238aeff1d0bad25ea7b0ff31b2398468f67fc0a305b9f3
EBUILD tcl-8.6.11.ebuild 4039 BLAKE2B 2c143dcff6f19bfcd1e0cf34f51f894f55ea0133b64f7e0c30d3b7c2a13ab516c3ce67d6ba79b97c8b5e315159d97dcfb52d1cecc524838f15f9b960e69b9dd6 SHA512 5d049c7a161fe264f6c91b0e0e651d6d3cc58aa7793effa15d3de023d41c892e76c7991f42cfd7cd78cdd36ffe86bffcd2ac237226c15c6b3b262160c98eb5fa
-EBUILD tcl-8.6.12.ebuild 4047 BLAKE2B 1583199077f7ac1f78bbbf11d997e1b37171e33ca63ce1052b77b7da36d036f2a394fa5d46e7eb55ea10abfa8fbd9aad01619106a8adcbd6fbb94f3975a559b6 SHA512 8cab4b454d708d3a7fae376141037bdda3ddffdec40e6a7f2239a0073dea40e5a1a7cb401b4564b153df72f81b8403a070c3406cdca8aca00fc9f142a503c895
+EBUILD tcl-8.6.12.ebuild 3529 BLAKE2B 91e0b380da43a8d0916022629fe3d9c7168cde0a6fdfbd1e7f61f35a52d28baeee503bdf1cb2b4bc137354554c81e5d18c0fd9e613a27f820e2ded0582f1a74a SHA512 7563ad59d3db3012ebbb273640c43282afc8c7c3035c7920142767232b409f56cf7fc815255585eb48e810f3182ca5bfec4e2896183e1a44f7d5a96acf62e4b9
MISC metadata.xml 319 BLAKE2B 0deb5e21e559ee13f3778e4f3aa453b868fe4686b77addfc925cc8d1be32648b8ecb47cda1e0bd7ec8601141c83b7edbf9cd64de4f26c9a66a3e44d2e8726191 SHA512 1987cf2e51de189cb14098bde54fd1372dd1b790eee68bdf3f7f2854b41602e649eae98c0b1699eac71a6106abd293802596652b90775294e4f74ddaf1039b84
diff --git a/dev-lang/tcl/tcl-8.6.12.ebuild b/dev-lang/tcl/tcl-8.6.12.ebuild
index 5a44ad9fa048..12ec6c9aac3d 100644
--- a/dev-lang/tcl/tcl-8.6.12.ebuild
+++ b/dev-lang/tcl/tcl-8.6.12.ebuild
@@ -119,18 +119,3 @@ multilib_src_install() {
dodoc "${SPARENT}"/{ChangeLog*,README.md,changes}
fi
}
-
-pkg_postinst() {
- for version in ${REPLACING_VERSIONS}; do
- if ver_test 8.6 -lt ${version}; then
- echo
- ewarn "You're upgrading from <${P}, you must recompile the other"
- ewarn "packages on your system that link with tcl after the upgrade"
- ewarn "completes. To perform this action, please run revdep-rebuild"
- ewarn "in package app-portage/gentoolkit."
- ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
- ewarn "upgrade them before this recompilation, too,"
- echo
- fi
- done
-}
diff --git a/dev-lang/typescript/Manifest b/dev-lang/typescript/Manifest
index 1c3a761f385c..38b94649f91d 100644
--- a/dev-lang/typescript/Manifest
+++ b/dev-lang/typescript/Manifest
@@ -1,3 +1,5 @@
DIST typescript-4.3.5.tgz 10627908 BLAKE2B 8fda1e3c2ee052273e5fa22245a0af26c3171b93a5bd6d57453e92828748bec83ca9cef075b005e5b73f7be7e18210d0fef24c08e7b8054fd3c1d30376357d44 SHA512 0ea4208a1690f5c52bb24268f642325bffa0d15c6c93c703b59e766b734687460d4dfa54480ad74a88725069ef6cf6b310f2eedfdf02d14c662923ab3ee994cc
+DIST typescript-4.5.4.tgz 11280056 BLAKE2B 0fce858e7b1ec2120de9e2cd0356cb6553a1730f7db58a001920928351c58186124e63b7189e37ce12ea6158744c1203ebed6e20234e1b32e47b07b3f48bcd24 SHA512 56062cd80d90211b86a61b73155eda40976e2768327d39639e02f38e97d6f45a18645eb1bb0d56d2f5bd82108a2df716ac21712bcd42486440bd2d699f87c852
EBUILD typescript-4.3.5.ebuild 766 BLAKE2B eaa420ad739ed7a4afee41b0d9f4fd7d3283a0a1ca75f5514383470bd4276538147f28ef777954605359a249df6a913e91f04ee75dd3ad55537803f10b1f1259 SHA512 3a65ae24834c4bb449361653daabd973c3bfa2b0d141cdfc90cac3dbcb913f9f161212c3a2b36d155adb9d13bc72051b23f056e6fa55f61e39a57fc0930107c5
+EBUILD typescript-4.5.4.ebuild 766 BLAKE2B eaa420ad739ed7a4afee41b0d9f4fd7d3283a0a1ca75f5514383470bd4276538147f28ef777954605359a249df6a913e91f04ee75dd3ad55537803f10b1f1259 SHA512 3a65ae24834c4bb449361653daabd973c3bfa2b0d141cdfc90cac3dbcb913f9f161212c3a2b36d155adb9d13bc72051b23f056e6fa55f61e39a57fc0930107c5
MISC metadata.xml 337 BLAKE2B ac8e737ab7726d464b009057fa44ce5d8fb9f23b0f36b547362df03caf57fbd1fb37357ac8fe0f0816793cfb0764508900874b4a3e50a5b1a624f2d55342e82a SHA512 39e9d9fb81ce9a925491894d4fa80aeeec95240307661857e7d6360b0d467e2e31ec8307762e0ad63ae4105674f6c8eaf1b37b4e2ebf96d6c8fcbbc67b1318f2
diff --git a/dev-lang/typescript/typescript-4.5.4.ebuild b/dev-lang/typescript/typescript-4.5.4.ebuild
new file mode 100644
index 000000000000..dcbc71b38d89
--- /dev/null
+++ b/dev-lang/typescript/typescript-4.5.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Superset of JavaScript with optional static typing, classes and interfaces"
+HOMEPAGE="https://www.typescriptlang.org"
+SRC_URI="https://registry.npmjs.org/${PN}/-/${P}.tgz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+DEPEND=""
+RDEPEND="net-libs/nodejs"
+BDEPEND=">=net-libs/nodejs-16[npm]"
+
+S="${WORKDIR}/package"
+
+src_compile() {
+ # nothing to compile here
+ :
+}
+
+src_install() {
+ npm \
+ --audit false \
+ --color false \
+ --foreground-scripts \
+ --global \
+ --offline \
+ --omit dev \
+ --prefix "${ED}"/usr \
+ --progress false \
+ --verbose \
+ install "${DISTDIR}/${P}".tgz || die "npm install failed"
+
+ einstalldocs
+}
diff --git a/dev-lang/zig/Manifest b/dev-lang/zig/Manifest
index 92cd65227a69..e6af4135df17 100644
--- a/dev-lang/zig/Manifest
+++ b/dev-lang/zig/Manifest
@@ -1,8 +1,10 @@
DIST zig-0.7.1.tar.gz 16082917 BLAKE2B 401bb079f2d0e2ad26837940e3b79c14237a492bd0b4df616f91b8b454ebd4ac3de36b2c988369c9eaaf7c2df4f95d4b1bb97760629f813ac8c7220e9542e12b SHA512 ad0b36f7b40481aca03940adfd42d34a724922993fc29a23a80412dc087ca6ce4876a400dc9bb7da455564521a88ea205c218988759ff6c56251a08232bfa41a
DIST zig-0.8.0.tar.gz 19596459 BLAKE2B 7b688fdd201ce7b0b1e12127c4b1bf898699de18f410021e09bb056a56666aa8de512688a0048d6ac0ea8d6b7dfdb86e1a5416d2fab0a4911e16269d7b6be2a4 SHA512 2082810d5ab0560167766e80f0853e5ff99e32b1935836a6a0029b8e1c88061c55dd0c285cbcc506f4c38aac8477ec7162b771537699be9b3d387de94e3baa57
DIST zig-0.8.1.tar.gz 19643170 BLAKE2B bc52f3399b3355a1fc7675329870dd107b21798fc562a9e55cd4a7c838cfdb2ed58ae3a01e3841a1a58c82fe27bec8758703b654b7548b9e431728aaabcd7ea6 SHA512 36bea566eee3dc5c00f2713cbc6616258dbadd3ee994749339f124f8b70c691cfe7fdce6a00194f879679ea417dadb3bcc244f8b79153957a426fea2d52caaf5
+DIST zig-0.9.0.tar.gz 21994175 BLAKE2B aadef89d5fddc3e802965125625e62140ac37bdac40b29ab8b7652056589c037cbed5d4e46889f335b3c296fb4ae2a7cafd5d064a02d728a8325ad515cdc8c7a SHA512 fef36221e818364b45cf65de210b0a9d535c411a510371a3ab4dfd6f4621c0a16dba786169f115a006966875102acc742abee19a74d83e2bc999ea5b8304b879
EBUILD zig-0.7.1.ebuild 1399 BLAKE2B 082b8b334ff914edfecdf59ed73201fa4a2b7988e97652304d3ef2f38545aacf1f2d03285c31139798140b8a119e4eea0bc39fecf2238ff3c2e159fdd9123275 SHA512 abbd6231a5090f6f37bd12a762864eb1d19fdc425570ea4e77c2314be5eb364839a644da38873d22429fbefeba53c289e045f693975002a414aa340da9698e4f
EBUILD zig-0.8.0.ebuild 1399 BLAKE2B 997269a639e0993cceab1bf48ea8b395d8644228461bd548b404e6dbe7d69a4dc30e4dbc7ecd1142993c9c67f850b972d3419ca65dd3c24947326544b66d4464 SHA512 ef53ad8dad89c7f1a3805b8a7be38ed09879c0c28e0766cca1037b1e19f1a18015a0cb2da7d1229b8e0c380bab42f4a67299391d43cb672ad893e950681b2889
EBUILD zig-0.8.1-r1.ebuild 1340 BLAKE2B 38c5990ffa9a28a6ceac5054569d186e26e79b5839435ec85203ec80fb5d8c4b8fb4990a65f740485b6cd302c7ad89f18146307ecb625760816f2608a738f860 SHA512 b9d54410407d1dcb41ff0290d53ca76f50718f02483df9a46c4424b80acb03dad802b1ef55d26659daa601288c53236378fa5c428fe71b222245f4f310d605ac
-EBUILD zig-9999.ebuild 1333 BLAKE2B b14833a2e5d6169ad8d60a99202a0fa809ce2b6b419a984caf51e40ce5e3cf59a76bde677274ed46192ff52cf2363dac63bfa5be926c460357d68926fc09a3bd SHA512 1812ad9f66127d1c60151907e68de6651ca70dfbf74fb4aee4ae43a3486d1ccbd90a351c26678c04551f26451de1d4f2bca03659da90b9a8b849f5b27c26cf72
+EBUILD zig-0.9.0.ebuild 1374 BLAKE2B d89db854175aef06fdd8d0b747044b153cb9b7043ce7a1f94e544e50a56a44f1c69e3d94daea3a23babcc1b24b1850044224d74f1054c80a000d4f289b9ea21a SHA512 4fe58ac7082f79f53f89a59f370aea86c3e99e1af86982d8df8e9b58154589fe14b96e3b316861d98ff666fcbaec676774d339f62c3bf1cd2debc584fb50998e
+EBUILD zig-9999.ebuild 1369 BLAKE2B fc325fcc3b89df99752b6a06d2694bd8afa88573759fb427f9dd8ff156c97a17b1562f24d1493e0478ea25bdf1fc0f8848c828e6b6410dd2a9d4a1e89426d0fd SHA512 0ebb58269f9b6ec9726a7c9747bfdee83da19b002f08947f108e32e2e6930f395b12583cdaae1b235dcdea77d7d8526ccb6b6879a4c687aeeb6714c659513d44
MISC metadata.xml 363 BLAKE2B d0bd697b6c053d67a9140bdba55c3b221f294b13716faf13ab296d17c082952115ad689793baf88994f44036f493d82c94797278f7dc3c5b2b2a336ccb078860 SHA512 72b11e0bf02c4c3aa2d0c483c3728b22e06d0035964f876e4f0402f1864874f85113dabc293415eeef3cfac71d0679a2f3735a67b4020e72755b1e09905db885
diff --git a/dev-lang/zig/zig-0.9.0.ebuild b/dev-lang/zig/zig-0.9.0.ebuild
new file mode 100644
index 000000000000..a433638a0feb
--- /dev/null
+++ b/dev-lang/zig/zig-0.9.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LLVM_MAX_SLOT=13
+inherit cmake llvm
+
+DESCRIPTION="A robust, optimal, and maintainable programming language"
+HOMEPAGE="https://ziglang.org/"
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://github.com/ziglang/zig.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/ziglang/zig/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BUILD_DIR="${S}/build"
+
+# According to zig's author, zig builds that do not support all targets are not
+# supported by the upstream project.
+ALL_LLVM_TARGETS=(
+ AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 NVPTX
+ PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore
+)
+ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
+LLVM_TARGET_USEDEPS="${ALL_LLVM_TARGETS[@]}"
+
+RDEPEND="
+ sys-devel/clang:${LLVM_MAX_SLOT}
+ >=sys-devel/lld-${LLVM_MAX_SLOT}
+ <sys-devel/lld-$((${LLVM_MAX_SLOT} + 1))
+ sys-devel/llvm:${LLVM_MAX_SLOT}[${LLVM_TARGET_USEDEPS// /,}]
+"
+DEPEND="${RDEPEND}"
+
+llvm_check_deps() {
+ has_version "sys-devel/clang:${LLVM_SLOT}"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DZIG_USE_CCACHE=OFF
+ -DZIG_PREFER_CLANG_CPP_DYLIB=ON
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ cd "${BUILD_DIR}" || die
+ ./zig build test || die
+}
diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild
index 6aa6d288a706..ca45b1e7e4dc 100644
--- a/dev-lang/zig/zig-9999.ebuild
+++ b/dev-lang/zig/zig-9999.ebuild
@@ -3,23 +3,24 @@
EAPI=7
+LLVM_MAX_SLOT=13
inherit cmake llvm
DESCRIPTION="A robust, optimal, and maintainable programming language"
HOMEPAGE="https://ziglang.org/"
-LICENSE="MIT"
-SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/ziglang/zig.git"
inherit git-r3
else
SRC_URI="https://github.com/ziglang/zig/archive/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64"
+ KEYWORDS="~amd64 ~arm64"
fi
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
BUILD_DIR="${S}/build"
# According to zig's author, zig builds that do not support all targets are not
@@ -31,12 +32,10 @@ ALL_LLVM_TARGETS=(
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
LLVM_TARGET_USEDEPS="${ALL_LLVM_TARGETS[@]}"
-LLVM_MAX_SLOT=13
-
RDEPEND="
sys-devel/clang:${LLVM_MAX_SLOT}
- >=sys-devel/lld-12.0.0
- <sys-devel/lld-14.0.0
+ >=sys-devel/lld-${LLVM_MAX_SLOT}
+ <sys-devel/lld-$((${LLVM_MAX_SLOT} + 1))
sys-devel/llvm:${LLVM_MAX_SLOT}[${LLVM_TARGET_USEDEPS// /,}]
"
DEPEND="${RDEPEND}"
@@ -50,6 +49,7 @@ src_configure() {
-DZIG_USE_CCACHE=OFF
-DZIG_PREFER_CLANG_CPP_DYLIB=ON
)
+
cmake_src_configure
}