# $Id: Portfile,v 1.5 2005/06/14 06:28:44 jkh Exp $

PortSystem       1.0
name             TECO
version          1.0
distname         teco
categories       editors
maintainers      darwinports@opendarwin.org
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
configure        {}
worksrcdir       .
build.target

destroot {
    cd ${worksrcpath}
    xinstall -m 555 te ${destroot}${prefix}/bin
    xinstall -m 444 te.1 ${destroot}${prefix}/share/man/man1
    xinstall -d ${destroot}${prefix}/share/doc/teco
    xinstall -m 444 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"
}
