# $Id: Portfile 32823 2008-01-14 04:19:08Z ryandesign@macports.org $

PortSystem       1.0
name             TECO
version          1.0
distname         teco
categories       editors
maintainers      nomaintainer
description      An implementation of TECO in portable C
long_description \
       te(1)  is  an  implementation of TECO in portable C.  It implements DEC \
       standard TECO, with some exceptions and extensions described below. \
       te assumes a VT100-type terminal, and its display driver is  hard-coded \
       for such.
homepage         http://www.ibiblio.org/pub/academic/computer-science/history/pdp-11/teco/
platforms        darwin
master_sites     sunsite:apps/editors/tty
checksums        md5 b996a43a133f0d636ef3331da2374e6e
patchfiles       patch-te_subs.c
use_configure    no
worksrcdir       .
build.target

destroot {
    xinstall -m 555 -W ${worksrcpath} te ${destroot}${prefix}/bin
    xinstall -m 444 -W ${worksrcpath} te.1 ${destroot}${prefix}/share/man/man1
    xinstall -d ${destroot}${prefix}/share/doc/teco
    xinstall -m 444 -W ${worksrcpath} teco.doc teco_data.doc sample.tecorc sample.tecorc2 \
        ${destroot}${prefix}/share/doc/teco
}

post-install {
    ui_msg ""
    ui_msg "Documentation and sample startup files for te(1) may be found"
    ui_msg "in ${prefix}/share/doc/teco"
}
