# -*- 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           makefile 1.0
PortGroup           muniversal 1.1

github.setup        wren-lang wren-cli 0.4.0
revision            0
checksums           rmd160  9df6eeab574a1081bf4a7ce50a96263a09b8e0ca \
                    sha256  fafdc5d6615114d40de3956cd3a255e8737dadf8bd758b48bac00db61563cb4c \
                    size    522379

categories          lang
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

description         A command line tool for the Wren programming language

long_description    The CLI project is a small and simple REPL and CLI tool \
                    for running Wren scripts. It is backed by libuv to \
                    implement IO functionality, and is a work in progress.

homepage            https://wren.io/cli/
github.tarball_from archive


# Avoid conflict with libuv port
configure.cppflags-delete -I${prefix}/include

build.dir           ${worksrcpath}/projects/make.mac

build.args-append verbose=1

build.args.arm64    config=release_64bit
build.args.i386     config=release_32bit
build.args.ppc      config=release_32bit
build.args.ppc64    config=release_64bit
build.args.x86_64   config=release_64bit

destroot {
    copy ${worksrcpath}/bin/wren_cli ${destroot}${prefix}/bin/
}
