From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E67FB158095 for ; Fri, 9 Sep 2022 09:48:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 017BDE08ED; Fri, 9 Sep 2022 09:48:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DAF53E08EC for ; Fri, 9 Sep 2022 09:48:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BFCF234119F for ; Fri, 9 Sep 2022 09:48:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4FC685A4 for ; Fri, 9 Sep 2022 09:48:11 +0000 (UTC) From: "Matthew Smith" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" Message-ID: <1662716766.12bc86f8dce8398b8c5365b17764ef24fada111b.matthew@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/tree-sitter/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/tree-sitter/Manifest dev-libs/tree-sitter/tree-sitter-0.20.7.ebuild X-VCS-Directories: dev-libs/tree-sitter/ X-VCS-Committer: matthew X-VCS-Committer-Name: Matthew Smith X-VCS-Revision: 12bc86f8dce8398b8c5365b17764ef24fada111b X-VCS-Branch: master Date: Fri, 9 Sep 2022 09:48:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 05c0a878-d496-4779-8df2-84badb514313 X-Archives-Hash: c328d4f0a6192eaf2cc7b553fa2ea5c1 commit: 12bc86f8dce8398b8c5365b17764ef24fada111b Author: Matthew Smith gentoo org> AuthorDate: Fri Sep 9 08:41:23 2022 +0000 Commit: Matthew Smith gentoo org> CommitDate: Fri Sep 9 09:46:06 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12bc86f8 dev-libs/tree-sitter: add 0.20.7 Signed-off-by: Matthew Smith gentoo.org> dev-libs/tree-sitter/Manifest | 1 + dev-libs/tree-sitter/tree-sitter-0.20.7.ebuild | 46 ++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest index a61e2b116dc2..a99b5b354d87 100644 --- a/dev-libs/tree-sitter/Manifest +++ b/dev-libs/tree-sitter/Manifest @@ -1 +1,2 @@ DIST tree-sitter-0.20.6.tar.gz 2924556 BLAKE2B 17348717441497ea7fc91419a0e8796d077b9acda2b584e9c3e1ac4a7a3f1fa3f84d5b749f21144d0593aaa7bf2e7ff9665539e91c6e81cda4359850e0fcdb14 SHA512 f0fb1e0073867c2a6e69b230e07e5eec32a2b30d3c711ec188526e287d6a1ef06de266d476482f900ec7c9ff6c11909899fd35a802e96f0befc6e99815502377 +DIST tree-sitter-0.20.7.tar.gz 2928761 BLAKE2B 280083381ce4f5949ab1ca1412026cac79bcf28b488147150d934b70cdc7804466c8032d50254f1ff4457b55a33fe0dceef66fd053cd32bbf844dc8280e896ab SHA512 dd306f7304cb5f87c05eab3bf5c9c4c13bfed7766a164eafe3159adbc6cca4e66fbdb6880f48dfc668408fbefc14b0147aa2231db085a72f526ac51b681b7c26 diff --git a/dev-libs/tree-sitter/tree-sitter-0.20.7.ebuild b/dev-libs/tree-sitter/tree-sitter-0.20.7.ebuild new file mode 100644 index 000000000000..c768f2c14017 --- /dev/null +++ b/dev-libs/tree-sitter/tree-sitter-0.20.7.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit optfeature toolchain-funcs + +DESCRIPTION="Tree-sitter is a parser generator tool and an incremental parsing library" +HOMEPAGE="https://github.com/tree-sitter/tree-sitter" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +fi + +LICENSE="MIT" +SLOT="0" + +PATCHES=( "${FILESDIR}/${PN}-No-static-libs-gentoo.patch" ) + +# see Makefile:1 +QA_PKGCONFIG_VERSION="0.6.3" + +src_prepare() { + default + tc-export CC +} + +src_compile() { + emake \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" +} + +src_install() { + emake DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install +} + +pkg_postinst() { + optfeature "building and testing grammars" dev-util/tree-sitter-cli +}