# $Id: Portfile 68380 2010-06-02 15:57:01Z blair@macports.org $

PortSystem 1.0

name                    google-guava
set real_version        05
version                 0.beta.${real_version}
categories              java
platforms               darwin
maintainers             blair
description             Google's core libraries for Java 1.5
long_description        Google Guava replaces and includes Google Collections \
                        plus many other important core libraries.  It is a \
                        strict, backward-compatible superset of the Google \
                        Collections Library.  It also includes six months \
                        worth of bug fixes, documetnation fixes, and \
                        performance fixes, so it is strongly encouraged to \
                        instead of Google Collections.

homepage                http://code.google.com/p/guava-libraries/

master_sites            http://guava-libraries.googlecode.com/files
distname                guava-r${real_version}
use_zip                 yes

checksums               md5 a8725616a4227087e4b2dbf969ff0a26 \
                        sha1 61be6a1a0dd7e7fd6d004c1330fefedd2cda1b01 \
                        rmd160 c3b9e9e36bb49a0d412e9195d1e71582cf6e5eba

depends_lib             bin:java:kaffe

use_configure           no

build { }

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

        xinstall -d ${docdir}/api ${javadir}

        file copy ${worksrcpath}/guava-r${real_version}.jar \
                ${javadir}/google-guava.jar
        file copy ${worksrcpath}/COPYING ${docdir}
        file copy ${worksrcpath}/javadoc ${docdir}/api
}
