# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem       1.0

name             TECO
version          1.0
revision         1
distname         teco
categories       editors
license          Permissive
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
extract.mkdir    yes
patchfiles       patch-te_subs.c Makefile.patch
use_configure    no
build.target
build.env        CC=${configure.cc} \
                 "CFLAGS=${configure.cflags} ${configure.cc_archflags}" \
                 "LDFLAGS=${configure.ldflags} ${configure.ld_archflags}"

destroot {
    xinstall -m 755 -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
}

notes "Documentation and sample startup files for te(1) may be found\
in ${prefix}/share/doc/teco"
