# -*- 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 137806 2015-06-20 12:44:31Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        jcw metakit 2.4.9.8
categories          databases
platforms           darwin
maintainers         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/

checksums           rmd160  822e134600de16f62f5aaba30b33246c964c6e2e \
                    sha256  09ea3802ab7382d90b6fc67e3607f87194951d91c24444ab1b5eba267d3b9c00

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 644 -W ${worksrcpath} \
        CHANGES \
        README \
        license.terms \
        ${destroot}${docdir}
}
