|
root / lang / ocaml-syntax-shims
ocaml-syntax-shims Plain Text 37 lines 836 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Build script for OCaml ocaml-syntax-shims library

set -e

cd "$SRCDIR"

export PATH="$PREFIX/bin:$PATH"

# libatomic is at /usr/lib (hammerhead BSD layout)
export LD_LIBRARY_PATH="/usr/lib:${LD_LIBRARY_PATH:-}"
export LIBRARY_PATH="/usr/lib:${LIBRARY_PATH:-}"

# Build with dune
dune build

# Install to package directory
dune install --prefix=$PREFIX --destdir="$PKGDIR"
[package]
name = "ocaml-syntax-shims"
version = "1.0.0"
description = "Backport newer OCaml syntax features to older compilers"
homepage = "https://github.com/ocaml-ppx/ocaml-syntax-shims"
license = "MIT"

[dependencies]
build = ["ocaml", "dune"]
runtime = ["ocaml"]

[[source]]
file = "ocaml-syntax-shims-1.0.0.tar.gz"
urls = [
    "https://github.com/ocaml-ppx/ocaml-syntax-shims/archive/refs/tags/1.0.0.tar.gz"
]
checksum = "skip"
extract = true