riju/langs/ante.yaml

44 lines
1021 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

id: "ante"
aliases:
- "an"
name: "Ante"
install:
prepare:
apt:
- cargo
- cmake
- libssl-dev
- pkg-config
- python3-distutils
manual: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo install llvmenv
llvmenv init
# If compiler is not explicitly set to LLVM, then we get an
# error: unrecognized command-line option -Wnewline-eof.
CC=/usr/bin/clang CXX=/usr/bin/clang++ llvmenv build-entry -G Makefile -j$(nproc) 10.0.0
llvmenv global 10.0.0
manual: |
git clone https://github.com/jfecher/ante.git
pushd ante
LLVM_SYS_100_PREFIX="$(llvmenv prefix)" cargo build --release
install -d "${pkg}/opt/ante"
install -d "${pkg}/usr/local/bin"
cp target/release/ante "${pkg}/usr/local/bin/"
cp -R stdlib "${pkg}/opt/ante/"
popd
setup: |
mkdir -p "$HOME/.config/ante"
cp -R /opt/ante/stdlib "$HOME/.config/ante/"
main: "main.an"
template: |
print "Hello, world!"
compile: |
ante main.an
run: |
./main