pkg(ocaml-4.12.0): Add ocaml 4.12.0 (#200)

This commit is contained in:
Dan Vargas 2021-04-06 00:07:54 -05:00 committed by GitHub
parent ba8a0bc377
commit 7cbfdd9f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 0 deletions

17
packages/ocaml/4.12.0/build.sh vendored Executable file
View 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
View File

@ -0,0 +1,3 @@
#!/bin/bash
ocamlc -o out "$@"

3
packages/ocaml/4.12.0/environment vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
export PATH=$PWD/bin:$PATH

5
packages/ocaml/4.12.0/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "ocaml",
"version": "4.12.0",
"aliases": ["ocaml", "ml"]
}

4
packages/ocaml/4.12.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
shift
./out "$@"

1
packages/ocaml/4.12.0/test.ml vendored Normal file
View File

@ -0,0 +1 @@
print_string "OK\n";