# -*- 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
PortGroup           legacysupport 1.1

# _getline
legacysupport.newest_darwin_requires_legacy 10

name                dwdiff
version             2.1.4
revision            5
categories          textproc
maintainers         nomaintainer
license             GPL-3
description         diff program that operates at the word level
long_description    \
    dwdiff is a front-end for the diff program that operates at the word level \
    instead of the line level. It is different from wdiff in that it allows \
    the user to specify what should be considered whitespace, and in that it \
    takes an optional list of characters that should be considered delimiters. \
    Delimiters are single characters that are treated as if they are words, \
    even when there is no whitespace separating them from preceding words or \
    delimiters. dwdiff is mostly commandline compatible with wdiff. Only \
    the --autopager, --terminal and --avoid-wraps options are not supported.

homepage            https://os.ghalkes.nl/dwdiff.html
master_sites        https://os.ghalkes.nl/dist/

checksums           rmd160  a856e73129ca652197daf61bf92c1491ca4d8328 \
                    sha256  df16fec44dcb467d65a4246a43628f93741996c1773e930b90c6dde22dd58e0a \
                    size    79857

use_bzip2           yes

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:gettext \
                    path:lib/pkgconfig/icu-uc.pc:icu

# src/definitions.h: error: expected identifier before numeric constant
# src/definitions.h: error: two or more data types in declaration specifiers
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2

configure.ldflags-append \
                    -lintl
configure.cflags-append \
                    ${configure.cppflags}

configure.universal_args-delete \
                    --disable-dependency-tracking

destroot.args       docdir=${prefix}/share/doc/${name}

livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}