# $Id: Portfile 56061 2009-08-24 00:33:19Z ryandesign@macports.org $
PortSystem	1.0
name		sicp
version		0.0.1
revision	2
categories	lang
platforms	darwin
maintainers	nomaintainer
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
dist_subdir	${name}/${version}_${revision}
checksums	md5 57105e0883446d0da50f5419c3ca6383
extract.mkdir	yes
extract.suffix	.gz
extract.post_args	> ${distname}
use_configure	no
universal_variant	no
depends_build	port:texinfo
build.cmd	${prefix}/bin/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"
}

