# -*- 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 63117 2010-01-26 19:39:40Z mcalhoun@macports.org $

PortSystem 1.0
PortGroup  muniversal 1.0

name             libedit
epoch            20090923
version          20090923-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     1e6dad38e8499d71b9c78045e5536734 \
                    sha1    25b4f63103f2098fc06dc9c2f455d2a937507bb5 \
                    rmd160  c8b05abbb5743a3c709d981c131cb6d11b6e83fd

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.type  regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(\\d+-\\d+(?:\\.\\d+)*)${extract.suffix}"
