# -*- 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/magefile/mage 1.15.0 v
revision            0

homepage            https://magefile.org

description         a Make/rake-like dev tool using Go

long_description    Mage is a make-like build tool using Go. You write \
                    plain-old Go functions, and Mage automatically uses them \
                    as Makefile-like runnable targets.

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

checksums           rmd160  d011bde13f84ec1729b8a8d6c7190175d448a8eb \
                    sha256  3ce55e39d175d925c015b4dc773cea1fc4d3c64af9edcec6f9b7ab9388b751bf \
                    size    8805332

patchfiles          patch-magefile-version.diff

build.cmd           ${go.bin} run
build.target        bootstrap.go

post-patch {
    reinplace \
        "s|@VERSION@|${github.tag_prefix}${version}|" \
        ${worksrcpath}/magefile.go
}

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