# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $

PortSystem 1.0
name			jetty
version			5.1.10
platforms		darwin
categories		www java
maintainers		landonf
description		Java HTTP Servlet Server
homepage		http://www.mortbay.org/jetty/
long_description	Jetty is a 100% Java HTTP Server and Servlet \
			Container. Jetty is a fully featured web server for \
			static and dynamic content. Unlike separate \
			server/container solutions, this means that your web \
			server and web application run in the same process, \
			without interconnection overheads and complications. \
			Furthermore, as a pure java component, Jetty can be \
			simply included in your application for \
			demonstration, distribution or deployment.

master_sites		sourceforge \
			ftp://jetty.mortbay.com/pub/

distname		${name}-${version}-all
worksrcdir		${name}-${version}

checksums		md5 e84764d1c02d796a49b3c205a3bce6c5
use_zip			yes

set javadest "${prefix}/share/java/${name}-${version}"

use_configure		no

build {}

destroot {
			file mkdir "${destroot}${javadest}"
			file mkdir "${destroot}${prefix}/share/doc"
			file copy "${worksrcpath}/lib" "${destroot}${javadest}/"
			file copy "${worksrcpath}/ext" "${destroot}${javadest}/"
			file copy "${worksrcpath}/etc" "${destroot}${javadest}/"
			file copy "${worksrcpath}/start.jar" "${destroot}${javadest}/"
			file copy "${worksrcpath}/stop.jar" "${destroot}${javadest}/"
			file copy "${worksrcpath}/webapps" "${destroot}${javadest}/"
}
