summaryrefslogtreecommitdiff
path: root/dev-libs/tree-sitter
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-18 04:04:23 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-18 04:04:23 +0100
commit483d7c056fba15727fe24545f93627a1d1e1e2eb (patch)
tree80d144b60f8e1dc0d14c15cb3e5950da12c80074 /dev-libs/tree-sitter
parent8796aaedb3257bbe4d80b0033408b2210b2259d6 (diff)
gentoo auto-resync : 18:10:2024 - 04:04:23
Diffstat (limited to 'dev-libs/tree-sitter')
-rw-r--r--dev-libs/tree-sitter/Manifest2
-rw-r--r--dev-libs/tree-sitter/tree-sitter-0.24.3.ebuild50
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest
index 90089fe039f1..630a3beb690a 100644
--- a/dev-libs/tree-sitter/Manifest
+++ b/dev-libs/tree-sitter/Manifest
@@ -2,8 +2,10 @@ AUX tree-sitter-0.22.2-no-static.patch 952 BLAKE2B f961ad07850be8c7a7535eac82e23
DIST tree-sitter-0.22.6.tar.gz 3036954 BLAKE2B f109a738214882e63a721e8db384fa42a624af78d42ceb9ab7a45135b36cf3bbbd2554f470ca5038404365f5b9dbf9979c4d26309e123a9d9533feb1f0a3f724 SHA512 bf0b87bb9ce16b049824e53933986ac451a7b7f432df39ee9d4546627d740ae689af9e838a53cc50e29d66d6d85d51dab7490d66a429a14bcc9d0b8e2935a63a
DIST tree-sitter-0.23.0.tar.gz 2977346 BLAKE2B e10846d5bd0a6aa1ecac362e2ab2ccf0f0bdb17c5fde796d8d65f8bc84a6e054d86c18a42e66e8effef865f95013c38ff6bd6ab5498a680ae172d7d57020604e SHA512 ab821be564ac7223cc4f9659c08922a78016af9dd3bd69166706fb6a889ac175ba2712a337a1303aceb8f44beaf58640a183e77dddc2c57e35da23079d0cd7b9
DIST tree-sitter-0.23.2.tar.gz 2980520 BLAKE2B 54b4ad96948fc3ec6142da998306f9385ce9107a7c330915bbb733c5886a0baa869a675602be99aa4a491c58a1121d30f654856ce0f2dee0eff4c4fcce370f24 SHA512 393fa62fe6bce51ff5498f977bbb357fd896aaf98d80f08d4faed6dcf8fd5d41012a7489816c662c1873595108c30d0c18d7721a535c69d9904b2220fef8f858
+DIST tree-sitter-0.24.3.tar.gz 3018668 BLAKE2B fa703b6250e11274d0c5ebccb741cc41f521cc5e882383d8f891369540ce6b3b4b048eddb4d0c88186e57516e2d01977e76b42352f26759b3f6093a339cc6a11 SHA512 2d934c03b0ee71419654d03bf6e4ca759b4ef3217b8837fcaef64ee5b4bc8ea8298ff685ae4aaa477b615d11d538ff960b92529b11f13e936b85bad52e369cd3
EBUILD tree-sitter-0.22.6.ebuild 1241 BLAKE2B bc8ad59cee96fd6125e5e4ea523d28e70312ab86beaf1460c187dacbd03f1bcc5acffdc0ec45b5191045b446c81350fa3612baade638ec9a5c4434cd0a36793a SHA512 efe4fd10c292f2d64167c64227c5891408246b41b51ffd457c7329b7a98989186b9a8e341a36a4869362d614dce53b01ecd1b473a3f1ade1c54ba5af6e66d97f
EBUILD tree-sitter-0.23.0.ebuild 1242 BLAKE2B 7dbfdb0c638fd6d4a47f310e9f263865a0e480d01e09f72901c313b28172227b0ab27b253b1786f108d1c0b1a9c635be0b2034da7d5f7c57158b67a88091acdf SHA512 c20488e8e62ef51d6148e5f7cfd8ee25a4c4ccdd1df0564ea81a64e64a6ee5aa7b20cd9f6bd8084267c94bbb80313f3e0144b7ee0e4ccfabe399a5e2768f1dd2
EBUILD tree-sitter-0.23.2.ebuild 1249 BLAKE2B d681c9bf1fdb3c36d9835fa9d20a9872a3ecb88a5096df826e83a0c867511b4a223b248274371ba703e261baad625e79359b0788556b2433b11965e032a5c69b SHA512 25c3ba53544d06643e4361188995c2bb56e58b883954e13cc033b454c8d6a8ef2cbfde1142feb1418f00d55a9c8b2504d85cf70445bedeabbf7e0f08a1a48ff9
+EBUILD tree-sitter-0.24.3.ebuild 1249 BLAKE2B d681c9bf1fdb3c36d9835fa9d20a9872a3ecb88a5096df826e83a0c867511b4a223b248274371ba703e261baad625e79359b0788556b2433b11965e032a5c69b SHA512 25c3ba53544d06643e4361188995c2bb56e58b883954e13cc033b454c8d6a8ef2cbfde1142feb1418f00d55a9c8b2504d85cf70445bedeabbf7e0f08a1a48ff9
EBUILD tree-sitter-9999.ebuild 1243 BLAKE2B fab065045722c41fb421ed07e8c31025355d92505f8188f915a722a99eb5606f9a77fe11404d46a53c7d29a3601bdc3b4d3bce9cd9cad4a418d6d832d195ee53 SHA512 5c941e9beda07f69606c1e6ae6e1d519238e10274c4efa5220952725f3324e6d184509089d7a6993b7772e1ddc0d6d69696c5167687ba25cdc0b71bc2cd06d09
MISC metadata.xml 925 BLAKE2B 31cf13ceae402283a343b7c94cbf2cb2af6eb24a703b77580630f315912060da6174957722587713543cb4bc4948cdd21849718ba3ebfe662c156b36bf4d6842 SHA512 b137c7af0d4e025b6448b3723d432498944ef047e314a6f10324e6beac2c480b05bdd5ade12f192ffb5c9bfca8f3dc65aaaa9bfcd26f585d6df8b74c3986ab98
diff --git a/dev-libs/tree-sitter/tree-sitter-0.24.3.ebuild b/dev-libs/tree-sitter/tree-sitter-0.24.3.ebuild
new file mode 100644
index 000000000000..765a16ffae30
--- /dev/null
+++ b/dev-libs/tree-sitter/tree-sitter-0.24.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit optfeature 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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
+fi
+
+LICENSE="MIT"
+# ABI is not stable. Revisit after tree-sitter-1.0.
+# https://bugs.gentoo.org/930039
+# https://github.com/tree-sitter/tree-sitter/pull/3302
+SLOT="0/${PV}"
+RESTRICT="test" # tests are for CLI and not the lib
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.22.2-no-static.patch"
+)
+
+src_prepare() {
+ default
+ tc-export CC
+}
+
+src_compile() {
+ emake \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+ STRIP="" # bug 930020
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+ install
+}
+
+pkg_postinst() {
+ optfeature "building and testing grammars" dev-util/tree-sitter-cli
+}