mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
c09f6ce73a
This is our current consistency choice. I think ideally we’d make this configurable somehow.
62 lines
1.8 KiB
YAML
62 lines
1.8 KiB
YAML
distributable:
|
|
url: https://github.com/denoland/deno/archive/refs/tags/v{{ version }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: denoland/deno
|
|
|
|
provides:
|
|
- bin/deno
|
|
|
|
interprets:
|
|
# extensions: [ts, js] # nodejs.org for now
|
|
extensions: ts
|
|
args: [deno, run]
|
|
|
|
runtime:
|
|
env:
|
|
DENO_NO_UPDATE_CHECK: "true"
|
|
|
|
build:
|
|
script: |
|
|
# https://github.com/denoland/deno/issues/15596 -- reported fixed in 1.25.3
|
|
if semverator satisfies '>=1.25.0<1.25.4' {{ version }}; then
|
|
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
|
|
fi
|
|
|
|
# FIXME: until we unblock rust-lang.org>1.65.0, we need a feature flag
|
|
# to compile deno.land
|
|
if semverator satisfies '<1.66.0' {{ deps.rust-lang.org.version }}; then
|
|
git apply props/unzip_option_feature.diff
|
|
fi
|
|
|
|
# change default bindir to ~/.local/bin per our conventions
|
|
git apply props/default_bindir.diff
|
|
|
|
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<1.67||~1.68" #1.67.0 doesn't build
|
|
rust-lang.org/cargo: ^0.65
|
|
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
|
|
crates.io/semverator: '*'
|
|
|
|
test:
|
|
script: |
|
|
deno --version | grep {{version}}
|
|
mv $FIXTURE test.ts
|
|
deno install test.ts
|
|
test "$(.local/bin/test)" = "Hello, world!"
|
|
fixture: |
|
|
console.log("Hello, world!");
|
|
|