|
root / lang / ocaml-re
ocaml-re Plain Text 48 lines 1.1 KB
 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
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Build script for OCaml re library

set -e

# Find and enter the extracted source directory
cd "$SRCDIR"

# Ensure OCaml toolchain is in PATH
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 only the re package (skip deprecated modules and tests)
dune build -p re

# Install to package directory
dune install re --prefix=$PREFIX --destdir="$PKGDIR"
# OCaml re - Regular expression library
# https://github.com/ocaml/ocaml-re

[package]
name = "ocaml-re"
version = "1.12.0"
release = 1
description = "OCaml regular expression library"
url = "https://github.com/ocaml/ocaml-re"
license = "LGPL-2.1-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

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

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

[build]
parallel = false