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

name                diffoscope
version             275
categories          sysutils python
platforms           {darwin any}
supported_archs     noarch
license             GPL-3+
maintainers         {raimue @raimue} \
                    openmaintainer

description         in-depth comparison of files, archives, and directories
long_description    diffoscope will try to get to the bottom of what makes \
                    files or directories different. It will recursively unpack \
                    archives of many kinds and transform various binary \
                    formats into more human readable form to compare them. It \
                    can compare two tarballs, ISO images, or PDF just as easily. \
                    Please note some file formats will require the installation \
                    of additional ports.

homepage            https://diffoscope.org/

checksums           md5 343066f7142831d11e1cacdf3ae3f14d \
                    rmd160 ed334a80f444ab8ccc2664d322a095d4c7784247 \
                    sha256 a0231ddca6afec8035e4b15ca4ed4cf67cf6d7b07b2a89960bc37e8e89cc4147 \
                    size   3280875

python.default_version 312

depends_lib-append  port:py${python.version}-libarchive-c \
                    port:py${python.version}-magic

depends_run-append  port:gnutar \
                    bin:bzip2:bzip2 \
                    bin:gzip:gzip \
                    bin:cpio:cpio

patchfiles          patch-locale.diff

depends_test-append \
                    port:py${python.version}-py \
                    port:py${python.version}-pytest \
                    port:py${python.version}-black

test.run            yes
test.env-append     PATH=${python.prefix}/bin:$env(PATH)