mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
pkg(ocaml-4.12.0): Add ocaml 4.12.0
This commit is contained in:
parent
0ee5003533
commit
46bd22f75a
6 changed files with 33 additions and 0 deletions
17
packages/ocaml/4.12.0/build.sh
vendored
Executable file
17
packages/ocaml/4.12.0/build.sh
vendored
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PREFIX=$(realpath $(dirname $0))
|
||||||
|
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
|
||||||
|
curl -L "https://github.com/ocaml/ocaml/archive/4.12.0.tar.gz" -o ocaml.tar.gz
|
||||||
|
tar xzf ocaml.tar.gz --strip-components=1
|
||||||
|
rm ocaml.tar.gz
|
||||||
|
|
||||||
|
./configure --prefix="$PREFIX"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install -j$(nproc)
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
rm -rf build
|
3
packages/ocaml/4.12.0/compile
vendored
Normal file
3
packages/ocaml/4.12.0/compile
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ocamlc -o out "$@"
|
3
packages/ocaml/4.12.0/environment
vendored
Normal file
3
packages/ocaml/4.12.0/environment
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export PATH=$PWD/bin:$PATH
|
5
packages/ocaml/4.12.0/metadata.json
vendored
Normal file
5
packages/ocaml/4.12.0/metadata.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"language": "ocaml",
|
||||||
|
"version": "4.12.0",
|
||||||
|
"aliases": ["ocaml", "ml"]
|
||||||
|
}
|
4
packages/ocaml/4.12.0/run
vendored
Normal file
4
packages/ocaml/4.12.0/run
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
shift
|
||||||
|
./out "$@"
|
1
packages/ocaml/4.12.0/test.ml
vendored
Normal file
1
packages/ocaml/4.12.0/test.ml
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
print_string "OK\n";
|
Loading…
Add table
Add a link
Reference in a new issue