# $Id: Portfile,v 1.10 2005/09/29 02:56:01 toby Exp $

PortSystem 1.0
name            nvi
version         1.81.5
categories      editors
maintainers     darwinports@opendarwin.org
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 5cc674f049054f3e8f7600df8d8d5cf4 
worksrcdir	${name}-${version}/dist
depends_lib	lib:libdb:db3

patchfiles 	patch_configure patch-ex__ex_script.c
configure.args	--program-prefix=n --with-db3=${prefix} --with-x=no \
		--mandir=${prefix}/share/man

#build.target
variant         x11 { configure.args-append --with-x }
