# -*- 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                metakit
version             2.4.9.8
revision            0
categories          databases
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             MIT

description         an efficient embedded database library with a small footprint

long_description    Metakit is an efficient embedded database library with a \
                    small footprint. It fills the gap between flat-file, \
                    relational, object-oriented, and tree-structured \
                    databases, supporting relational joins, serialization, \
                    nested structures, and instant schema evolution.

homepage            http://equi4.com/metakit/

# No release yet since moving off of GitHub
master_sites        macports_distfiles

checksums           rmd160  822e134600de16f62f5aaba30b33246c964c6e2e \
                    sha256  09ea3802ab7382d90b6fc67e3607f87194951d91c24444ab1b5eba267d3b9c00 \
                    size    638205

depends_lib         port:tcl

patchfiles          patch-unix-configure.diff \
                    patch-unix-Makefile.in.diff

configure.dir       ${worksrcpath}/builds
configure.cmd       ../unix/configure
configure.args      --with-tcl=${prefix}/include,${prefix}/lib

build.dir           ${configure.dir}

test.run            yes

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        CHANGES \
        README \
        license.terms \
        ${destroot}${docdir}
}

livecheck.type      regex
livecheck.url       https://git.jeelabs.org/jcw/metakit/releases
livecheck.regex     {tag/([0-9.]+)}
