# -*- 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-libsass
version             0.23.0
revision            0

categories-append   devel
license             MIT
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer

description         Python binding for libsass
long_description    {*}${description}

homepage            https://sass.github.io/libsass-python/

checksums           sha256  6f209955ede26684e76912caf329f4ccb57e4a043fd77fe0e7348dd9574f1880 \
                    rmd160  f5ce55c414e7692fe5c904fab44896cdb7417e8e \
                    size    316068

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    patchfiles-append   patch-darwin_flags.diff

    post-patch {
        reinplace "s|@CXX_STDLIB@|${configure.cxx_stdlib}|g" ${worksrcpath}/setup.py
    }

    compiler.cxx_standard \
                        2011
}
