# -*- 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
# $Id: Portfile 122767 2014-07-29 12:58:35Z khindenburg@macports.org $

PortSystem 1.0

name        fhist
version     1.17
categories  sysutils textproc devel
license     GPL-2+
maintainers khindenburg 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

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
