PortSystem 1.0
name                    jgoodies-looks
version                 2.5.2
categories              java
platforms               darwin
maintainers             nomaintainer

description             High-fidelity Windows and multi-platform appearance.
long_description        The JGoodies look and feels make your Swing \
                        applications and applets look better.  They have been \
                        optimized for readability, precise micro-design and \
                        usability.
homepage                http://www.jgoodies.com/freeware/looks/

master_sites            http://www.jgoodies.com/download/libraries/looks/
distname                ${name}-2_5_2
checksums               sha1 3c18092020e78989c054fac4870046eff8f29c73 \
                        sha256 edd0670c972715c0951094bdeac88047c8836097aea1e78c720d2fe78e8dbbbd
use_zip                 yes

depends_lib             bin:java:kaffe \
                        port:jgoodies-common

use_configure           no

worksrcdir              ${name}-${version}

if {${os.platform} eq "darwin" && ${os.major} < 10} {
    known_fail          yes
    pre-fetch {
        ui_error "${name} ${version} requires OS X 10.6 or greater for Java 6."
        return -code error "incompatible OS X version"
    }
}

build {}

destroot {
        set javadir ${destroot}${prefix}/share/java
        set docdir ${destroot}${prefix}/share/doc/${name}

        xinstall -d -m 755 ${javadir}
        xinstall -d -m 755 ${docdir}

        file copy ${worksrcpath}/${name}-${version}.jar ${javadir}/${name}.jar
        foreach f {LICENSE.txt README.html RELEASE-NOTES.txt docs} {
                file copy ${worksrcpath}/${f} ${docdir}/
        }
}