# -*- 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
PortGroup           github 1.0

github.setup        hoytech lmdbxx 1.0.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                lmdbxx-cxx17
categories          databases devel
platforms           any
supported_archs     noarch
license             public-domain
maintainers         nomaintainer

description         C++17 wrapper for the LMDB embedded B+ tree database library.

long_description    This is a comprehensive C++ wrapper for the LMDB embedded \
                    database library, offering both an error-checked procedural \
                    interface and an object-oriented resource interface with RAII \
                    semantics. \
                    This library is a fork of Arto Bendiken's lmdbxx C++11 \
                    library. The main difference from Arto's version is that the \
                    lmdb::val class has been removed. Instead, all keys and values \
                    are std::string_views.

checksums           rmd160  72632e06e0149cdd0c159863701807084129d4e8 \
                    sha256  629912b64c71d4e7f3eaa6265f83e36169806f45874b0600ca924d2ed6c677f2 \
                    size    52464

depends_lib         port:lmdb

use_configure       no

build               {}

post-destroot {
    xinstall -d -m 0755 ${destroot}${prefix}/include/lmdbxx-cxx17
    move \
        ${destroot}${prefix}/include/lmdb++.h \
        ${destroot}${prefix}/include/lmdbxx-cxx17/
}

destroot.args-append  PREFIX=${prefix}