# -*- 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-reflink
version             0.2.2
revision            0

categories-append   devel
license             MIT
maintainers         nomaintainer

description         Python reflink wraps around platform specific reflink implementations
long_description    {*}${description}

homepage            https://gitlab.com/rubdos/pyreflink

checksums           rmd160  34d89acceac5cd1f6fbae6a4dd0ecb5f0b661d50 \
                    sha256  882375ee7319275ae5f6a6a1287406365dac1e9643b91ad10e5187d3f84253bd \
                    size    21956

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    patchfiles      patch-pytest-runner-setup.py.diff

    depends_lib-append \
                    port:py${python.version}-cffi

    build.env-append \
                    CC=${configure.cc}

    test.run        yes
}
