# -*- 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        cisco ChezScheme 9.5 v
name                chez-scheme
categories          lang
platforms           darwin
supported_archs     i386 x86_64
license             Apache-2
maintainers         {outlook.com:mohd.akram @mohd-akram} \
                    openmaintainer

description         Chez Scheme

long_description    Chez Scheme is both a programming language and an \
                    implementation of that language, with supporting tools \
                    and documentation.

homepage            https://cisco.github.io/ChezScheme/

checksums           rmd160  79059beab471921b53ef3cf168919042792b26b4 \
                    sha256  59a16aeaa57b5cd594279d21c06d5c5968662251da832a29e332676ecc08e851

depends_build       port:nanopass-scheme port:zlib
depends_lib         port:libiconv port:ncurses port:xorg-libX11

patchfiles          patch-configure.diff \
                    patch-c-Mf-base.diff \
                    patch-c-Mf-ti3osx.diff \
                    patch-c-Mf-ta6osx.diff \
                    patch-s-Mf-base.diff

configure.pre_args  --installprefix=${prefix}
configure.args      --temproot=${destroot} \
                    --threads

build.target
build.env           CHEZSCHEMELIBDIRS=${prefix}/share/scheme/r6rs