# $Id: Portfile 82870 2011-08-21 06:52:13Z jmr@macports.org $

PortSystem 1.0

name		vcheck
version		1.2.1
revision    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	port:perl5.12
depends_run	port:p5.12-libwww-perl

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

use_configure	no

build {
    system "${prefix}/bin/pod2man-5.12 ${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/
}
