commit:     b7f90b1e51f57657ad0c28f734eb8063f7f7542e
Author:     Ali Abdel-Qader <abdelqaderali <AT> protonmail <DOT> com>
AuthorDate: Mon Nov 22 18:42:51 2021 +0000
Commit:     Nick Sarnie <sarnex <AT> gentoo <DOT> org>
CommitDate: Tue Nov 23 02:59:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7f90b1e

dev-libs/tree-sitter: Bump to 0.20.1

Signed-off-by: Ali Abdel-Qader <abdelqaderali <AT> protonmail.com>
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org>

 dev-libs/tree-sitter/Manifest                  |  1 +
 dev-libs/tree-sitter/tree-sitter-0.20.1.ebuild | 33 ++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest
index fd616b56d9e9..63594a2022ee 100644
--- a/dev-libs/tree-sitter/Manifest
+++ b/dev-libs/tree-sitter/Manifest
@@ -1 +1,2 @@
 DIST tree-sitter-0.20.0.tar.gz 2876764 BLAKE2B 
058f62c2067ce5fcf9440f281c63908f93fda09a6b3604d7196b9c56a15ba88ded7d75f9c21b4c5c4209f587fb5f326ae655cb5f5d84b46bfd783b2147048568
 SHA512 
a51fa0af45a6a99bb74ff53c15a4d7939eb24c6720e65ec7a96f74ffbce54801f14539e071ec6a4891dae778d7dea5edcecc6dd57716cc70a891c9e6cfa55013
+DIST tree-sitter-0.20.1.tar.gz 2903038 BLAKE2B 
092b3110ca2dd2dc2f6298dad98c2400064ba7b7bce90cdf7c50bdfabf0bf52629f5315728b578ae46efc1a4c2f71ff024ffae202205a3b563188e3537565359
 SHA512 
172e9b2fba5d4610f663934dff1cf4580d09631a3d8d5d7249b6a80288aa9fdda9f5eac50a501935a87414563b46f843c3d98a1f7e45302a5c61dd3c08159606

diff --git a/dev-libs/tree-sitter/tree-sitter-0.20.1.ebuild 
b/dev-libs/tree-sitter/tree-sitter-0.20.1.ebuild
new file mode 100644
index 000000000000..fa5c4b5c1917
--- /dev/null
+++ b/dev-libs/tree-sitter/tree-sitter-0.20.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit 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/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
+}

Reply via email to