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

# configure script checks size of various types
PortGroup           muniversal 1.0

name                fastjar
version             0.94
revision            2
checksums           rmd160  af6b4ea20a07abde3184c49c30f620695525bec0 \
                    sha256  5a217fc3e3017efb18fd1316b38d2aaa7370280fcf5732ad8fff7e27ec867b95 \
                    size    77399

categories          archivers java
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

description         fast implementation of Sun's jar utility in C

long_description    Fastjar is an implementation of Sun's jar utility \
                    that comes with the JDK, written entirely in C, \
                    and runs in a fraction of the time while being \
                    100% feature compatible.

homepage            http://fastjar.sourceforge.net/
master_sites        sourceforge:project/fastjar/fastjar/${version}

depends_lib         port:zlib

patchfiles          implicit.patch \
                    version.patch

post-patch {
    reinplace "s|@@VERSION@@|${version}|g" ${worksrcpath}/configure
}

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS CHANGES COPYING ChangeLog \
        INSTALL LICENSE NEWS README ${destroot}${docdir}
}
