# -*- 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.1.0
revision            0

categories-append   devel
platforms           darwin
license             BSD

python.versions     27 35 36 37

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
master_sites        pypi:p/plyvel

distname            plyvel-${version}

checksums           rmd160  680d5e9afb65105e7a73fc1f154530a6f451e84a \
                    sha256  3731310784aaffe4e4e004ca5899d8d187a3ca9143e606142200498931f39ac5 \
                    size    143970
if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    depends_lib-append      port:leveldb

    post-extract {
        # Unreadable PKG-INFO breaks setuptools, and setuptools doesn't
        # ensure it is installed with read permissions.
        # https://github.com/pypa/setuptools/issues/1328
        # https://github.com/pypa/setuptools/issues/617
        system "chmod -R a+r ${worksrcpath}"
    }

    livecheck.type          none
}
