# -*- 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 name ocaml-dune github.setup ocaml dune 3.15.3 categories ocaml devel license MIT maintainers {landonf @landonf} openmaintainer description Composable build system for OCaml long_description Dune is a build system for OCaml and Reason. checksums rmd160 225591dbf7a761b1369ab6e4c5dcce1bd4939799 \ sha256 2e4d6287e9ff545d8e44cd74bba0951a829f7f5a282b5b60124df10d51eedc59 \ size 2960969 github.tarball_from archive if { ${subport} eq ${name} } { depends_lib port:ocaml-findlib configure.pre_args configure.args --bindir ${prefix}/bin \ --datadir ${prefix}/share/${name} \ --docdir ${prefix}/share/doc \ --etcdir ${prefix}/etc \ --libdir ${ocaml.package_dir} \ --mandir ${prefix}/share/man \ --sbindir ${prefix}/sbin # See: https://github.com/ocaml/dune/issues/8941 if {${os.major} < 11} { build.cmd-prepend \ DUNE_CONFIG__COPY_FILE=portable } build.target release } # See: https://trac.macports.org/ticket/68463 # Fix suggested by upstream: https://github.com/ocaml/dune/issues/8941 patchfiles-append patch-copyfile_stubs.c-define-COPYFILE_CLONE.diff subport ocaml-dune-configurator { # https://github.com/ocaml/dune/issues/6156 post-extract { file delete -force ${worksrcpath}/vendor } ocaml.build_type dune depends_lib-append port:ocaml-csexp } subport ocaml-dune-build-info { ocaml.build_type dune } subport ocaml-xdg { ocaml.build_type dune }