# -*- 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           cargo   1.0
PortGroup           github  1.0

github.setup        jameslittle230 stork 1.5.0 v
github.tarball_from archive
revision            0

categories          textproc www
license             Apache-2
maintainers         {saltant.net:jobrien_stork @neirbowj} \
                    openmaintainer
description         Impossibly fast web search, made for static sites.
long_description    Stork is a library for creating beautiful, fast, \
                    and accurate full-text search interfaces on the web.
homepage            https://stork-search.net/

checksums           ${distname}${extract.suffix} \
                    rmd160  a07ddcc811fee08a22d1f8ef361307d6764e49b9 \
                    sha256  4f9cf8dcbf3ebec83d64f34d7b1d9b39ce753e70d872b46d9a4a314bad10bf01 \
                    size    300753

build.pre_args-delete \
                    --frozen
build.args-append \
                    --locked

test.run            yes
test.cmd            ${cargo.bin} test
test.args           --target [cargo.rust_platform]

destroot {
    xinstall -m 0755 \
        ${worksrcpath}/target/[cargo.rust_platform]/release/${name} \
        ${destroot}${prefix}/bin/
}
