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

github.setup        vasi pixz 1.0.7 v
revision            0
checksums           rmd160  d43a73e5ef512bc1660131d3a9803fa26098bfe5 \
                    sha256  e5e32c6eb0bf112b98e74a5da8fb63b9f2cae71800f599d97ce540e150c8ddc5 \
                    size    120876

categories          archivers
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             BSD

description         Pixz (pronounced 'pixie') is a parallel, indexing version of XZ

long_description    The existing XZ Utils provide great compression in the .xz \
                    file format, but they have two significant problems: \
                    \
                    \n\n* They are single-threaded, while most users now have \
                      multi-core computers. \
                    \n* The .xz files they produce are just one big block of \
                      compressed data, rather than a collection of smaller \
                      blocks. This makes random access to the original data \
                      impossible. \
                    \
                    \n\nWith pixz, both these problems are solved.

github.tarball_from releases
use_xz              yes

depends_build       port:asciidoc \
                    port:pkgconfig

depends_lib         port:libarchive \
                    port:xz

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        LICENSE \
        NEWS \
        README.md \
        TODO \
        ${destroot}${docdir}
}
