# -*- 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

PortSystem          1.0

name                cfv
version             1.18.3
revision            3
categories          security
platforms           any
supported_archs     noarch
license             GPL-2
maintainers         nomaintainer

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

depends_lib         port:python27

master_sites        sourceforge
checksums           rmd160  d239e5fe212b2458f5a3612b55591c7625a2318d \
                    sha256  ff28a8aa679932b83eb3b248ed2557c6da5860d5f8456ffe24686253a354cff6

patchfiles          patch-cfv.diff
post-patch {
    reinplace "s|@PYTHON@|${prefix}/bin/python2.7|" ${worksrcpath}/cfv
}

use_configure       no

build               {}

destroot.args       mandir=${prefix}/share/man \
                    prefix=${prefix} \
                    PYTHON=${prefix}/bin/python2.7