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

github.setup        dtrx-py dtrx 8.5.3
revision            0
checksums           rmd160  26e15be4778024045ec02ba5c5316b6114471762 \
                    sha256  eec67869b85068fac8406f5018d781aee5b55422f3b7698bfea43468b2cec67c \
                    size    34147

categories          archivers
maintainers         {ryandesign @ryandesign} openmaintainer
license             GPL-3+
supported_archs     noarch
platforms           {darwin any}

description         extracts archives in a number of different formats

long_description    ${name} {*}${description}\; it currently supports tar, \
                    zip (including self-extracting .exe files), cpio, rpm, \
                    deb, gem, 7z, cab, rar, and InstallShield files. \
                    It can also decompress files compressed with gzip, \
                    bzip2, lzma, xz, or compress.

github.tarball_from releases

python.default_version \
                    311

depends_build-append \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-wheel

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        COPYING \
        README.md \
        ${docdir}
}
