# -*- 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                fhist
version             1.17
# Starting with 1.19, there's a libexplain dependency which is not in macports
# http://libexplain.sourceforge.net/
categories          sysutils textproc devel
license             GPL-2+
maintainers         {khindenburg @kurthindenburg} openmaintainer
description         FHist: file history, comparison and merging tools
homepage            http://fhist.sourceforge.net/
platforms           darwin

long_description    The FHist package contains 3 utilities, fhist (a file \
                    history tool that works on binary inputs), fcomp (a file \
                    comparison tool that can compare binary files \
                    byte-for-byte), and fmerge (a file merging tool).  All \
                    three are bundled together because they use the same \
                    minimal-difference algorithm.

master_sites        sourceforge:project/${name}/${name}/${version}

checksums           rmd160  99af99ab8de716d7a98629a8711850a152b5cfa7 \
                    sha256  e1e06a095913e9d9afc2deb89f646d96dd03d2d832669018f3cc519fffb98e1e

depends_build       port:cctools
depends_lib         port:bison port:gettext port:cook

pre-configure {
    reinplace "s|\$(RPM_BUILD_ROOT)|${destroot}|g" \
        "${worksrcpath}/Makefile.in"
}

configure.cflags-append -std=gnu89 ${configure.cppflags} ${configure.ldflags}
configure.args          --mandir=${prefix}/share/man --infodir=${prefix}/share/info

use_parallel_build  no

test.run            yes
test.target         sure

livecheck.type      sourceforge