# -*- 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
# $Id: Portfile 87418 2011-11-20 23:22:45Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                dtrx
version             7.1
platforms           darwin
categories          archivers
maintainers         ryandesign
license             GPL-3+
supported_archs     noarch

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.

homepage            http://brettcsmith.org/2007/dtrx/
master_sites        ${homepage}
dist_subdir         ${name}

checksums           rmd160  17fa62d8c5bd6a6923d739debc589f627d105cff \
                    sha256  1c9afe48e9d9d4a1caa4c9b0c50593c6fe427942716ce717d81bae7f8425ce97

python.link_binaries_suffix

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

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
