# -*- 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
PortGroup           github 1.0

name                ledit
github.setup        chetmurthy ledit 2.08 {}
revision            0
categories          editors
license             BSD
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.

checksums           rmd160  a9c31a53816dae63b356a5b2a5c289f894b2f403 \
                    sha256  0f10f70bcdde68ce6514d4eedeb0774653322385a642d1ee696438b5594050f1 \
                    size    25419
github.tarball_from archive

depends_build       port:ocaml
depends_lib         bin:camlp5:camlp5 \
                    port:ocaml-camlp-streams \
                    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"
}
