# -*- 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.3
# 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  a8e289094901e249072201caf4956332186f3497 \
                    sha256  6206ffe8450d30723d4a1889270d6eaa3773303fac0af943b8fc0599b0609943 \
                    size    54244

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}
