# -*- 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           tree_sitter 1.0

github.setup        tree-sitter-grammars tree-sitter-markdown 0.5.1 v
github.tarball_from archive
revision            0
epoch               1

description         A set of tree-sitter parsers for Markdown

long_description    {*}${description}

categories          devel
license             MIT
maintainers         {amake @amake} openmaintainer

checksums           rmd160  de88629307c75d24b2daa8019f6fcf85142938aa \
                    sha256  acaffe5a54b4890f1a082ad6b309b600b792e93fc6ee2903d022257d5b15e216 \
                    size    419433

patchfiles-append   common.mak.patch
patch.pre_args-replace \
    -p0 -p1

build {
    system -W ${worksrcpath} "make all"
}

destroot {
    xinstall -m 0755 -W ${worksrcpath}/tree-sitter-markdown-inline libtree-sitter-markdown-inline.dylib ${destroot}${prefix}/lib
    xinstall -m 0755 -W ${worksrcpath}/tree-sitter-markdown libtree-sitter-markdown.dylib ${destroot}${prefix}/lib
}

github.livecheck.branch  split_parser
