# $Id: Portfile,v 1.4 2005/03/16 17:33:01 mww Exp $

PortSystem 1.0

name		nice
version		0.9.10
categories	lang java
platforms	darwin
maintainers	mvitocruz@gmail.com
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
distname	Nice-${version}-source
checksums	md5 05dba3612c600cf7adee1277023124e2
worksrcdir	${name}-${version}.orig
use_configure	no
depends_run	bin:java:kaffe
depends_build	bin:javacc:javacc
pre-build	{
	reinplace "s|/usr/local|${destroot}${prefix}|" \
		${worksrcpath}/Makefile
	reinplace "s|cp -a|cp -p -R|" ${worksrcpath}/Makefile
	reinplace "s|/usr/share/java/|${prefix}/share/java/|" \
		${worksrcpath}/external/javacc
}
