# -*- 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
# $Id: Portfile 53548 2009-07-08 01:53:57Z ryandesign@macports.org $

PortSystem 1.0
PortGroup  muniversal 1.0

name             libedit
epoch            20090503
version          20090503-3.0
categories       devel
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.
platforms        darwin
homepage         http://www.thrysoee.dk/editline/
master_sites     ${homepage}

checksums        md5     278d11fb176ffab486277ac2e2b3abac \
                 sha1    47a4aac363e442b2b9c0a3a0a28a0256634b546d \
                 rmd160  51644f7a32ea70b6bb729c0fc12fc0c1abbda147

depends_lib      port:ncurses

# Find MacPorts ncurses header files.
configure.cppflags-append  -I${prefix}/include/ncurses
# Don't try to find libcurses.dyilb since MacPorts ncurses does not provide it.
configure.env-append       ac_cv_lib_curses_tgetent=no

livecheck.check regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(\\d+-\\d+(?:\\.\\d+)*)${extract.suffix}"
