# -*- 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           legacysupport 1.1

# renameat
legacysupport.newest_darwin_requires_legacy 13

name                tevent
version             0.17.2
categories          devel
license             LGPL-3+
maintainers         nomaintainer
description         event system
long_description    Tevent is an event system based on the talloc memory \
                    management library. It is the core event system used in \
                    Samba.

homepage            https://tevent.samba.org

master_sites        https://www.samba.org/ftp/${name}

checksums           rmd160  d83536c8926ddaac9f14e6030f73a1010e83e876 \
                    sha256  e53b1ac288d017d66dde0471cd429a806168ecf07179d7f019572d7a7e05f0d6 \
                    size    906519

set py_ver          3.14
set py_ver_nodot    [string map {. {}} ${py_ver}]

depends_build       port:python${py_ver_nodot}

depends_lib         port:talloc

patchfiles          patch-samba-install.diff

# Missing required TLS support in pthread library
compiler.thread_local_storage   yes

configure.args      --disable-python
configure.python    ${prefix}/bin/python${py_ver}

build.env           PYTHON=${configure.python}
destroot.env        PYTHON=${configure.python}
