# -*- 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                    le
version                 1.16.8
categories              editors
platforms               darwin
maintainers             nomaintainer
homepage                http://freecode.com/projects/leeditor
license                 GPL-3

description             Terminal based text editor

long_description        LE has many block operations with stream and rectangular blocks, \
                        can edit both unix and dos style files (LF/CRLF), is binary clean, \
                        has hex mode, can edit text with multi-byte character encoding, \
                        has full undo/redo, can edit files and mmap-able devices in mmap \
                        shared mode (only replace), has tunable syntax highlighting, tunable \
                        color scheme (can use default colors), tunable key map. It is slightly \
                        similar to Norton Editor, but has more features.

master_sites            http://lav.yar.ru/download/le/ \
                        http://lav.yar.ru/download/le/old/
use_xz                  yes

checksums               rmd160  120a42f667fd3698c07994963aec664e6cbd26dd \
                        sha256  4ab7fdb9ddf12d57a0a3f0452d7cc5be583df8a926ab9e443bbc9be452cc402f \
                        size    726576

depends_lib             port:ncurses

patch {
    reinplace -E "s|/usr/local|${prefix}|g" ${worksrcpath}/configure
}
