# -*- 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/makeworld-the-better-one/didder 1.2.0 v
revision            0

description         An extensive, fast, and accurate command-line image \
                    dithering tool.

long_description    ${name} is an extensive, fast, and accurate command-line \
                    image dithering tool. It is designed to work well for \
                    both power users as well as pipeline scripting.

categories          graphics
installs_libs       no
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

build.cmd           make
build.pre_args-append \
                    VERSION=${version} COMMIT=""
build.args          ${name}

patch {
    reinplace {s|GO111MODULE=on||g} ${worksrcpath}/Makefile
}

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

    xinstall -d ${destroot}${prefix}/share/man/man1
    xinstall -m 0644 ${worksrcpath}/${name}.1 \
        ${destroot}${prefix}/share/man/man1/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  af6e768f3664c4191f753b10130d7a545a7cfc6b \
                        sha256  f7b9b8da85df677c13517d1d005407771ab6b71a05f3ddce2f881457a486a119 \
                        size    47868

go.vendors          gopkg.in/yaml.v3 \
                        lock    9f266ea9e77c \
                        rmd160  06dca2ede07b2f31c515b4711fbebc1d5359b5e4 \
                        sha256  e70dd42fb30b7b2d0129c5cdf0e079caaf5602cab24081fdac830ec01204fa59 \
                        size    86890 \
                    golang.org/x/image \
                        lock    ac19c3e999fb \
                        rmd160  709c187f4f57199c2934ffd305e929e0e77b25c7 \
                        sha256  9529e8373c5f7e68023f6eff8cd6ad52f9adfaddd86a9b825e419dbfd4ba1b4f \
                        size    4902149 \
                    github.com/urfave/cli \
                        lock    v2.3.0 \
                        rmd160  fec9e73bc45d02b2afe43e8d9c76398722494e4b \
                        sha256  3138857026c9564559b3e734b9b8abfeda57354fc4aa87717879882bff68ef09 \
                        size    3408338 \
                    github.com/stretchr/testify \
                        lock    v1.6.1 \
                        rmd160  7e5b798212a8f15cd58a63985ae0b928eede8e6b \
                        sha256  44d77d9b5c1dc08fa710eac9bb324898210660458085cdf965b78a39b1010f2a \
                        size    84248 \
                    github.com/shurcooL/sanitized_anchor_name \
                        lock    v1.0.0 \
                        rmd160  c7e5322dba53e10db1711d65c146af5649b0c7c8 \
                        sha256  ed9418de8c92acfbbd8608745855ebfc67fa686c0a0a5245cf8eece8f540baa9 \
                        size    2144 \
                    github.com/russross/blackfriday \
                        lock    v2.0.1 \
                        rmd160  99cb49faff9bf24b8637dcdb3602c27c115810f3 \
                        sha256  4078d2cd3b1c6952133b214e4eaca95f3b31a01f87a03adabd7712e7d5f20f60 \
                        size    79665 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/makeworld-the-better-one/dither \
                        lock    v2.3.0 \
                        rmd160  246a6208e9a2bb45f3cfa4aaa648512f40c2d5c2 \
                        sha256  080aee357320006d07a8747fd12706e2b2640f162c0b1e8696e670d520bfe627 \
                        size    2162171 \
                    github.com/disintegration/imaging \
                        lock    v1.6.2 \
                        rmd160  eb7fc30603404bee955019c2a1a5f717bc784f89 \
                        sha256  69d5d90553fd187844d8ef4a8d89da9a6c9c1ec29402b44521aaa85640d0b83f \
                        size    2212673 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.0 \
                        rmd160  0303eae19a01f38fe314921fd965e4d09b9ef3ad \
                        sha256  810a597004388d68bb92d8aa612375419ba1080dd5fc2c66dd41b58f0ba4442c \
                        size    42348 \
                    github.com/cpuguy83/go-md2man \
                        lock    f79a8a8ca69d \
                        rmd160  85f342c341fa928e9ec874490c277bdabf1c39c6 \
                        sha256  2f3f8bc701df4890a5a4baf0b632ad3290be1e0aaf572b2e58fd57df93efc306 \
                        size    52040
