# $Id: Portfile 51842 2009-06-05 05:20:02Z blair@macports.org $

PortSystem 1.0

name			google-collections
version			20090211.1.0.2
set real_version	1.0-rc2
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
distfiles		google-collect-${real_version}.zip
distname		google-collect-${real_version}
use_zip			yes

checksums		md5 bbcca5d5aa897c18a91bec7fcce69ac2 \
			sha1 fc2dcc2c5e0835e29b177180f7c058c268df7b7e \
			rmd160 226257aa12d5eb04113aa617f659257c8c6f6b8a

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 -m 755 ${javadir}
	xinstall -d -m 755 ${docdir}/api

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