# $Id: Portfile,v 1.2 2006/01/02 20:45:55 toby Exp $

PortSystem 1.0
name             scala
version          1.4.0.3
categories       lang java
maintainers      toby@opendarwin.org
description      The Scala Programming Language
long_description \
	Scala is a modern multi-paradigm programming \
	language designed to express common programming \
	patterns in a concise, elegant, and type-safe \
	way. It smoothly integrates features of \
	object-oriented and functional languages.
homepage         http://scala.epfl.ch/
platforms        darwin

master_sites     ${homepage}downloads/distrib/files/
use_bzip2        yes
checksums        md5 4020b9d5dbc1ddee3eb0a756fe557be4

configure        {}
build            {}

destroot {
	set shareDir ${destroot}${prefix}/share
	file mkdir ${shareDir}
	file copy ${worksrcpath} ${shareDir}/scala

	foreach app {dtd2scala scala scala-debug scala-info scalac scalac-debug scaladoc scaladoc-debug scalaint scalaint-debug scalap scalarun scalarun-debug scalatest} {
		system "ln -s ../share/scala/bin/$app ${destroot}${prefix}/bin/$app"
	}
}
