mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
pkg(pony-0.39.0): Add pony-lang 0.39.0 (#194)
* pkg(pony-0.39.0): Add pony-lang 0.39.0 * pkg(pony-0.39.0): Use `git submodule` to install llvm and get the source through cloning. * pkg(pony-0.39.0): Reset to 0.39.0 commit and cd into `ponyc` * pkg(pony-0.39.0): User proper installation instructions, like specified in the installation guide * pkg(pony-0.39.0): Setup compile script. * pkg(pony-0.39.0): Properly delete the build dir. * pkg(pony-0.39.0): Get rid of author key in metdata * pkg(pony-0.39.0): `CD` into `ponyc` right before cloning. * pkg(ponyc-0.39.0): Move `cd` to the correct palce.
This commit is contained in:
parent
90217a6202
commit
a2de8dea0c
6 changed files with 49 additions and 0 deletions
27
packages/ponylang/0.39.0/build.sh
vendored
Executable file
27
packages/ponylang/0.39.0/build.sh
vendored
Executable file
|
@ -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.39.0
|
||||
git reset --hard 85d897b978c5082a1f3264a3a9ad479446d73984
|
||||
|
||||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue