# -*- 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                gzip
version             1.13
revision            0

categories          archivers
license             GPL-3+
platforms           darwin freebsd
maintainers         nomaintainer
conflicts           ncompress

description         gnu replacement utility for unix compress
long_description \
    gzip (GNU zip) is a compression utility designed to be a \
    replacement for compress. Its main advantages over compress are \
    much better compression and freedom from patented algorithms.

homepage            https://www.gzip.org/
master_sites        gnu

checksums           rmd160  8d8e65462b8b3f3394baa9006e2d39493890fd37 \
                    sha256  20fc818aeebae87cdbf209d35141ad9d3cf312b35a5e6be61bfcfbf9eddd212a \
                    size    1294158

depends_build       port:texinfo

installs_libs       no

configure.args      --disable-silent-rules \
                    DEFS=NO_ASM

# Bypass year 2038 awareness code that causes the universal variant to fail.
# https://trac.macports.org/ticket/55643
configure.args-append \
                    --disable-year2038

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
        THANKS TODO ${destroot}${docdir}
}

test.run            yes
test.target         check
