pkg(pony-0.39.0): Add pony-lang 0.39.0

This commit is contained in:
Shivansh-007 2021-03-27 16:05:20 +05:30
parent 01bc13d115
commit d1cbf76f3e
5 changed files with 32 additions and 0 deletions

16
packages/ponylang/0.39.0/build.sh vendored Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
PREFIX=$(realpath $(dirname $0))
# get sources
curl -OL "https://github.com/ponylang/ponyc/archive/refs/tags/0.39.0.tar.gz"
tar xfz 0.39.0.tar.gz
# Build the vendored LLVM libraries that are included in the `lib/llvm/src`.
make libs -j$(nproc)
# Configure the CMake build directory.
make configure
# Will build ponyc and put it in `build/release`.
make build
# Install ponyc into `$PREFIX`.
make prefix="$PREFIX" install -j$(nproc)

4
packages/ponylang/0.39.0/environment vendored Normal file
View file

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

View file

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

3
packages/ponylang/0.39.0/run vendored Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
ponyc "$@"

3
packages/ponylang/0.39.0/test.pony vendored Normal file
View file

@ -0,0 +1,3 @@
actor Main
new create(env: Env) =>
env.out.print("OK")