# -*- 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        Wilfred difftastic 0.58.0
github.tarball_from archive
revision            0

description         An experimental diff tool that compares files based on \
                    their syntax

long_description    {*}${description}
    
categories          devel textproc
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           ${distname}${extract.suffix} \
                    rmd160  f5e83624b4a809a2d7a890f5cfdc10fe7d63d84e \
                    sha256  2f180ff34e969880613a3cdcd6f2feb53af310180817075199690048d6e23af6 \
                    size    42962336

build.pre_args-delete \
                    --frozen --offline

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