# $Id: Portfile,v 1.3 2006/06/19 23:26:44 rhwood Exp $
PortSystem	1.0
name		sicp
version		0.0.1
revision	1
categories	lang
maintainers	kogule@opendarwin.org
description	Lytha Ayth's texinfo version of Structure and \
		Interpretation of Computer Programs -- 2nd ed. (Harold Abelson \
		and Gerald Jay Sussman, with Julie Sussman)
homepage	http://www.neilvandyke.org/sicp-texi/
master_sites	${homepage}
distname	sicp.texi
checksums	md5 ddce80a3a44f092287f235dc93d9a864
pre-extract	{ file mkdir ${worksrcpath} }
extract.suffix	.gz
extract.post_args	> ${distname}/${distname}
use_configure	no
build.cmd	makeinfo
build.target	${distname}
destroot	{
	system "cd ${worksrcpath} && \
		for i in sicp sicp-\[0-9\]*; do \
			gzip -c \$i > ${destroot}${prefix}/share/info/\$i.gz; \
		done"
}

