# -*- 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/nalgeon/redka 0.6.0 v
revision            0
categories          databases
maintainers         {@sikmir disroot.org:sikmir} \
                    openmaintainer
license             BSD

description         Redis re-implemented with SQLite
long_description    {*}${description}

set go_ldflags      "-s -w -X main.version=${version}"

build.args-append   -ldflags \"${go_ldflags}\" \
                    -o bin/ \
                    ./cmd/redka

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

checksums           ${distname}${extract.suffix} \
                        rmd160  89b6092ea0c09a72a0d8ac58cf9455c8b19a189c \
                        sha256  cfccbfc5b4887211146352426efe0c3fcc2adbcfe71ef6b58da3d29cba867bde \
                        size    130315

go.vendors          github.com/tidwall/redcon \
                        lock    v1.6.2 \
                        rmd160  724ebc0d97f1cfdae8d19277161cb90f6cebe400 \
                        sha256  e35e584f33765b8fcea0a94c5b1fbc8473ae05fdfad1e1e766650cb308d440d3 \
                        size    49178 \
                    github.com/tidwall/match \
                        lock    v1.1.1 \
                        rmd160  c120d8ecd4d45abbb5b04deb804d1566b9a672fe \
                        sha256  9fd7217a82378a818d31cf6b01db7f9f176674cea583b139ee89b4f06da2ccfd \
                        size    5934 \
                    github.com/tidwall/btree \
                        lock    v1.7.0 \
                        rmd160  59017aac6c4fc24d16e2efffacf61f0d4d91e3e7 \
                        sha256  da5041373bcd1b0da101ec3cc26eeba68f778633a4611ad1165d1dd549a547aa \
                        size    31444 \
                    github.com/nalgeon/be \
                        lock    v0.2.0 \
                        rmd160  e12cc4a67ca36f633df2dc385302ecc5a8c6a7a1 \
                        sha256  6af905a7d7ace81d2970161d758ee2483254d317db413b77fd5fa87ba97936db \
                        size    6844 \
                    github.com/mattn/go-sqlite3 \
                        lock    v1.14.28 \
                        rmd160  911be9e03d227fbe5270191063d416a5fdf3bc70 \
                        sha256  84d71a61cd24d6828c21be2e4b01908185480853fa8dc68d7c2dbfa59910f9f6 \
                        size    2660019 \
                    github.com/lib/pq \
                        lock    v1.10.9 \
                        rmd160  beb0e233773f49d8d08ee991abf23bc8febf69d0 \
                        sha256  08610bf0370b202bee369b7303c3085e02c7f6fdfd42a3f58e8f033088151eea \
                        size    114528
