# $Id: Portfile 30235 2007-10-22 23:13:37Z jmpp@macports.org $

PortSystem 1.0

name		jython
version		2.1
categories	lang python java
platforms	darwin
maintainers	nomaintainer
description	Python implementation in pure Java
long_description	Jython is an implementation of the high-level, \
			dynamic, object-oriented language Python written in \
			100% Pure Java, and seamlessly integrated with the \
			Java platform. It thus allows you to run Python on any \
			Java platform.

homepage	http://www.jython.org/
master_sites	http://ftp.belnet.be/pub/mirror/fink.sourceforge.net/distfiles/
checksums	md5 5a32f0f0b584d99544cb5b12e0383ac7
use_bzip2	yes

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

use_configure	no

build.cmd	ant dist || ant jar
build.target

destroot	{
	xinstall -m 755 ${filespath}/jython ${destroot}${prefix}/bin
	reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/jython
	xinstall -m 755 -d ${destroot}${prefix}/share/java/
	xinstall -m 644 ${worksrcpath}/dist/jython.jar \
		${destroot}${prefix}/share/java/
}

livecheck.check	sourceforge
