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

# Any version update requires revbumping all ports that link with the library
# because the full version number is in the library's install name.
# See https://github.com/commonmark/cmark/issues/474
github.setup        github cmark-gfm 0.29.0.gfm.13
github.tarball_from archive

revision            0

checksums           rmd160  032613816b181a06ee92b97adce7e53f77a67e6d \
                    sha256  5abc61798ebd9de5660bc076443c07abad2b8d15dbc11094a3a79644b8ad243a \
                    size    300086

categories          devel
maintainers         {wyuenho @wyuenho} \
                    openmaintainer

license             BSD

description         GitHub's fork of cmark
long_description    cmark-gfm is an extended version of the C reference \
                    implementation of CommonMark, a rationalized version of \
                    Markdown syntax with a spec. This repository adds GitHub \
                    Flavored Markdown extensions to the upstream \
                    implementation, as defined in the spec.

configure.args-append \
                    -DCMARK_TESTS=OFF \
                    -DCMARK_STATIC=OFF
                    
variant buildtests description "Build Tests" {
    depends_lib-append        port:python313
    configure.args-replace    -DCMARK_TESTS=OFF -DCMARK_TESTS=ON
    configure.args-append     -DPYTHON_EXECUTABLE=${prefix}/bin/python3.13
    test.run                  yes

}
