# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $

PortSystem 1.0

name		vcheck
version		1.2.1
categories	devel
maintainers	afb openmaintainer
description	latest program package version checker and auto-downloader
long_description	\
vcheck is a tool for checking for latest versions of programs at HTTP \
and FTP locations given a list of URLs and (Perl-style) regular \
expressions to match, and to optionally download them automatically.
homepage	http://www.tu-ilmenau.de/~gomar/stuff/vcheck/
platforms	darwin
master_sites	${homepage}
use_bzip2	yes
checksums	md5 712cb91d13ffb4b347b094c9935abca1

depends_lib	path:bin/perl:perl5
depends_run	port:p5-libwww-perl

patch {
    reinplace "s|/usr/bin/perl|${prefix}/bin/perl|" ${worksrcpath}/vcheck
}

use_configure	no

build {
    system "${prefix}/bin/pod2man ${worksrcpath}/vcheck >${worksrcpath}/vcheck.1"
}

post-destroot {
    xinstall -c -m 755 ${worksrcpath}/vcheck ${destpath}${prefix}/bin/
    xinstall -c -m 644 ${worksrcpath}/vcheck.1 ${destpath}${prefix}/share/man/man1/
}
