mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
pkg(pony-0.39.0): Add pony-lang 0.39.0
This commit is contained in:
parent
01bc13d115
commit
1a4750ea31
5 changed files with 45 additions and 0 deletions
28
packages/ponylang/0.39.0/build.sh
vendored
Executable file
28
packages/ponylang/0.39.0/build.sh
vendored
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
# Installing LLVM
|
||||
mkdir -p llvm
|
||||
cd llvm
|
||||
curl -OL "http://llvm.org/releases/3.4/llvm-3.4.src.tar.gz"
|
||||
tar xfz llvm-3.4.src.tar.gz
|
||||
rm llvm-3.4.src.tar.gz
|
||||
cd ..
|
||||
|
||||
# get sources
|
||||
curl -OL "https://github.com/ponylang/ponyc/archive/refs/tags/0.39.0.tar.gz"
|
||||
tar xfz 0.39.0.tar.gz
|
||||
rm 0.39.0.tar.gz
|
||||
|
||||
# cd into pony dir that was created from tar extraction.
|
||||
cd ponyc-0.39.0
|
||||
|
||||
# Build the vendored LLVM libraries that are included in the `lib/llvm/src`.
|
||||
make libs build_flags="-j$(nproc)"
|
||||
# Configure the CMake build directory.
|
||||
make configure
|
||||
# Will build pony and put it in `build/release`.
|
||||
make build
|
||||
# Install pony into `$PREFIX`.
|
||||
make prefix="$PREFIX" install
|
5
packages/ponylang/0.39.0/environment
vendored
Normal file
5
packages/ponylang/0.39.0/environment
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
||||
export LLVM_DIR=$PWD/llvm
|
6
packages/ponylang/0.39.0/metadata.json
vendored
Normal file
6
packages/ponylang/0.39.0/metadata.json
vendored
Normal 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
3
packages/ponylang/0.39.0/run
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
ponyc "$@"
|
3
packages/ponylang/0.39.0/test.pony
vendored
Normal file
3
packages/ponylang/0.39.0/test.pony
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
actor Main
|
||||
new create(env: Env) =>
|
||||
env.out.print("OK")
|
Loading…
Add table
Add a link
Reference in a new issue