# -*- 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
maintainers mcalhoun openmaintainer
description command line editing and history library
long_description libedit is a command line editing and history library. \
It is designed to be used by interactive programs that \
allow the user to type commands at a terminal prompt.
homepage http://thrysoee.dk/editline/
master_sites ${homepage} \
http://download.openpkg.org/components/cache/libedit/
checksums rmd160 6a463e0df6a5655cef466c7823ba521c65f9fe2a \
sha256 91f2d90fbd2a048ff6dad7131d9a39e690fd8a8fd982a353f1333dd4017dd4be
patchfiles doc__Makefile.in.patch \
# see https://trac.macports.org/ticket/52866
# this patch is taken from
# https://opensource.apple.com/source/libedit/libedit-48/src/el.c.auto.html
patchfiles-append patch-non_ascii.diff
# Fixes an issue that calling history_get_history_state() immediately after
# read_history() results in wrong history length.
# The patch is backported from the upstream fix at [1]
# [1] http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/readline.c.diff?r1=1.143&r2=1.144&only_with_tag=MAIN&f=u
patchfiles-append patch-read_history-save-length.diff
copy ${filespath}/getline.c ${worksrcpath}/src
configure.args --disable-silent-rules --disable-examples
livecheck.url [lindex ${master_sites} 0]
livecheck.regex "${name}-(\\d+-\\d+(?:\\.\\d+)*)${extract.suffix}"