# -*- 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                    lbzip2
version                 2.5
categories              archivers
platforms               darwin
maintainers             {eborisch @eborisch} openmaintainer
license                 GPL-3+

description             ${name} - parallel bzip2 compression utility

long_description        ${name} is a free, multi-threaded compression utility \
                        with support for bzip2 compressed file format.

homepage                http://${name}.org/
master_sites            http://archive.${name}.org/

checksums \
    rmd160  47346a01d26754ff6d3b78deebad2f6aaa2704bb \
    sha256  46c75ee93cc95eedc6005625442b2b8e59a2bef3ba80987d0491f055185650e9

configure.args-append   --enable-largefile

variant debug \
  description { Enable tracing and other options useful to developers } {
    configure.args-append \
                            --enable-tracing \
                            --enable-warnings \
                            --disable-silent-rules
    configure.optflags      -g
}

test.run                yes
test.target             check

livecheck.url           ${homepage}download
livecheck.type          regex
livecheck.regex         {lbzip2-([0-9]+(\.[0-9]+)+)\.tar\.bz2}