summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Abdel-Qader <abdelqaderali@protonmail.com>2021-06-04 11:04:38 -0400
committerNick Sarnie <sarnex@gentoo.org>2021-06-04 14:09:55 -0400
commit7a9689cc752a8656760ecf16ac9304860aca8f17 (patch)
tree7f71cc13e331050c8c12df37a88dcbb4c1b30fa5 /dev-libs/tree-sitter
parentdev-python/paramiko: Enable py3.10 (diff)
downloadgentoo-7a9689cc752a8656760ecf16ac9304860aca8f17.tar.gz
gentoo-7a9689cc752a8656760ecf16ac9304860aca8f17.tar.bz2
gentoo-7a9689cc752a8656760ecf16ac9304860aca8f17.zip
dev-libs/tree-sitter: Bump to 0.19.5
Signed-off-by: Ali Abdel-Qader <abdelqaderali@protonmail.com> Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'dev-libs/tree-sitter')
-rw-r--r--dev-libs/tree-sitter/Manifest1
-rw-r--r--dev-libs/tree-sitter/tree-sitter-0.19.5.ebuild33
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest
index 687f4af6d09a..9688760ff29f 100644
--- a/dev-libs/tree-sitter/Manifest
+++ b/dev-libs/tree-sitter/Manifest
@@ -1 +1,2 @@
DIST tree-sitter-0.19.4-r1.tar.gz 2869856 BLAKE2B ae010a66f5fd51175b474e1418d36965cea8ed87edb5d186c9a554cc2a193233046148ffd8f7764b61c166e75eb94866115d948b2a367a5e1140f5d41c9f8505 SHA512 cc6adba489f4bbf3348b24f6d0d4039ae8bd80164d6e6bd5ee313bea064ef978d43aa78f7294601f65a95501b4fa0a914af879fdc362e54f429ca2255f70ae2b
+DIST v0.19.5.tar.gz 2871077 BLAKE2B 487b846ac6ea4177d2b61721484cbde63636dde2dca0c15a35d4c4f0e18a9167aa11b750584d711632c2f42d67712b0818b57fb5815f62d95025022ecbc8cde9 SHA512 5d8669a2de6d261dfb083f0df07697156a703f56fea282babcaa7d391ef5538891b2c1103494a788bcb850cf494c184b05df5152f9276befab16f0fe6b23a9a9
diff --git a/dev-libs/tree-sitter/tree-sitter-0.19.5.ebuild b/dev-libs/tree-sitter/tree-sitter-0.19.5.ebuild
new file mode 100644
index 000000000000..2e7d53d0e067
--- /dev/null
+++ b/dev-libs/tree-sitter/tree-sitter-0.19.5.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"
+ KEYWORDS="~amd64 ~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
+}