summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Abdel-Qader <abdelqaderali@protonmail.com>2021-01-07 22:01:37 -0500
committerNick Sarnie <sarnex@gentoo.org>2021-01-07 22:08:43 -0500
commit9d2120b72d14914c1af7ac5c6b5ee2ab17065bc0 (patch)
tree1f46c666bb77634cd84f4fe468a391fb50e4ef39 /dev-libs/tree-sitter
parentnet-libs/libmbim: Drop old versions (diff)
downloadgentoo-9d2120b72d14914c1af7ac5c6b5ee2ab17065bc0.tar.gz
gentoo-9d2120b72d14914c1af7ac5c6b5ee2ab17065bc0.tar.bz2
gentoo-9d2120b72d14914c1af7ac5c6b5ee2ab17065bc0.zip
dev-libs/tree-sitter: version bump to 0.18.0
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Ali Abdel-Qader <abdelqaderali@protonmail.com> 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.18.0.ebuild26
2 files changed, 27 insertions, 0 deletions
diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest
index 2959e6a352c9..394302039778 100644
--- a/dev-libs/tree-sitter/Manifest
+++ b/dev-libs/tree-sitter/Manifest
@@ -1 +1,2 @@
DIST tree-sitter-0.17.3.tar.gz 519006 BLAKE2B 81eb9bdfc9f27e7b172b6c17333eece5515cf292d5b08eb5362f108db483e329ff6d309ccc40ef2de23d1a32c437cdbc1b9cf800146902a3d913feecf8b63269 SHA512 48a827d7bea184a84ad9f594bc5dc1869bad9aa2823f83d1ac7d58e6feaa092e7088e7eb0dcc6d3aa3810d25ff9f25ecb531751c77314ff7d07fa05f95b7a013
+DIST tree-sitter-0.18.0.tar.gz 521866 BLAKE2B 16fdfa721b6895f4945f02875f6ffc8ba6931bb822ad0c7666e302d9a67fa0260ca09e8add6eae5cd5b37a3251dbfca7feb9581a78bb8385cf9466fc07745f49 SHA512 ba090b5136330e24ff3c23f3f9f98af197bddf5ed56fb4930fbbfac317ba5ebd02488afe6c1f35afa45e324baa785569f4fbdb1b8ca020f4bea5e22d9fc76aa8
diff --git a/dev-libs/tree-sitter/tree-sitter-0.18.0.ebuild b/dev-libs/tree-sitter/tree-sitter-0.18.0.ebuild
new file mode 100644
index 000000000000..a59778d2f559
--- /dev/null
+++ b/dev-libs/tree-sitter/tree-sitter-0.18.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-No-static-libs-gentoo.patch"
+)
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/lib64" install
+}