# $Id: Portfile 30235 2007-10-22 23:13:37Z jmpp@macports.org $

PortSystem 1.0
name             cupl
version          1.6
categories       lang
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        md5 5032ec8df7f90bcb8d491e3898a582e9

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

use_configure    no

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