# -*- 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

github.setup        polyml polyml 5.9.1 v
revision            0
checksums           rmd160  d19af2038e5f87cb1e669fc32697db1732531141 \
                    sha256  52f56a57a4f308f79446d479e744312195b298aa65181893bce2dfc023a3663c \
                    size    3887664

categories          lang sml
maintainers         {veonix.com:phil.clayton @pclayton} openmaintainer
license             LGPL-2.1
description         An implementation of Standard ML.
long_description    Poly/ML is an extremely fast and efficient implementation of \
                    Standard ML. Program state can be saved in a memory-mapped \
                    persistent store. There are numerous addon libraries available.

homepage            https://www.polyml.org
github.tarball_from archive

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         port:gmp

# https://trac.macports.org/wiki/WimplicitFunctionDeclaration#strchr
configure.checks.implicit_function_declaration.whitelist-append strchr

configure.args      --build=${configure.build_arch}-apple-darwin${os.major} \
                    --enable-shared \
                    --without-x

post-destroot {
    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} COPYING \
        ${destroot}${prefix}/share/doc/${name}
}
