# -*- 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/jonaslu/ain 1.6.0 v
revision            0

description         \
    Ain is a terminal HTTP API client. It's an alternative to Postman, Paw or \
    Insomnia.

long_description    \
    {*}${description} Ain was built to enable scripting of input and further \
    processing of output via pipes. It targets users who work with many APIs \
    using a simple file format. It uses curl, wget or httpie to make the \
    actual calls.

categories          www net
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

depends_run-append  bin:curl:curl

build.pre_args-append \
    -ldflags \" -X main.gitSha=release \"
build.args          ./cmd/${name}

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

checksums           ${distname}${extract.suffix} \
                        rmd160  2618ff4f6741b279d6e64e32d42be356defa6fa8 \
                        sha256  a60ce846edc6f8e5429c3cf14faf57f170b757c6ab13d8f36d64235a1959e6c8 \
                        size    189545

go.vendors          gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/check.v1 \
                        lock    20d25e280405 \
                        rmd160  412aa0d109919182ff84259e9b5bbc9f24d78117 \
                        sha256  233f8faf427ce6701ac3427f85c28bc6b6ae7cdc97a303a52873c69999223325 \
                        size    30360 \
                    github.com/pkg/errors \
                        lock    v0.9.1 \
                        rmd160  dc065c655f8a24c6519b58f9d1202eb266ecda40 \
                        sha256  208d21a7da574026f68a8c9818fa7c6ede1b514ef9e72dc733b496ddcb7792a6 \
                        size    13422 \
                    github.com/hashicorp/go-envparse \
                        lock    v0.1.0 \
                        rmd160  c5f912ea636abe0d92ca47c9fa7be02bda179038 \
                        sha256  6a5eb6ce21ef09d446b429a0e2394ecf79bc1260bbff77562372932f35f66fee \
                        size    11863
