# -*- 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.7 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  53193299d5b3e1f2f3afcd29bed3d146beb04636 \
                    sha256  4343107ad1097a35e106092b79e5dd87027142c6fba5e4486b1d1d44d5499f84 \
                    size    907267
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.]+)}
