# -*- 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 144462 2016-01-09 16:39:38Z devans@macports.org $

PortSystem          1.0

name                qof
version             0.8.8
description          Query Object Framework (QOF)
long_description    ${description} is a framework to allow the exection of SQL-type \
                    queries using collections of in-memory objects as 'tables'.
maintainers         nomaintainer
categories          databases
license             GPL-2+
platforms           darwin
homepage            http://sourceforge.net/projects/qof/
master_sites        http://ftp.debian.org/debian/pool/main/q/${name}

distname            ${name}_${version}.orig
worksrcdir          ${name}-${version}

checksums           rmd160  e020e9843ae59cf3d8a9946ea9241921d852234f \
                    sha256  2cecb942bb42fc77c42417cf9118512c73911c16ccea6e72ab28b8bdf60a4e2e

depends_build       port:pkgconfig

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

patchfiles          patch-configure.ac.diff \
                    patch-qof-qofdate.c.diff

use_parallel_build  no
use_autoreconf      yes
autoreconf.args     -fvi

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

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}_(\\d+(?:\\.\\d+)*)"
