# $Id: Portfile,v 1.2 2005/09/09 21:13:34 jberry Exp $

PortSystem 1.0

name				cglib
version				2.1_2

categories			java
maintainers			jberry@opendarwin.org
platforms			darwin

description			cglib - a code generation library for java byte code.
long_description	cglib is a powerful, high performance and quality Code \
					Generation Library, It is used to extend JAVA classes and \
					implement interfaces at runtime
homepage			http://cglib.sourceforge.net/

master_sites		sourceforge
checksums			md5 5e8729585a9df5483b467705e3bd68d5

distname			${name}-src-${version}
worksrcdir			.

extract.suffix		.jar
extract.cmd			jar
extract.pre_args	xf
extract.post_args

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

use_configure		no

build.cmd			ant
build.target		dist

destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc
		
	foreach f "${name} ${name}-nodep" {
		xinstall -m 644 \
			${worksrcpath}/dist/${f}-${version}.jar \
			${destroot}${prefix}/share/java/${f}.jar
	}
	
	file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
}
