pkg(pure-0.68): Add pure-lang 0.68 (#178)

* pkg(pure-0.68): Add pure-lang 0.68

* pkg(pure-0.68): Remove `--strip-components` flag and use SemVer.

* pkg(pure-0.68):Add -O flag on curl, so it just outputs to stdout

* pkg(pure-0.68):Add -L flag on curl, so that it can allow redirects.

* pkg(pure-0.68): Goodbye `v` flag from tar.

* pkg(pure-0.68): Add python alias.

* pkg(pure-0.68): Disable docs.

* pkg(pure-0.68): Fix settings for enable docs.

* Update build.sh

* Update environment

* Whoops typo.

* pkg(pure-0.68):Use semver naming method i.e. instead `0.68` it should be `0.68.0`

Co-authored-by: Shivansh-007 <Shivansh-007@users.noreply.github.com>
This commit is contained in:
Shivansh-007 2021-03-25 02:22:12 +05:30 committed by GitHub
parent 928c2a6d16
commit 3ad4375a68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 50 additions and 0 deletions

33
packages/pure/0.68.0/build.sh vendored Executable file
View File

@ -0,0 +1,33 @@
#!/usr/bin/env bash
PREFIX=$(realpath $(dirname $0))
# Python is available in the container as 'python3' and 'python2', not as 'python'
alias python=python3
# Installing LLVM and clang (the latter is optional but recommended)
curl -OL "http://llvm.org/releases/3.4/llvm-3.4.src.tar.gz"
curl -OL "http://llvm.org/releases/3.4/clang-3.4.src.tar.gz"
tar xfz llvm-3.4.src.tar.gz
tar xfz clang-3.4.src.tar.gz
mv clang-3.4 llvm-3.4/tools/clang
# Cleaning up gzip files.
rm llvm-3.4.src.tar.gz && rm clang-3.4.src.tar.gz
cd llvm-3.4
# Building and installing - LLVM and clang
./configure --prefix="$PREFIX" --enable-optimized --enable-targets=host-only --enable-docs="no" --enable-assertions="no"
make -j$(nproc)
make install -j$(nproc)
# Installing Pure
curl -sSLO "https://github.com/agraef/pure-lang/releases/download/pure-0.68/pure-0.68.tar.gz"
tar xfz pure-0.68.tar.gz
rm pure-0.68.tar.gz
cd pure-0.68
# Building and installing pure-lang
./configure --prefix="$PREFIX" --enable-release --with-tool-prefix="$PREFIX/bin" --with-static-llvm
make -j$(nproc)
make install -j$(nproc)

5
packages/pure/0.68.0/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH
export LD_LIBRARY_PATH=$PWD/lib

6
packages/pure/0.68.0/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "pure",
"version": "0.68.0",
"author": "Shivansh-007 <shivansh-007@outlook.com>",
"aliases": []
}

4
packages/pure/0.68.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
pure "$@"

2
packages/pure/0.68.0/test.pure vendored Normal file
View File

@ -0,0 +1,2 @@
using system;
puts "OK";