# -*- 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        alex-pinkus tree-sitter-swift 0.7.3

github.tarball_from archive
revision            0

description         A tree-sitter parser for Swift

long_description    {*}${description}

categories          devel
license             MIT
maintainers         {amake @amake} openmaintainer

checksums           rmd160  f6b9f2da64132b3b3078da89282d7a0ba7501ad2 \
                    sha256  e380cd99f7e3d8ef784550afbfba67690c6e905d5bb64232264b39a22d03d28b \
                    size    139512

worksrcdir          ${worksrcdir}/src

depends_build-append    port:tree-sitter-cli

pre-build {
    system -W ${worksrcpath}/.. "${prefix}/bin/tree-sitter generate"
}

github.livecheck.regex {([0-9.-]+)}
