# $Id$

PortSystem 1.0
name             cupl
version          1.8
categories       lang
license          GPL-2
maintainers      nomaintainer
description      CUPL/CORC interpreter
long_description \
    Interpreter for the archaic CUPL and CORC programming \
    languages. Includes full documentation and a chrestomathy \
    of programs.
homepage         http://www.catb.org/~esr/cupl/
platforms        darwin
master_sites     ${homepage}
checksums           rmd160  ec69915f8ba37adbaae330e486282c04ec8e02e2 \
                    sha256  ba8203134409c390effe5bb2b85d1ef741f33962198b265da2c7befd482572da

use_configure    no

build.target     cupl

destroot {
    xinstall -m 755 ${worksrcpath}/cupl ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/cupl.1 ${destroot}${prefix}/share/man/man1
    set docdir ${destroot}${prefix}/share/doc/cupl
    xinstall -m 755 -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} README COPYING corc.doc cupl.doc ${docdir}
    file copy ${worksrcpath}/test ${docdir}
}