From bcff5a75989c5446e319c6d9da63beea02cacf8a Mon Sep 17 00:00:00 2001 From: RVG|lory <87276663+LoryPelli@users.noreply.github.com> Date: Sun, 14 May 2023 21:47:23 +0200 Subject: [PATCH] Updated to `Ponylang 0.54.1` --- packages/ponylang/0.54.1/build.sh | 27 ++++++++++++++++++++++++++ packages/ponylang/0.54.1/compile | 5 +++++ packages/ponylang/0.54.1/environment | 4 ++++ packages/ponylang/0.54.1/metadata.json | 5 +++++ packages/ponylang/0.54.1/run | 6 ++++++ packages/ponylang/0.54.1/test.pony | 3 +++ 6 files changed, 50 insertions(+) create mode 100644 packages/ponylang/0.54.1/build.sh create mode 100644 packages/ponylang/0.54.1/compile create mode 100644 packages/ponylang/0.54.1/environment create mode 100644 packages/ponylang/0.54.1/metadata.json create mode 100644 packages/ponylang/0.54.1/run create mode 100644 packages/ponylang/0.54.1/test.pony diff --git a/packages/ponylang/0.54.1/build.sh b/packages/ponylang/0.54.1/build.sh new file mode 100644 index 0000000..bb32372 --- /dev/null +++ b/packages/ponylang/0.54.1/build.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +PREFIX=$(realpath $(dirname $0)) + +# get sources - only get the latest copy of the relevant files +git clone -q https://github.com/ponylang/ponyc.git ponyc + +cd ponyc + +# release commit for 0.54.1 +git reset --hard 297efcef9f3b7b17b7b2ed11c3ed7365498d6637 + +# updates all submodules recursively along their tracking branches +# i.e. https://github.com/ponylang/ponyc/blob/main/.gitmodules +git submodule update --recursive --init + +# 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 + +cd .. +rm -rf ponyc \ No newline at end of file diff --git a/packages/ponylang/0.54.1/compile b/packages/ponylang/0.54.1/compile new file mode 100644 index 0000000..f00b22c --- /dev/null +++ b/packages/ponylang/0.54.1/compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Compile pony file(s) +rename 's/$/\.pony/' "$@" # Add .pony extension +ponyc -b out \ No newline at end of file diff --git a/packages/ponylang/0.54.1/environment b/packages/ponylang/0.54.1/environment new file mode 100644 index 0000000..c6ab089 --- /dev/null +++ b/packages/ponylang/0.54.1/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH \ No newline at end of file diff --git a/packages/ponylang/0.54.1/metadata.json b/packages/ponylang/0.54.1/metadata.json new file mode 100644 index 0000000..3398dda --- /dev/null +++ b/packages/ponylang/0.54.1/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "ponylang", + "version": "0.54.1", + "aliases": ["pony", "ponyc"] +} \ No newline at end of file diff --git a/packages/ponylang/0.54.1/run b/packages/ponylang/0.54.1/run new file mode 100644 index 0000000..8ac647b --- /dev/null +++ b/packages/ponylang/0.54.1/run @@ -0,0 +1,6 @@ +#!/bin/bash + +# removes the first arg from $@, which is always the filename +shift +# runs the executable with whatever args are left in $@ +./out "$@" \ No newline at end of file diff --git a/packages/ponylang/0.54.1/test.pony b/packages/ponylang/0.54.1/test.pony new file mode 100644 index 0000000..a93fd9a --- /dev/null +++ b/packages/ponylang/0.54.1/test.pony @@ -0,0 +1,3 @@ +actor Main + new create(env: Env) => + env.out.print("OK") \ No newline at end of file