From d1cbf76f3e8720760b1f502eb525b8db222c0402 Mon Sep 17 00:00:00 2001 From: Shivansh-007 Date: Sat, 27 Mar 2021 16:05:20 +0530 Subject: [PATCH] pkg(pony-0.39.0): Add pony-lang 0.39.0 --- packages/ponylang/0.39.0/build.sh | 16 ++++++++++++++++ packages/ponylang/0.39.0/environment | 4 ++++ packages/ponylang/0.39.0/metadata.json | 6 ++++++ packages/ponylang/0.39.0/run | 3 +++ packages/ponylang/0.39.0/test.pony | 3 +++ 5 files changed, 32 insertions(+) create mode 100755 packages/ponylang/0.39.0/build.sh create mode 100644 packages/ponylang/0.39.0/environment create mode 100644 packages/ponylang/0.39.0/metadata.json create mode 100644 packages/ponylang/0.39.0/run create mode 100644 packages/ponylang/0.39.0/test.pony 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")