distributable: url: https://github.com/denoland/deno/archive/refs/tags/v{{ version }}.tar.gz strip-components: 1 relocatable: true versions: github: denoland/deno provides: - bin/deno interprets: - .ts - .js build: script: | # https://github.com/denoland/deno/issues/15596 find ext/ffi/tinycc -maxdepth 0 -empty -exec \ git clone https://github.com/TinyCC/tinycc.git {} \; if test {{ hw.target }} = x86_64-apple-darwin; then # our LLVM cannot build with deployment target set to 10.6 sed -i.bak s/MACOSX_DEPLOYMENT_TARGET/\#/ ext/ffi/tinycc/Makefile fi cargo build --release mkdir -p "{{ prefix }}"/bin mv target/release/deno "{{ prefix }}"/bin dependencies: git-scm.org: 2 # to build tinycc rust-lang.org: 1 llvm.org: '>=13' # macOS/aarch64 requires this (FIXME only dep where needed) curl.se: '*' # required to download v8 (python is another option) tea.xyz/gx/make: '*' # required to build the libffi parts test: script: deno --version