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

revision            0

go.setup            github.com/thatmattlove/oui 2.0.6 v

homepage            https://github.com/thatmattlove/oui

categories          net

description         MAC Address CLI Toolkit

long_description    Look up MAC Address vendors and convert MAC Addresses \
                    to other formats — offline and at the console.

maintainers         {stunninglyclear.com:matt @thatmattlove} openmaintainer

license             BSD

depends_build-append \
                    port:goreleaser

fetch.type          git

go.offline_build no
build.cmd           goreleaser
build.pre_args      build
build.args          --single-target

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

destroot {
    set binpath [glob -nocomplain ${worksrcpath}/dist/${name}_${goos}_${goarch}*/${name}]
    if {[llength $binpath] == 1} {
        xinstall -m 0755 $binpath ${destroot}${prefix}/bin/
    }
}
