# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                sicp
version             0.0.1
revision            3
categories          lang
platforms           any
maintainers         nomaintainer
supported_archs     noarch

description         Structure and Interpretation of Computer Programs (texinfo book)
long_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}_2

checksums           md5     57105e0883446d0da50f5419c3ca6383

depends_build       port:texinfo

extract.mkdir       yes
extract.suffix      .gz
extract.post_args   > ${distname}

use_configure       no

use_parallel_build  no

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"
}

livecheck.type      none
