diff options
author | Ali Abdel-Qader <abdelqaderali@protonmail.com> | 2021-06-30 02:24:35 -0400 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2021-06-30 10:52:15 -0400 |
commit | def0f1b73fcee8a583e75c3a8caecc2f4d3f7c8c (patch) | |
tree | 30aa624c6beb9a9ef97ff4a7d57e813c624bfc8f /dev-libs/tree-sitter | |
parent | sys-kernel/vanilla-sources: Automated version bump to {4.4.274,4.9.274,4.14.2... (diff) | |
download | gentoo-def0f1b73fcee8a583e75c3a8caecc2f4d3f7c8c.tar.gz gentoo-def0f1b73fcee8a583e75c3a8caecc2f4d3f7c8c.tar.bz2 gentoo-def0f1b73fcee8a583e75c3a8caecc2f4d3f7c8c.zip |
dev-libs/tree-sitter: Bump to 0.20.0
Signed-off-by: Ali Abdel-Qader <abdelqaderali@protonmail.com>
Package-Manager: Portage-3.0.20, 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/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/tree-sitter/tree-sitter-0.20.0.ebuild | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest index 0ee98d4efa4e..34e48a1fb490 100644 --- a/dev-libs/tree-sitter/Manifest +++ b/dev-libs/tree-sitter/Manifest @@ -1 +1,2 @@ DIST tree-sitter-0.19.5.tar.gz 2871077 BLAKE2B 487b846ac6ea4177d2b61721484cbde63636dde2dca0c15a35d4c4f0e18a9167aa11b750584d711632c2f42d67712b0818b57fb5815f62d95025022ecbc8cde9 SHA512 5d8669a2de6d261dfb083f0df07697156a703f56fea282babcaa7d391ef5538891b2c1103494a788bcb850cf494c184b05df5152f9276befab16f0fe6b23a9a9 +DIST tree-sitter-0.20.0.tar.gz 2876764 BLAKE2B 058f62c2067ce5fcf9440f281c63908f93fda09a6b3604d7196b9c56a15ba88ded7d75f9c21b4c5c4209f587fb5f326ae655cb5f5d84b46bfd783b2147048568 SHA512 a51fa0af45a6a99bb74ff53c15a4d7939eb24c6720e65ec7a96f74ffbce54801f14539e071ec6a4891dae778d7dea5edcecc6dd57716cc70a891c9e6cfa55013 diff --git a/dev-libs/tree-sitter/tree-sitter-0.20.0.ebuild b/dev-libs/tree-sitter/tree-sitter-0.20.0.ebuild new file mode 100644 index 000000000000..3ae0a4de6290 --- /dev/null +++ b/dev-libs/tree-sitter/tree-sitter-0.20.0.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="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~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 +} |