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

github.setup        tree-sitter tree-sitter 0.26.11 v
revision            0
categories          devel textproc
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

homepage            https://tree-sitter.github.io

description         Incremental parsing system for programming tools

long_description    \
    Tree-sitter is a parser generator tool and an incremental parsing \
    library. It can build a concrete syntax tree for a source file and \
    efficiently update the syntax tree as the source file is edited. \
    Tree-sitter aims to be: General enough to parse any programming language, \
    Fast enough to parse on every keystroke in a text editor, Robust enough \
    to provide useful results even in the presence of syntax errors, \
    Dependency-free so that the runtime library (which is written in pure C) \
    can be embedded in any application.

dist_subdir         ${name}/${version}_${revision}

checksums           rmd160  d117c472b4e006304704e804e56c7d78c597fc33 \
                    sha256  1bab01ed21464f3272665b9c60e39ee79f68da1333e80b23f2c9356569d06971 \
                    size    920828
github.tarball_from archive

compiler.c_standard 2011

platform darwin 8 {
    depends_build-append    port:gmake
    build.cmd               ${prefix}/bin/gmake
}

# Exclude pre-release candidates
github.livecheck.regex \
                    {([0-9.]+)}
