# $Id: Portfile 32270 2007-12-23 13:52:36Z ryandesign@macports.org $

PortSystem      1.0

name            nvi
version         1.81.6
categories      editors
maintainers     nomaintainer
description     A vi/ex clone

long_description \
    Nvi is an implementation of the ex/vi text editor originally \
    distributed as part of the Fourth Berkeley Software Distribution \
    (4BSD), by the University of California, Berkeley.

homepage        http://www.bostic.com/vi/
platforms       darwin
master_sites    http://www.kotnet.org/~skimo/nvi/devel/
checksums       md5 88d1e23115ee9f2961186b62e55f5704
use_bzip2       yes
worksrcdir      ${name}-${version}/dist

depends_lib \
    port:db3

patchfiles \
    patch-ex_script.c.diff

configure.args \
    --program-prefix=n \
    --with-db3=${prefix} \
    --without-x \
    --mandir=${prefix}/share/man

configure.cppflags-append \
    -I${prefix}/include/db3

variant x11 {
    configure.args-delete --without-x
    configure.args-append --with-x
}
