# $Id: Portfile,v 1.3 2006/03/21 08:49:20 mww Exp $

PortSystem 1.0

name			sketchy
version			20060305
categories		lang scheme
platforms		darwin
maintainers		mww@opendarwin.org
description		interpreter for a purely applicative dialect of Scheme
long_description	Sketchy is an interpreter for a purely applicative dialect \
			of Scheme. It may be considered an implementation of pure LISP \
			plus global definitions, first-class continuations, and \
			input/output functions.

homepage		http://www.t3x.org/sketchy/
master_sites	http://www.t3x.org/files/
checksums		sha1 d642b65ed56fafe0633e39a4e53a821564d0fa24
patchfiles		patch-Makefile

use_configure	no

build.args		PREFIX=${prefix}

destroot.destdir	PREFIX=${destroot}${prefix} BINOWN=`id -u` BINGRP=`id -g`
post-destroot {
	reinplace "s|image=\.*|image=\"${prefix}/share/sketchy/sketchy.image\"|g" \
		${destroot}${prefix}/bin/sk
}

platform darwin 8 { build.args-append CC=/usr/bin/gcc-4.0 }

