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 60F2E15808B for ; Sun, 27 Feb 2022 16:14:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92538E086D; Sun, 27 Feb 2022 16:14:31 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71088E086C for ; Sun, 27 Feb 2022 16:14:31 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4A2F53434F4 for ; Sun, 27 Feb 2022 16:14:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8BFD02F9 for ; Sun, 27 Feb 2022 16:14:28 +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: <1645978434.7a89ddd17a5cee5991d3ee6596a0e9720e794750.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/tree-sitter-0.20.2-r1.ebuild X-VCS-Directories: dev-libs/tree-sitter/ X-VCS-Committer: matthew X-VCS-Committer-Name: Matthew Smith X-VCS-Revision: 7a89ddd17a5cee5991d3ee6596a0e9720e794750 X-VCS-Branch: master Date: Sun, 27 Feb 2022 16:14:28 +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: ac5297d1-b346-4009-bce6-accb6fb1c882 X-Archives-Hash: 97332a40b95267a717c834a68715d185 commit: 7a89ddd17a5cee5991d3ee6596a0e9720e794750 Author: Matthew Smith gentoo org> AuthorDate: Sun Feb 27 16:07:33 2022 +0000 Commit: Matthew Smith gentoo org> CommitDate: Sun Feb 27 16:13:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a89ddd1 dev-libs/tree-sitter: remove ts-cli USE flag Signed-off-by: Matthew Smith gentoo.org> dev-libs/tree-sitter/tree-sitter-0.20.2-r1.ebuild | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/dev-libs/tree-sitter/tree-sitter-0.20.2-r1.ebuild b/dev-libs/tree-sitter/tree-sitter-0.20.2-r1.ebuild new file mode 100644 index 000000000000..9800235d12bc --- /dev/null +++ b/dev-libs/tree-sitter/tree-sitter-0.20.2-r1.ebuild @@ -0,0 +1,37 @@ +# 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 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +LICENSE="MIT" +SLOT="0" + +PATCHES=( "${FILESDIR}/${PN}-No-static-libs-gentoo.patch" ) + +src_prepare() { + default + tc-export CC +} + +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 +}