diff --git a/packages/ponylang/0.39.0/build.sh b/packages/ponylang/0.39.0/build.sh new file mode 100755 index 0000000..bfedbde --- /dev/null +++ b/packages/ponylang/0.39.0/build.sh @@ -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) diff --git a/packages/ponylang/0.39.0/environment b/packages/ponylang/0.39.0/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/ponylang/0.39.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/ponylang/0.39.0/metadata.json b/packages/ponylang/0.39.0/metadata.json new file mode 100644 index 0000000..8749040 --- /dev/null +++ b/packages/ponylang/0.39.0/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "ponylang", + "version": "0.39.0", + "author": "Shivansh-007 ", + "aliases": ["pony", "ponyc"] +} \ No newline at end of file diff --git a/packages/ponylang/0.39.0/run b/packages/ponylang/0.39.0/run new file mode 100644 index 0000000..f7645d1 --- /dev/null +++ b/packages/ponylang/0.39.0/run @@ -0,0 +1,3 @@ +#!/bin/bash + +ponyc "$@" \ No newline at end of file diff --git a/packages/ponylang/0.39.0/test.pony b/packages/ponylang/0.39.0/test.pony new file mode 100644 index 0000000..556516a --- /dev/null +++ b/packages/ponylang/0.39.0/test.pony @@ -0,0 +1,3 @@ +actor Main + new create(env: Env) => + env.out.print("OK")