# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem 1.0

name		nice
version		0.9.13
categories	lang java
platforms	darwin
maintainers	gmail.com:mvitocruz
description	The Nice programming language
long_description	Nice is a new programming language that extends the \
			ideas behind object orientation and incorporates \
			features from functional programming.
homepage	http://nice.sourceforge.net/
master_sites	sourceforge ${homepage}:nice
distname	Nice-${version}-source
distfiles	${distname}.tgz nice-current.jar:nice
checksums	${distname}.tgz md5 c4f7a4c4b349f433e205fbca131b9cc1 \
	${distname}.tgz sha1 d399d012935b6e84255e0488341dc212fb9b67e2 \
	${distname}.tgz rmd160 54133a39c12a55cc0020efbfdd2e0a2c3bde639d \
	nice-current.jar md5 2dac8abe67712df9541a131a75b422de \
	nice-current.jar sha1 6f749985b09c7f77424dbad373873f5ee7019290 \
	nice-current.jar rmd160 201627fb6d94e0aed7be97549a73312c65d39e15
extract.only	${distname}.tgz
worksrcdir	${name}-${version}.orig
use_configure	no
depends_run	bin:java:kaffe
depends_build	bin:javacc:javacc
pre-build	{
	# Use a current version for the nice bootstrap version. Maybe this can be
	# removed in the next version.
	copy -force ${distpath}/nice-current.jar ${worksrcpath}/external/nice-bootstrap.jar
	reinplace "s|/usr/local|${destroot}${prefix}|" \
		${worksrcpath}/Makefile
	reinplace "s|/usr/share/java/|${prefix}/share/java/|" \
		${worksrcpath}/external/javacc
}

livecheck.distname Nice
