# $Id: Portfile,v 1.2 2005/04/15 05:51:59 toby Exp $

PortSystem 1.0
name             cupl
version          1.6
categories       lang
maintainers      toby@opendarwin.org
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        md5 5032ec8df7f90bcb8d491e3898a582e9

patchfiles       patch-cupl.y patch-execute.c patch-monitor.c

configure        {}

build.target

destroot {
    xinstall -m 555 ${worksrcpath}/cupl ${destroot}${prefix}/bin

    xinstall -m 444 ${worksrcpath}/cupl.1 ${destroot}${prefix}/share/man/man1

    set docdir ${destroot}${prefix}/share/doc/cupl
    file mkdir ${docdir}
    xinstall -m 444 ${worksrcpath}/READ.ME ${docdir}
    xinstall -m 444 ${worksrcpath}/COPYING ${docdir}
    xinstall -m 444 ${worksrcpath}/corc.doc ${docdir}
    xinstall -m 444 ${worksrcpath}/cupl.doc ${docdir}
    file copy ${worksrcpath}/test ${docdir}
}
