# -*- 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/hofstadter-io/hof 0.6.10 v
go.offline_build    no
revision            0

homepage            https://docs.hofstadter.io

description         \
    The High Code Framework \(low-code for devs\), a flexible data modeling & \
    code generation system

long_description    \
    The ${name} tool tries to remove redundent development activities by \
    using high level designs, code generation, and diff3 while letting you \
    write custom code directly in the output. \(low-code for developers\) \
    Users write Single Source of Truth \(SSoT\) design for data models and \
    the application generators. ${name} reads the SSoT, processes it through \
    the code generators, and outputs directories and files. Users can write \
    custom code in the output, change their designs, and regenerate code in \
    any order. ${name} can be customized and extended by only editing text \
    files and not hof source code. Use your own tools, technologies, and \
    practices, ${name} does not make any choices for you. ${name} is powered \
    by Cue (https://cuelang.org & https://cuetorials.com)

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

checksums           rmd160  26e810bd4dc9526a4c88316302b238ea435e0cad \
                    sha256  87703d19a23121a4b617f1359aed9616dceb6c79718245861835b61ccff7e1eb \
                    size    2409504

build.pre_args-append \
    -ldflags \" \
        -X ${go.package}/cmd/${name}/verinfo.BuildArch=${goarch}    \
        -X ${go.package}/cmd/${name}/verinfo.BuildOS=${goos}        \
        -X ${go.package}/cmd/${name}/verinfo.Commit=Release         \
        -X ${go.package}/cmd/${name}/verinfo.Version=${version}     \
    \"
build.args          ./cmd/${name}

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

github.livecheck.regex  {([0-9.]+)}
