--- Portfile.orig	2008-02-03 00:32:57.000000000 -0800
+++ Portfile	2008-04-13 13:35:03.000000000 -0700
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name		chicken
-version		2.6
+version		3.1.0
 categories	lang scheme
 maintainers	arto.bendiken@gmail.com waqar@macports.org
 description	Compiler for the Scheme programming language
@@ -13,28 +13,16 @@
 	enhancements and extensions.
 homepage	http://www.call-with-current-continuation.org/
 platforms	darwin
-master_sites	http://www.call-with-current-continuation.org/
-checksums	sha1 4010d21db1b0d2df3b3ab392503be4bb19073bbd
-configure.args  --infodir=${prefix}/share/info --mandir=${prefix}/share/man \
-		--enable-gc-hooks --enable-apply-hook \
-		--enable-extra-symbol-slot \
-		--enable-symbol-gc
-
-platform darwin 8 {
-	configure.cflags-append	"-I${prefix}/include"
-}
-
-variant no-hooks {
-	configure.args-delete --enable-gc-hooks --enable-apply-hook
-	configure.args-append --disable-gc-hooks --disable-apply-hook
-}
-
-variant no-symslot {
-	configure.args-delete --enable-extra-symbol-slot
-	configure.args-append --disable-extra-symbol-slot
-}
-
-variant no-symgc {
-	configure.args-delete --enable-symbol-gc
-	configure.args-append --disable-symbol-gc
+master_sites	http://chicken.wiki.br/releases/${version}
+distfiles	${distname}${extract.suffix}
+checksums	md5 a57e659131eddac5db08c00c918ffdb1\
+		sha1 a5529645df74751a611895e9d32bef78d23a276c\
+		rmd160 1e1b6dc51f7f876f49b2981c2ff6045461de1854
+use_configure	no
+pre-build {
+	system "cd ${worksrcpath} && ${build.cmd} ${build.args} bootstrap"
 }
+build.args	PLATFORM=macosx PREFIX=${prefix}
+build.post_args	CHICKEN=./chicken-boot
+use_parallel_build yes
+destroot.args	PLATFORM=macosx PREFIX=${prefix}
