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

go.setup            github.com/traefik/yaegi 2.0.0 v
# 2.0 is a new major version; its Go module is github.com/traefik/yaegi/v2.
go.package          github.com/traefik/yaegi/v2
go.toolchain_min    1.26.0
# 2.0 has 21 module dependencies; fetch them at build time.
go.offline_build    no
revision            0

description         \
    Yaegi is Another Elegant Go Interpreter

long_description    \
    Yaegi is Another Elegant Go Interpreter. It powers executable Go scripts \
    and plugins, in embedded interpreters or interactive shells, on top of \
    the Go runtime. It has complete support for the Go specification, is \
    written in Pure Go, and works everywhere Go works. All Go & runtime \
    resources accessible from script (with control), and for security, \
    "unsafe" and "syscall" packages are neither used nor exported by default.

categories          devel
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  9edc9316e154e16d8a47e711ed371bbb10fca833 \
                    sha256  ac1e4e7c38a7f2911ca0b7786caaa8998d2ca7f301cfaf3cca536b256af492e1 \
                    size    40760407

# 2.0 has no Makefile; build the interpreter command directly.
build.args-append   -o ${name} ./cmd/yaegi

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
