# $Id: Portfile 111152 2013-09-16 02:35:17Z jmr@macports.org $

PortSystem 1.0

name                lzip
epoch               20091025
version             1.14
revision            1
categories          archivers
license             GPL-3+
platforms           darwin
maintainers         nomaintainer
description         Compression program based on LZMA similar to gzip or bzip2
long_description    Lzip is a lossless data compressor based on the LZMA    \
                    algorithm, with very safe integrity checking and a      \
                    user interface similar to the one of gzip or bzip2.     \
                    Lzip decompresses almost as fast as gzip and compresses \
                    better than bzip2, which makes it well suited for       \
                    software distribution and data archiving.
homepage            http://www.nongnu.org/lzip/lzip.html
master_sites        http://download.savannah.gnu.org/releases/lzip/

checksums           rmd160  cab15b04900c9355e4b2f6eec3c07c756046195d \
                    sha256  7ff5cc521560edb2a0a6cdf258cf3afdaeb1dbcc354d96d011d0dd7ec584cbe7

variant universal {}

configure.args      CXX="${configure.cxx}" \
                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
                    CPPFLAGS="${configure.cppflags}" \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    file mkdir ${docdir}
    xinstall -m 644 -v -W ${worksrcpath} \
      AUTHORS ChangeLog COPYING NEWS ${docdir}
}

livecheck.type      regex
livecheck.url       ${master_sites}/?C=M&O=D
livecheck.regex     ${name}-(\[-0-9.\]+)\\.tar\\.gz
