# $Id: Portfile 83385 2011-08-31 01:52:26Z dports@macports.org $

PortSystem          1.0

name                shakespeare
version             1.2.1
distname            spl-${version}
categories          lang
maintainers         gmail.com:mdippery
license             GPL-2

description         Shakespeare programming language
long_description    A programming language created with the design goal to \
                    make the source code resemble Shakespeare plays. The \
                    characters in the play are variables.
homepage            http://shakespearelang.sourceforge.net/
platforms           darwin
master_sites        ${homepage}download/
checksums           md5 c31de8415af80819eb944a1cecadddde \
                    sha1 17adea7bbf5e1de1a29e71b19e5271f186e9698d \
                    rmd160 0225bced2f236fc5c1850cd9fe5c48fc1c75aa1c
depends_build       port:bison port:flex
use_configure       no

build.target        install
build.args          CC=${configure.cc}

destroot {
    xinstall -m 755 ${worksrcpath}/spl/bin/spl2c ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/spl/include/spl.h ${destroot}${prefix}/include
    xinstall -m 755 ${worksrcpath}/spl/lib/libspl.a ${destroot}${prefix}/lib
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        LICENSE \
        NEWS \
        ${docdir}
}
