# -*- 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
PortGroup           cmake  1.1
PortGroup           cxx11  1.1

github.setup        pybind pybind11 2.3.0 v
categories          devel
platforms           darwin
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license             BSD

description         Extension modules for pybind11, which provides seamless operability between C++11 and Python

long_description    Extension modules for pybind11, which is a lightweight header-only library that \
                    exposes  C++ types in Python and vice versa, mainly \
                    to create Python bindings of existing C++ code.

installs_libs       no
supported_archs     noarch

checksums           rmd160  fdb97680c25104103572ebfae290282717b41bd0 \
                    sha256  7f33b38f9a5ea9ba0b57ee0fd574b68cef669e3a8cf0d8bced24f865364c6631 \
                    size    564575

set python_branch   3.7
set python_version  [string map {. ""} ${python_branch}]

configure.args-append \
    -DPYBIND11_PYTHON_VERSION=${python_branch}

depends_build-append \
    port:python${python_version} \
    port:py${python_version}-setuptools \
    port:py${python_version}-pytest