# $Id: Portfile 79710 2011-06-23 20:58:15Z blair@macports.org $

PortSystem 1.0
name                    jgoodies-common
version                 1.2.0
categories              java
platforms               darwin
maintainers             blair

description             Helper classes for other jgoodies-* packages
long_description        The JGoodies Common library provides convenience \
                        code for other JGoodies libraries and applications.
homepage                http://www.jgoodies.com/downloads/libraries.html

master_sites            http://www.jgoodies.com/download/libraries/common/
distname                ${name}-1_2_0
checksums               md5 777e651327516baa1aa5c7ff8322dbcb \
                        sha1 0463b2d680e4d736b1b50e870b9c090ee41e1995 \
                        rmd160 ee9298d5c5b0831d23421bc05562fb134023c3a9
use_zip                 yes

depends_lib             bin:java:kaffe

use_configure           no

worksrcdir              ${name}-${version}

build.cmd               true

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}/
        }
}
