# -*- 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/svent/sift 0.9.2 v
go.toolchain_min    1.23.4
revision            0
categories          sysutils
license             GPL-3+
installs_libs       no
maintainers         {gmail.com:esafak @esafak} openmaintainer
description         A fast and powerful open source alternative to grep
long_description    sift is an alternative that aims for both speed and flexibility, \
                    adding features while trying to reach (or even surpass) the performance \
                    of the original grep. The additional features include gitignore support, \
                    conditions (e.g., match A only when preceded by B within X lines), \
                    full multi-core support and multiline matching.
homepage            https://sift-tool.org

checksums           ${distname}${extract.suffix} \
                        rmd160  6af86b0e72ae0c5cbac08e9513072d8ab0433723 \
                        sha256  d6d8274e475f3f1235eb0118a89f981e0f7741b9f27243d679d3ecd76f68fe03 \
                        size    39174

go.vendors          golang.org/x/term \
                        lock    v0.32.0 \
                        rmd160  b245db46f202e1df70d376b326aef1afe88b8a7b \
                        sha256  3dfccbf825f88320abe0dbc0ea98661da62c3b9e5088868b2c736bf708b68a43 \
                        size    15448 \
                    golang.org/x/sys \
                        lock    v0.33.0 \
                        rmd160  1c0c8967ed410be496af17ad009aacd0fb89034c \
                        sha256  2564f2911a5c695a9ad5720065ce58783b97a2d2f3fdaa2e8742a44fc0df4e2e \
                        size    1529295 \
                    golang.org/x/crypto \
                        lock    v0.38.0 \
                        rmd160  dbd574c8cd9f5f75ed0ab51fac09fe0dde526aa5 \
                        sha256  2fbbf5c9cb3e9f5d8d2cc7007bb75fe7485a2705d37d7510654ee0aa40e9a67e \
                        size    2157844 \
                    github.com/svent/go-nbreader \
                        lock    7cef48da76dca6a496faa7fe63e39ed665cbd219 \
                        rmd160  6fd0bad37adcf601cf22634cd58a66352651da03 \
                        sha256  09ec2d65c7d95e9ecde248ff8edfaf52acaf375cb57c281c2fabb5efa682d4d3 \
                        size    2782 \
                    github.com/svent/go-flags \
                        lock    4bcbad344f0318adaf7aabc16929701459009aa3 \
                        rmd160  48d481fdcff9300b8da07b3858f616ee0e1d8ee8 \
                        sha256  69241a513b0caa8ccff51e94e72e55740a60d296c67a6fe8f4925cc85a37a917 \
                        size    46006

build.args-append   -ldflags \"-X main.buildVersion=${version}\"

destroot {
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
}
