# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
categories lang python java
maintainers {amake @amake} openmaintainer
description Python implementation in pure Java
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/
depends_lib bin:java:kaffe
variant installer description {Use installer, rather than building from source} {
master_sites http://search.maven.org/remotecontent?filepath=org/python/jython-installer/${version}
distfiles ${name}-installer-${version}.jar
checksums rmd160 10741971d109bb7c941c98e2b099f366cb8b34b6 \
sha256 6e58dad0b8565b95c6fb14b4bfbf570523d1c5290244cfb33822789fa53b1d25 \
xinstall -m 0755 -d ${destroot}${prefix}/share/java/${name}
build.target -jar ${distpath}/${distfiles}
build.args -s -d ${destroot}${prefix}/share/java/${name}
set jython_bin_name jython
default_variants +installer
# This block must come after the installer variant definition.
if {![variant_isset installer]} {
hg.url https://hg.python.org/jython
depends_build bin:ant:apache-ant