# -*- 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                qof
version             0.8.8
revision            2
description         Query Object Framework (QOF)
long_description    {*}${description} is a framework to allow the execution of SQL-type \
                    queries using collections of in-memory objects as 'tables'.
maintainers         nomaintainer
categories          databases
license             GPL-2+

homepage            https://web.archive.org/web/20180413005909/https://alioth.debian.org/projects/qof/
master_sites        http://ftp.debian.org/debian/pool/main/q/${name}

distname            ${name}_${version}.orig
checksums           rmd160  e020e9843ae59cf3d8a9946ea9241921d852234f \
                    sha256  2cecb942bb42fc77c42417cf9118512c73911c16ccea6e72ab28b8bdf60a4e2e \
                    size    962548

worksrcdir          ${name}-${version}

use_autoreconf      yes
autoreconf.args     -fvi

depends_build-append \
                    port:gettext \
                    port:m4 \
                    path:bin/pkg-config:pkgconfig

depends_lib         port:gettext-runtime \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:libxml2

patchfiles          patch-configure.ac.diff \
                    patch-lib-libsql-Makefile.am.patch \
                    implicit.patch \
                    patch-qof-qofdate.c.diff

configure.checks.implicit_function_declaration.whitelist-append strchr

configure.args-append \
                    --disable-doxygen \
                    --disable-gdasql

test.run            yes
test.target         check

livecheck.type      none
