# -*- 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

name                tardiff
version             0.1
revision            4
categories          sysutils textproc devel archivers
license             GPL
platforms           any
maintainers         ryandesign \
                    openmaintainer
supported_archs     noarch

description         compares the contents of two tarballs

long_description    TarDiff compares the contents of two tarballs and reports \
                    on any differences found between them. Its use is mainly \
                    for release managers who can use it as a QA tool to make \
                    sure no files have accidentally been left over or were \
                    added by mistake. TarDiff supports compressed tarballs, \
                    diff statistics and suppression of GNU autotool changes.

homepage            http://tardiff.coolprojects.org/
master_sites        ${homepage}
dist_subdir         ${name}/${version}
distfiles           ${name}

checksums           rmd160  08f52fbe95991669973bf955d6f11e9c74e25d5d \
                    sha256  fd649eb8f75cf3b860f2c49830909a17930911b787bee4fcce7d15fa961461ba

depends_run         bin:gnutar:gnutar

extract.only
extract.mkdir       yes

post-extract {
    copy ${distpath}/${name} ${worksrcpath}
}

patchfiles          patch-tardiff.diff \
                    patch-fix-statistic.diff \
                    patch-fix-unique-uniquebase.diff \
                    patch-CVE-2015-0857.diff \
                    patch-CVE-2015-0858.diff

use_configure       no

build {}

destroot {
    xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
}

livecheck.type      regex
livecheck.regex     {>TarDiff ([0-9.]+)<}
