# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem          1.0

name                mgzip
version             1.2c
revision            1
categories          archivers
#license             GPLv2
maintainers         snc openmaintainer
description         a multi-processor capable .gz file creator.
long_description    mgzip is a program that makes use of SMP machines and zlib \
                    to use as many processors as you have to quickly compress \
                    files into gzip compatible format.
homepage            http://lemley.net/mgzip.html
depends_lib         port:zlib

platforms           darwin

master_sites        http://lemley.net/
distname            smp_mgzip_${version}
checksums           md5 24be15374a3c0107311d8476d9f4d03c \
                    sha1 a261a9abde6648d84b50377c6f18bb0e229a860c \
                    rmd160 e3a91c4705b2769ce377ce698593d395ac6dec3b

patchfiles          patch-mgzip.c.diff

configure.args      --with-zlib=${prefix}

test.run            yes

destroot {
    xinstall -m 755 ${worksrcpath}/mgzip ${destroot}${prefix}/bin
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     smp_${name}_(\[0-9.a-z\]+)\\.tar.gz
