# -*- 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           python 1.0

name                py-plyvel
version             1.5.1
revision            0

categories-append   devel
license             BSD

maintainers         {ipglider.org:miguel @ipglider} openmaintainer

description         Plyvel is a fast and feature-rich Python interface to LevelDB.
long_description    Plyvel is a Python interface to LevelDB that has a rich \
                    feature set, high performance and a friendly Pythonic API.

homepage            https://github.com/wbolster/plyvel

checksums           rmd160  432988ab7e947419a91d9fe0c8aee953583777bd \
                    sha256  3caf6009e4fc24fbf8712d3f5ef3da7e56495c26a488df2161218fc34e46019c \
                    size    200128

python.versions     27 310 311 312 313 314

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools

    depends_lib-append      port:leveldb

    # https://trac.macports.org/ticket/72622
    if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libc++"} {
        patchfiles-append   patch-setup.py.diff
    }

    compiler.cxx_standard   2011

    # This is intended:
    build.cmd-prepend       CC=${configure.cxx}
}
