diff options
author | Ali Abdel-Qader <abdelqaderali@protonmail.com> | 2021-11-22 13:42:51 -0500 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2021-11-22 21:59:01 -0500 |
commit | b7f90b1e51f57657ad0c28f734eb8063f7f7542e (patch) | |
tree | 0c931e0d4ff89103be2bd1d92970a70daceca57c /dev-libs/tree-sitter | |
parent | app-emulation/wine-staging: Drop old (diff) | |
download | gentoo-b7f90b1e51f57657ad0c28f734eb8063f7f7542e.tar.gz gentoo-b7f90b1e51f57657ad0c28f734eb8063f7f7542e.tar.bz2 gentoo-b7f90b1e51f57657ad0c28f734eb8063f7f7542e.zip |
dev-libs/tree-sitter: Bump to 0.20.1
Signed-off-by: Ali Abdel-Qader <abdelqaderali@protonmail.com>
Package-Manager: Portage-3.0.28, 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.1.ebuild | 33 |
2 files changed, 34 insertions, 0 deletions
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 +} |