# -*- 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                    blassic
version                 0.10.0
revision                2
categories              lang
platforms               darwin
license                 GPL-2
maintainers             nomaintainer
homepage                http://blassic.net/
master_sites            ${homepage}bin/

description             Blassic is a classic Basic interpreter

long_description        Blassic is a classic Basic interpreter. The line \
                        numbers are mandatory, and it has PEEK & POKE. The \
                        main goal is to execute programs written in old \
                        interpreters, even those that use peculiar control \
                        flow constructs or automodifiable code. However, it \
                        can be used as a scripting language, and has some \
                        not-so-classic instructions. It has graphics modes \
                        that are compatible with some classic systems and \
                        user defined.

depends_lib             port:ncurses

extract.suffix          .tgz

checksums               md5     f4d66a339c55cb08fdc00cd9db8001c2 \
                        sha1    6bb8237c96cb84df8eae8754ca621a76e1d0956f \
                        rmd160  006df2c2ca25499050a2f7c9e711f07e57475fb2

configure.args          --disable-graphics

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        NEWS \
        README \
        THANKS \
        TODO \
        ${docdir}
}

livecheck.type          regex
livecheck.url           ${homepage}download.html
livecheck.regex         {Current version is ([0-9.]+)}