# $Id: Portfile,v 1.4 2005/04/01 23:18:45 jberry Exp $

PortSystem 1.0

name				hibernate2
version				2.1.8

categories			java databases
maintainers			jberry@opendarwin.org
platforms			darwin

description			Hibernate ORM for Java.
long_description	Hibernate is a powerful, ultra-high performance object/relational \
					persistence and query service for Java. Hibernate lets you develop \
					persistent classes following common Java idiom - including association, \
					inheritance, polymorphism, composition and the Java collections framework. \
					The Hibernate Query Language, designed as a "minimal" object-oriented \
					extension to SQL, provides an elegant bridge between the object and \
					relational worlds. Hibernate also allows you to express queries using \
					native SQL or Java-based Criteria and Example queries. Hibernate is \
					now the most popular object/relational mapping solution for Java.
homepage			http://www.hibernate.org/

distname			hibernate-${version}
master_sites		sourceforge:hibernate
checksums			md5 6a0459c511ded947d01cc7de15a518ef

depends_build		bin:ant:apache-ant
depends_lib			bin:java:kaffe
				
use_configure		no

worksrcdir			hibernate-2.1

build.cmd			ant
build.target		jar

destroot	{
	# Ensure needed directories
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc
		
	# Install the jar
	xinstall -m 644 ${workpath}/hibernate/${name}.jar \
		${destroot}${prefix}/share/java
		
	# Install the docs
	file copy ${worksrcpath}/doc \
		${destroot}${prefix}/share/doc/${name}
}
