# -*- 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
maintainers         nomaintainer
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            https://www.equi4.com/metakit/
master_sites        macports_distfiles
extract.rename      yes

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}
}

# The developer retired in 2022 so no further releases are expected.
# Code is currently at:
# https://git.sr.ht/~jcw/metakit
# Previous places the code has lived:
# https://web.archive.org/web/20160125095045/https://github.com/jcw/metakit
# https://web.archive.org/web/20230525041758/https://git.jeelabs.org/metakit/
livecheck.type      none