# -*- 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                dbtool
version             1.9.1
revision            2
categories          databases
license             GPL-2
maintainers         nomaintainer

description         Store and retrieve data in a key/value format in a hash database
long_description    dbtool can be used to store and retrieve data in a \
                    key/value format in a hash database. Perl-compatible \
                    regular expressions are supported both for storing and \
                    retrieving of data. Its main advantages are the ability \
                    to maintain huge amounts of data and speed. It also \
                    supports encrypted databases using the RIJNDAEL cipher \
                    algorithm.

homepage            https://www.daemon.de/DBTOOL
master_sites        https://www.daemon.de/idisk/Apps/dbtool/

checksums           rmd160  9b485b6b75d4571fd992a2bed66da45abf12c801 \
                    sha256  afd3fa03d4b69f25c689817dc1b6ac452eb16ed4b9712c20695b3b4d13a5e647 \
                    size    965751

depends_build       port:pkgconfig
depends_lib         port:gdbm \
                    port:pcre
depends_run         bin:bash:bash

patchfiles          CXXFLAGS.patch

# Not compatible with C++11:
# engine.cc:327:43: error: non-constant-expression cannot be narrowed from type 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::size_type' (aka 'unsigned long') to 'int' in initializer list [-Wc++11-narrowing]
compiler.cxx_standard 1998
configure.cxxflags-append -std=c++98