Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 0A0251A921F for ; Wed, 20 Apr 2022 17:21:31 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 3485B84F45; Wed, 20 Apr 2022 17:21:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6EE8884F3B for ; Wed, 20 Apr 2022 17:21:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id xp_uKnTCAhum for ; Wed, 20 Apr 2022 17:21:28 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 7AF1E84CD8 for ; Wed, 20 Apr 2022 17:21:28 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 74246FB1A; Wed, 20 Apr 2022 17:21:28 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_165047528842190" MIME-Version: 1.0 Date: Wed, 20 Apr 2022 17:21:28 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/textproc To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20220420172128.74246FB1A@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_165047528842190 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nia Date: Wed Apr 20 17:21:28 UTC 2022 Modified Files: pkgsrc/textproc: Makefile Added Files: pkgsrc/textproc/tree-sitter: DESCR Makefile PLIST buildlink3.mk distinfo pkgsrc/textproc/tree-sitter/patches: patch-Makefile Log Message: textproc: add tree-sitter 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. To generate a diff of this commit: cvs rdiff -u -r1.1304 -r1.1305 pkgsrc/textproc/Makefile cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/tree-sitter/DESCR \ pkgsrc/textproc/tree-sitter/Makefile pkgsrc/textproc/tree-sitter/PLIST \ pkgsrc/textproc/tree-sitter/buildlink3.mk \ pkgsrc/textproc/tree-sitter/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/tree-sitter/patches/patch-Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_165047528842190 Content-Disposition: inline Content-Length: 4571 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/textproc/Makefile diff -u pkgsrc/textproc/Makefile:1.1304 pkgsrc/textproc/Makefile:1.1305 --- pkgsrc/textproc/Makefile:1.1304 Wed Apr 20 10:40:29 2022 +++ pkgsrc/textproc/Makefile Wed Apr 20 17:21:27 2022 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1304 2022/04/20 10:40:29 adam Exp $ +# $NetBSD: Makefile,v 1.1305 2022/04/20 17:21:27 nia Exp $ # COMMENT= Text processing utilities (does not include desktop publishing) @@ -1326,6 +1326,7 @@ SUBDIR+= tokyodystopia SUBDIR+= trang SUBDIR+= translate-shell SUBDIR+= translate-toolkit +SUBDIR+= tree-sitter SUBDIR+= troffcvt SUBDIR+= uchardet SUBDIR+= ugrep Added files: Index: pkgsrc/textproc/tree-sitter/DESCR diff -u /dev/null pkgsrc/textproc/tree-sitter/DESCR:1.1 --- /dev/null Wed Apr 20 17:21:28 2022 +++ pkgsrc/textproc/tree-sitter/DESCR Wed Apr 20 17:21:28 2022 @@ -0,0 +1,3 @@ +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. Index: pkgsrc/textproc/tree-sitter/Makefile diff -u /dev/null pkgsrc/textproc/tree-sitter/Makefile:1.1 --- /dev/null Wed Apr 20 17:21:28 2022 +++ pkgsrc/textproc/tree-sitter/Makefile Wed Apr 20 17:21:28 2022 @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2022/04/20 17:21:28 nia Exp $ + +DISTNAME= tree-sitter-0.20.6 +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_GITHUB:=tree-sitter/} +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://tree-sitter.github.io/ +COMMENT= Incremental parsing system for programming tools +LICENSE= mit + +USE_TOOLS+= gmake + +PKGCONFIG_OVERRIDE+= tree-sitter.pc.in + +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/textproc/tree-sitter/PLIST diff -u /dev/null pkgsrc/textproc/tree-sitter/PLIST:1.1 --- /dev/null Wed Apr 20 17:21:28 2022 +++ pkgsrc/textproc/tree-sitter/PLIST Wed Apr 20 17:21:28 2022 @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1 2022/04/20 17:21:28 nia Exp $ +include/tree_sitter/api.h +include/tree_sitter/parser.h +lib/libtree-sitter.a +lib/libtree-sitter.so +lib/libtree-sitter.so.0 +lib/libtree-sitter.so.0.0 +lib/pkgconfig/tree-sitter.pc Index: pkgsrc/textproc/tree-sitter/buildlink3.mk diff -u /dev/null pkgsrc/textproc/tree-sitter/buildlink3.mk:1.1 --- /dev/null Wed Apr 20 17:21:28 2022 +++ pkgsrc/textproc/tree-sitter/buildlink3.mk Wed Apr 20 17:21:28 2022 @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2022/04/20 17:21:28 nia Exp $ + +BUILDLINK_TREE+= tree-sitter + +.if !defined(TREE_SITTER_BUILDLINK3_MK) +TREE_SITTER_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.tree-sitter+= tree-sitter>=0.20.0 +BUILDLINK_PKGSRCDIR.tree-sitter?= ../../textproc/tree-sitter +.endif # TREE_SITTER_BUILDLINK3_MK + +BUILDLINK_TREE+= -tree-sitter Index: pkgsrc/textproc/tree-sitter/distinfo diff -u /dev/null pkgsrc/textproc/tree-sitter/distinfo:1.1 --- /dev/null Wed Apr 20 17:21:28 2022 +++ pkgsrc/textproc/tree-sitter/distinfo Wed Apr 20 17:21:28 2022 @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2022/04/20 17:21:28 nia Exp $ + +BLAKE2s (tree-sitter-0.20.6.tar.gz) = c58e8aab485e661d249c94e64b509fa1aa4b42b614a93fc228d7e95fb6522766 +SHA512 (tree-sitter-0.20.6.tar.gz) = f0fb1e0073867c2a6e69b230e07e5eec32a2b30d3c711ec188526e287d6a1ef06de266d476482f900ec7c9ff6c11909899fd35a802e96f0befc6e99815502377 +Size (tree-sitter-0.20.6.tar.gz) = 2924556 bytes +SHA1 (patch-Makefile) = 6610bddb86c70f8e6f664997e9f56d948887fd6b Index: pkgsrc/textproc/tree-sitter/patches/patch-Makefile diff -u /dev/null pkgsrc/textproc/tree-sitter/patches/patch-Makefile:1.1 --- /dev/null Wed Apr 20 17:21:28 2022 +++ pkgsrc/textproc/tree-sitter/patches/patch-Makefile Wed Apr 20 17:21:28 2022 @@ -0,0 +1,26 @@ +$NetBSD: patch-Makefile,v 1.1 2022/04/20 17:21:28 nia Exp $ + +- Avoid to possibly pass extra optimization CFLAGS +- Do not override PCLIBDIR for FreeBSD, NetBSD and DragonFly + +--- Makefile.orig 2021-06-30 00:18:39.000000000 +0000 ++++ Makefile +@@ -18,7 +18,7 @@ endif + OBJ := $(SRC:.c=.o) + + # define default flags, and override to append mandatory flags +-CFLAGS ?= -O3 -Wall -Wextra -Werror ++CFLAGS += -Wall -Wextra + override CFLAGS += -std=gnu99 -fPIC -Ilib/src -Ilib/include + + # ABI versioning +@@ -37,9 +37,6 @@ else + SOEXTVER = so.$(SONAME_MAJOR).$(SONAME_MINOR) + LINKSHARED += -shared -Wl,-soname,libtree-sitter.so.$(SONAME_MAJOR) + endif +-ifneq (,$(filter $(shell uname),FreeBSD NetBSD DragonFly)) +- PCLIBDIR := $(PREFIX)/libdata/pkgconfig +-endif + + all: libtree-sitter.a libtree-sitter.$(SOEXTVER) + --_----------=_165047528842190--