# $Id: Portfile 75923 2011-02-13 01:41:15Z blair@macports.org $

PortSystem 1.0

name			spring-javaconfig
set realversion		1.0.0.M4
version			0.2.${realversion}
revision                1

categories		java
maintainers		blair
platforms		darwin

description		Type-safe, pure-Java way to configure applications
long_description	The Spring JavaConfig project provides a type-safe, \
			pure-Java option for configuring Spring Application \
			Contexts.  While most people currently use XML to \
			configure bean definitions in their Application \
			Contexts, Spring's versatility and metadata based \
			internal handling of bean definitions means \
			alternatives to XML config are easy to implement. 
homepage		http://www.springframework.org/javaconfig

distname		${name}-${realversion}
master_sites		http://s3.amazonaws.com/dist.springframework.org/milestone/SJC
checksums		md5 a507d2ee282d22cbc3041f0b90ab20c9 \
			sha1 a92594291dc5e81088023f52435c27ac8fdf20c7 \
			rmd160 3bdc3d2d9a925008515238dd939ed2daf0cf8286

use_zip			yes

depends_lib		bin:java:kaffe \
			port:spring-framework25 \
			port:cglib

use_configure		no

worksrcdir		${name}

build.cmd		true

destroot {
	# Ensure needed directories
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc

	file copy ${worksrcpath}/dist/org.springframework.config.java-${realversion}.jar \
		${destroot}${prefix}/share/java/${name}.jar

	file copy ${worksrcpath}/docs \
		${destroot}${prefix}/share/doc/${name}
}
