# $Id: Portfile,v 1.8 2006/06/30 16:28:45 jberry Exp $

PortSystem 1.0

name				hibernate3
version				3.1.3

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 caff8095849ce0fd716f2cf3678bc14c

depends_build		bin:java:kaffe \
					bin:ant:apache-ant \
					bin:antlr:antlr \
					port:junit
depends_lib			
				
use_configure		no

worksrcdir			hibernate-3.1

build.cmd			ant
build.target		jar
build.args			
build.env			CLASSPATH=${prefix}/share/java/junit.jar:${prefix}/share/java/antlr.jar

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