# $Id$

PortSystem 1.0

name		ledit
version		2.00
categories	editors
platforms	darwin
maintainers	nomaintainer
description	A line editor to be used with interactive commands.
long_description    The command ledit allows to edit lines one by\
  one when  running  an  interactive command. When typing a line,\
  some keys with control or meta are  interpreted:  it  is  possible\
  to insert  characters  in  the  middle  of  the line, go to the\
  beginning or the end of  the  line,  get  a  previous  line,\
  search for a line with a pattern, etc.
homepage	http://cristal.inria.fr/~ddr/
master_sites	http://pauillac.inria.fr/~ddr/ledit/distrib/src/ \
		http://cristal.inria.fr/~ddr/ledit/distrib/src/
checksums		md5	d5c21dc734e20ce13aa7b995621b1c9a \
                        sha1	74f7a004f6c0dd002217f12d9460db4a9adcbcd5 \
                        rmd160  b852f8266acc81eb97fa481f737dd0623eedc340
extract.suffix	.tgz
depends_build 	port:ocaml
depends_lib     bin:camlp5:camlp5
configure {
  reinplace "s|BINDIR=/usr/local/bin|BINDIR=${destroot}${prefix}/bin|" "${worksrcpath}/Makefile"
  reinplace "s|LIBDIR=/usr/local/lib|LIBDIR=${destroot}${prefix}/lib/ledit|" "${worksrcpath}/Makefile"
  reinplace "s|MANDIR=/usr/man/manl|MANDIR=${destroot}${prefix}/share/man/man1|" "${worksrcpath}/Makefile"
  reinplace "s|(MANDIR)/ledit.l|(MANDIR)/ledit.1|" "${worksrcpath}/Makefile"
}
use_parallel_build no