Files
Paul GuyotandPerry E. Metzger 7dd6f662d7 ocaml-re: update to 1.14.0
Drop the depends_lib on ocaml-seq: upstream no longer requires the
seq compatibility package (minimum OCaml is now 4.12.0, and the
stdlib's built-in Seq module is used directly). Fixes the build
failure where dune could not find library "seq".

The public re.mli/Re module interface gained new functions and
modules between 1.11.0 and 1.14.0 (Re.split_delim, character
classes in Re.Posix, non-raising Re.Group variants, hex/octal
escapes, \Q...\E quoting, Re.Pcre.get_named_substring_opt, the
experimental Re.Stream API), so dependents linking against ocaml-re
need a clean rebuild. Bump revision for all direct depends_lib
dependents:

  ocaml-expect_test_helpers_kernel, ocaml-ocamlformat (main subport
  only; ocaml-ocamlformat-lib does not depend on ocaml-re),
  ocaml-sexp_pretty, ocaml-patdiff, ocaml-core_extended, ocaml-jingoo,
  ocaml-alcotest, ocaml-camlp5-buildscripts,
  ocaml-expect_test_helpers_core, everparse, stanc3, abella, camlp5,
  ocaml-xtmpl

Of these, only ocaml-core_extended re-exports Re types in its own
public interface (lib/selector.mli), but nothing in the ports tree
depends on it, so the cascade stops there.

Also fix two pre-existing non-ASCII characters (curly apostrophes)
in ocaml-patdiff and ocaml-core_extended descriptions while touching
those files.

Closes: https://trac.macports.org/ticket/67356
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
2026-07-01 18:09:03 -04:00

55 lines
2.0 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup ocaml 1.1
github.setup stan-dev stanc3 2.35.0 v
epoch 1
revision 5
categories math lang ocaml
maintainers nomaintainer
license BSD
description New compiler for Stan, written in OCaml
long_description {*}${description}
homepage https://mc-stan.org/stanc3/stanc
checksums rmd160 065782d71577cea2ca65eabdf39e8a2199622989 \
sha256 cc194400f64b9010094f25289c210e65b6ed740a117165acdc4a6c98b00ec56f \
size 3628370
github.tarball_from archive
set py_ver 3.11
set py_ver_nodot [string map {. {}} ${py_ver}]
depends_lib-append port:ocaml-core \
port:ocaml-core_kernel \
port:ocaml-fmt \
port:ocaml-menhir \
port:ocaml-ppx_deriving \
port:ocaml-re \
port:ocaml-yojson \
port:python${py_ver_nodot}
configure.python ${prefix}/bin/python${py_ver}
post-patch {
reinplace "s|/usr/bin/python3|${configure.python}|" \
${worksrcpath}/src/frontend/parser_add_missing_messages.py \
${worksrcpath}/src/frontend/parser_strip_redundant_state.py
reinplace "s|python3|${configure.python}|" \
${worksrcpath}/test/integration/cli-args/debug-generation.t/run.t
}
depends_test-append port:ocaml-bisect_ppx \
port:ocaml-merlin \
port:ocaml-ocamlformat \
port:ocaml-ocp-indent \
port:ocaml-patdiff \
port:ocaml-utop
ocaml.build_type dune
dune.packages stanc
test.run yes