# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		multitail
version		5.2.2
categories	sysutils
maintainers	honk-honk.com:luc
platforms	darwin
description	Tail multiple files in one terminal at once
long_description	MultiTail lets you view one or multiple files like the \
	original tail program. The difference is that it creates multiple \
	windows on your console (with ncurses). Merging of 2 or even more \
	logfiles is possible. It can also use colors while displaying the \
	logfiles (through regular expressions), for faster recognition of what \
	is important and what not. It can also filter lines (again with \
	regular expressions). It has interactive menus for editing given \
	regular expressions and deleting and adding windows. One can also have \
	windows with the output of shell scripts and other software. When \
	viewing the output of external software, MultiTail can mimic the \
	functionality of tools like 'watch' and such.

homepage	http://www.vanheusden.com/multitail/
master_sites	${homepage}
checksums	md5 ab2c198381e9ff6271ce56bdcb06f963
extract.suffix	.tgz

livecheck.type  regex
livecheck.url ${homepage}download.html
livecheck.regex ${name}-(\[0-9.]+)${extract.suffix}</A></TD><TD> &nbsp\;The latest <I>stable</I> version.

use_configure	no

pre-build	{
	reinplace "s|\$(DESTDIR)/usr/|\$(DESTDIR)${prefix}/|g" \
		${worksrcpath}/makefile.macosx
        reinplace "s|\$(DESTDIR)/etc|\$(DESTDIR)${prefix}/etc/|g" \
                ${worksrcpath}/makefile.macosx
}
build.args	-f makefile.macosx

destroot.args	-f makefile.macosx
