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

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

name                py-quickjs
version             1.19.4
revision            0
categories-append   net
license             MIT
maintainers         nomaintainer
description         Wrapping the quickjs C library
long_description    {*}${description}
homepage            https://github.com/PetterS/quickjs
checksums           rmd160  971b488a787dfc447620749758dba7147df34b25 \
                    sha256  1205953abc24ff757f4a795304d5d61e4bf1e555c9ef6ec96a132d4b95535484 \
                    size    456179

python.versions         310 311 312 313 314

python.pep517_backend   poetry

if {${subport} ne ${name}} {
    if {${os.platform} eq "darwin" && ${os.major} < 16} {
        patchfiles-append \
                    patch-legacy.diff
    }
}
