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

PortSystem          1.0

name                ledit
version             2.04
categories          editors
license             BSD
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           rmd160  5cbad14d72f117c95dbd44e82cb8b70c5709948d \
                    sha256  484897016b001b6d64eb24e38a213177b230ebf8e0d9808a969b62f012e70ee4 \
                    size    24430

extract.suffix      .tgz

depends_build       port:ocaml
depends_lib         bin:camlp5:camlp5 \
                    port:ncurses

use_parallel_build  no

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/local/man/man1|MANDIR=${destroot}${prefix}/share/man/man1|" "${worksrcpath}/Makefile"
}
