# $Id: Portfile 67573 2010-05-13 05:22:37Z perry@macports.org $

PortSystem          1.0

name                cfv
version             1.18.3
categories          security
maintainers         perry openmaintainer
platforms           darwin

description         cfv is a utility to both test and create .sfv, .csv, \
                    .crc, .md5(sfv-like), md5sum, bsd md5, sha1sum, and \
                    .torrent files.
long_description    ${description} These files are commonly used to ensure \
                    the correct retrieval or storage of data.
license             GPLv2
homepage            http://cfv.sourceforge.net/

livecheck.regex     {cfv-(.+)\.tar\.gz}
livecheck.type      regex
livecheck.url       ${homepage}

depends_lib         port:python26

master_sites        sourceforge

checksums           rmd160 d239e5fe212b2458f5a3612b55591c7625a2318d

patchfiles          patch-Makefile.diff patch-cfv.diff

post-patch {
    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
    reinplace "s|@PYTHON@|${prefix}/bin/python2.6|" ${worksrcpath}/Makefile ${worksrcpath}/cfv
}

use_configure       no

build               {}
