# $Id: Portfile,v 1.3 2004/12/02 09:36:12 pguyot Exp $

PortSystem 1.0

name		ledit
version		1.11
categories	editors
maintainers	reilles@loria.fr
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	ftp://ftp.inria.fr/INRIA/Projects/cristal/Daniel.de_Rauglaudre/Tools/
checksums		md5		a2d38ba641682509c1e964ad699a9dd2 \
				sha1	1fb6443b5fdf3c83787953f06282d256477c1288
depends_build 	bin:ocamlc:ocaml
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"
}
