Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name jython
version 2.1
categories lang python java
platforms darwin
maintainers nomaintainer@macports.org
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://www.opendarwin.org/~mww/files/
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/
}

files