# -*- 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                recutils
version             1.9
revision            0

categories          databases
maintainers         @zaid openmaintainer
description         Tools to work with human-editable, plain text data files
long_description    \
    GNU Recutils is a set of tools and libraries to access human-editable, \
    plain text databases called recfiles. The data is stored as a sequence \
    of records, each record containing an arbitrary number of named fields.

platforms           darwin
license             GPL-3+

homepage            https://www.gnu.org/software/recutils/
master_sites        gnu
checksums           sha256  6301592b0020c14b456757ef5d434d49f6027b8e5f3a499d13362f205c486e0e \
                    rmd160  7c5cd35d2461898ff31c0fe4265343156e08d79c \
                    size    2759999

depends_build       port:flex
depends_lib         port:curl \
                    port:libgcrypt \
                    port:ossp-uuid
depends_test        port:check

configure.args      --disable-dependency-tracking \
                    --disable-silent-rules

# This is needed to make the build work on newer versions of MacOS where warnings are treated as errors.
# See thread at https://lists.gnu.org/archive/html/bug-recutils/2021-09/msg00001.html for details
configure.cflags    -Wno-implicit-function-declaration

test.target         check
test.run            yes
