# -*- 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           github 1.0
github.setup        qorelanguage module-python 1.2.0 v
github.tarball_from releases

PortGroup           cmake 1.1

name                qore-python-module
categories          lang
license             LGPL-2.1
maintainers         {davidnichols @davidnich} openmaintainer
description         xmlsec module for Qore
long_description    Module providing Python integration with to Qore and vice-versa
homepage            http://qore.org
platforms           darwin
use_bzip2           yes
distname            qore-python-module-${version}

checksums           rmd160 2b5ca8d4245af0be54555fb40e416ff69e6758e5 \
                    sha256 429a2358004b72f8cebfb3dc2b8a24e481bb5bd44dd78ed8702f163d667b9ff7 \
                    size 66810

variant python310 conflicts python311 description {Enable Python 3.10} {}
variant python311 conflicts python310 description {Enable Python 3.11} {}

if {![variant_isset python310] && ![variant_isset python311]} {
    default_variants +python311
}

if {[variant_isset python310]} {
    set python_version "310"
} elseif {[variant_isset python311]} {
    set python_version "311"
}

depends_lib         port:qore \
                    port:python${python_version}
