# $Id: Portfile 58028 2009-09-21 04:35:50Z ryandesign@macports.org $

PortSystem 1.0

name			jsch
version			0.1.42
categories		java security
platforms		darwin
maintainers		nomaintainer
license			BSD
description		JSch is a pure Java implementation of SSH2.
long_description	${description}

homepage		http://www.jcraft.com/jsch/
master_sites	sourceforge
checksums		md5     3c912c6bccba6b46822ba406f5474a72 \
				sha1    50492d7d24a60771ceec891b38c893c141302c06 \
				rmd160  527b434953fd2bcf4bda6b515122549acddd3f5a
use_zip			yes

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

use_configure	no

build.cmd		ant
build.target	dist

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/java/
	eval xinstall -m 644 [glob ${worksrcpath}/dist/lib/jsch*.jar] \
		${destroot}${prefix}/share/java/jsch.jar
	set docdir ${destroot}${prefix}/share/doc/${name}
	xinstall -m 755 -d ${docdir}
	xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE.txt README ${docdir}
}
