# -*- 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            unzoo
version         4.4
revision        1
checksums       rmd160  fd8e0c97e22adfc8fefd6f8d1b70d8ca53b234f3 \
                sha256  ddbaf41e7edd833eed987892caeb6ac39f47b9dd8abb660f906933fd91fbbf55 \
                size    26842

categories      archivers
license         public-domain
platforms       darwin
maintainers     nomaintainer
description     A zoo archive extractor

long_description \
    Unzoo is a zoo archive extractor written by Martin \
    Schoenert. If unzoo is called with no arguments, it will first \
    print a summary of the commands and then prompt for command lines \
    interactively.

homepage        http://freecode.com/projects/unzoo/
master_sites    http://critical.ch/unzoo/

patchfiles      array.patch \
                implicit.patch \
                utime.patch

use_configure   no
universal_variant   yes

build {
    system -W ${worksrcpath} "${configure.cc} ${configure.cflags} [get_canonical_archflags cc] -DSYS_IS_UNIX unzoo.c -o unzoo"
}

destroot {
    xinstall ${worksrcpath}/unzoo ${destroot}${prefix}/bin
    xinstall -m 0444 ${worksrcpath}/unzoo.1 ${destroot}${prefix}/share/man/man1
}
