# $Id: Portfile 67685 2010-05-16 03:03:28Z blair@macports.org $

PortSystem 1.0
name			jgoodies-forms
version			1.2.1
categories		java
platforms		darwin
maintainers		blair

description		Framework to lay out and implement Swing panels.
long_description	The JGoodies Forms framework helps you lay out and \
			implement elegant Swing panels quickly and \
			consistently.  It makes simple things easy and the \
			hard stuff possible, the good design easy and the \
			bad difficult.
homepage		http://www.jgoodies.com/freeware/forms/

master_sites		http://www.jgoodies.com/download/libraries/forms/
distname		forms-1_2_1
checksums		md5 e2bddfe17d87265c15747f4463d8d595 \
			sha1 01db242c4dcfac4c2f0353ad9de243cdab269421 \
			rmd160 bb991da9c737aa53c59892bf24a4ce1b2dec45cc
use_zip			yes

depends_lib		bin:java:kaffe

use_configure		no

worksrcdir		forms-${version}

build.cmd		true

destroot {
	set javadir ${destroot}${prefix}/share/java
	set docdir ${destroot}${prefix}/share/doc/${name}

	xinstall -d -m 755 ${javadir}
	xinstall -d -m 755 ${docdir}

	file copy ${worksrcpath}/forms-${version}.jar ${javadir}/forms.jar
	foreach f {LICENSE.txt README.html RELEASE-NOTES.txt docs} {
		file copy ${worksrcpath}/${f} ${docdir}/
	}
}
