Files

55 lines
2.0 KiB
Tcl
Raw Permalink Normal View History

# -*- 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
2024-07-08 16:11:27 +08:00
github.setup stan-dev stanc3 2.35.0 v
2024-02-21 14:16:57 +08:00
epoch 1
2026-06-30 22:33:26 +02:00
revision 5
categories math lang ocaml
2026-04-11 19:42:02 +04:00
maintainers nomaintainer
license BSD
description New compiler for Stan, written in OCaml
long_description {*}${description}
homepage https://mc-stan.org/stanc3/stanc
2024-07-08 16:11:27 +08:00
checksums rmd160 065782d71577cea2ca65eabdf39e8a2199622989 \
sha256 cc194400f64b9010094f25289c210e65b6ed740a117165acdc4a6c98b00ec56f \
size 3628370
github.tarball_from archive
set py_ver 3.11
2024-02-21 14:16:57 +08:00
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}|" \
2024-07-08 16:11:27 +08:00
${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