# $Id: Portfile 67681 2010-05-16 02:40:53Z blair@macports.org $

PortSystem 1.0

name                    google-collections
epoch                   1
version                 1.0
categories              java
platforms               darwin
maintainers             blair
description             Suite of new collections and collection-related classes.

long_description        The Google Collections Library is a suite of new \
                        collections and collection-related goodness for \
                        Java 5.0, brought to you by Google.  This library \
                        is a natural extension of the Java Collections \
                        Framework you already know and love.  The major new \
                        types are: BiMap, Multiset, Multimap and Ordering.

homepage                http://code.google.com/p/google-collections/

master_sites            googlecode
distname                google-collect-${version}
use_zip                 yes

checksums               md5 bb2cd98cfd1676d965d22e27eeebd7cf \
                        sha1 880bce3810c92e7dcdbdfdb03dfc5aa7460da76b \
                        rmd160 db126eaf895ffa4006109fb638a114e3d0cf0776

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}/google-collect-${version}.jar \
                ${javadir}/google-collect.jar
        file copy ${worksrcpath}/COPYING ${docdir}
        file copy ${worksrcpath}/javadoc ${docdir}/api
}
