summaryrefslogtreecommitdiff
path: root/dev-libs/tree-sitter
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-18 00:01:42 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-18 00:01:42 +0100
commit075fd1f8cabc5879c6eb42127fb84c3058677fde (patch)
tree8b761e85416656264e041b1954427a58894b3333 /dev-libs/tree-sitter
parent6c9dc10e04cd513437e046ccca0e51a3d6d4dc7c (diff)
gentoo auto-resync : 18:05:2024 - 00:01:41
Diffstat (limited to 'dev-libs/tree-sitter')
-rw-r--r--dev-libs/tree-sitter/Manifest4
-rw-r--r--dev-libs/tree-sitter/tree-sitter-0.22.5.ebuild2
-rw-r--r--dev-libs/tree-sitter/tree-sitter-0.22.6.ebuild50
3 files changed, 54 insertions, 2 deletions
diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest
index 727f7817b765..eda457536cf9 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.2.tar.gz 3040339 BLAKE2B c18a79b4fdf553c50b4dd4c67c92d02fd341c5266c4658eb226d9ea455f23d2d22fe4ed4ca48811da2c8a59c403d8eff53dd9257468df7a9cfa640652c485c95 SHA512 a42d744f6e1db7c7c842804f3435b87ccb5d0df2363a18eee38353f12f18c8cf0c6211bf0225fd5f2c0431ca8531aa4ddd73d87d42b80fa35c3c701cae2d7856
DIST tree-sitter-0.22.4.tar.gz 3034955 BLAKE2B 797feb6e2171b0e00b10c67c8b6dcda6cc2ec420ef797991a642524982629496e4b7bcae92a2658ba3adffea75332bcda09ecbced01e73e13ba6f4c39d15e9ea SHA512 7f160e88cdffb47f4ee3f884385ec759fcf88883307221ddadd8bf561d1dfb3659b0c7f4b216286066cf912183cc8234788492d62d1f1ad14fcb39bd3287cf36
DIST tree-sitter-0.22.5.tar.gz 3035094 BLAKE2B f54b16e2421ad68fd34b5bada767010be4224652f5a138f7afcdbc15ebaae98dfe3cc8ac77e5e8e5ab12cef516464d29e38a23fc895fa966d5a03a9569fa5ffc SHA512 cff3902e8f6e0211b6d4fafecf9f0d73a2bf73efed68df0d6e8798aac3e685cbcc882fb698ebc10115e72bcf46b59aabd0b14dd402a08d3b42cfceffea5aab2c
+DIST tree-sitter-0.22.6.tar.gz 3036954 BLAKE2B f109a738214882e63a721e8db384fa42a624af78d42ceb9ab7a45135b36cf3bbbd2554f470ca5038404365f5b9dbf9979c4d26309e123a9d9533feb1f0a3f724 SHA512 bf0b87bb9ce16b049824e53933986ac451a7b7f432df39ee9d4546627d740ae689af9e838a53cc50e29d66d6d85d51dab7490d66a429a14bcc9d0b8e2935a63a
EBUILD tree-sitter-0.22.2.ebuild 1142 BLAKE2B e42075b38192191fccf183543de4b502b074c09bdac20c050823f43bdacf130b6bb55681f6ff30eaab2b6f4aa682a36ff9340bcfb202ac90d37ca0faf8e06ded SHA512 8e4b1ba04249d49d972cf775b319ab48ffbb83bdcd15ec90cee536578669c8dbb6c3c0919ddad52e40f90f35d98bca39c062cb3d05be6b14120e73b0c22a3adb
EBUILD tree-sitter-0.22.4-r1.ebuild 1167 BLAKE2B 0c741d26c7ddea422b5a5a5a94606e6b0c6450f1e7b8d3dd59bb8e685f8cc83606969ff519b7668e64f4acb4dee8f33e15b73d4b3cfd98c1d2636372ef77f746 SHA512 21f01d2f7139b5edf50de4c363da3d2943a73abe984daa66833c965b72232d930fde2b07281b7967e07abc8b5f88cad45d8d87b3f303ee312036e2a986158ac9
-EBUILD tree-sitter-0.22.5.ebuild 1249 BLAKE2B c6e591aa89ecdc32bfcdfed3469cf0d43cbcceabafe86b98e9d89a0674c6359fbea3014590796651d6795f2cb672acf2018c668a866415ef72d1fec1d7f3f7c8 SHA512 138216c37fb57110956423627e4a72593dcfc147cc6f78796aba7268df7ffa1ef770ea06cf6a9d0f8d5a45a05a6e3033872a9e3bd9b4fbdec6daaf7a4f90858c
+EBUILD tree-sitter-0.22.5.ebuild 1245 BLAKE2B 0acecf82cf8b8c2897efe1a89db65a9c007c5e99803c6e86886abe2739bdba7217be95196645148df2225cb001fd40f1cc6e539579bce7705afd2df06f0154d3 SHA512 32f146bcd4f08f836eec53967b63298fe6812cd0d2bcb5a3026233a8662f9495fbf81f1ef8a6621e9bf1a7342af757edb6b5e2772738a23c8f1ff4f7d68d650c
+EBUILD tree-sitter-0.22.6.ebuild 1249 BLAKE2B c6e591aa89ecdc32bfcdfed3469cf0d43cbcceabafe86b98e9d89a0674c6359fbea3014590796651d6795f2cb672acf2018c668a866415ef72d1fec1d7f3f7c8 SHA512 138216c37fb57110956423627e4a72593dcfc147cc6f78796aba7268df7ffa1ef770ea06cf6a9d0f8d5a45a05a6e3033872a9e3bd9b4fbdec6daaf7a4f90858c
EBUILD tree-sitter-9999.ebuild 1249 BLAKE2B c6e591aa89ecdc32bfcdfed3469cf0d43cbcceabafe86b98e9d89a0674c6359fbea3014590796651d6795f2cb672acf2018c668a866415ef72d1fec1d7f3f7c8 SHA512 138216c37fb57110956423627e4a72593dcfc147cc6f78796aba7268df7ffa1ef770ea06cf6a9d0f8d5a45a05a6e3033872a9e3bd9b4fbdec6daaf7a4f90858c
MISC metadata.xml 1030 BLAKE2B 378584c9e0ae9c9d988cadd1150bbad84a14e5693120f874247d5ca744cd21d6b60cfdbcce8d028f5e8aefb6aac1ce2e8faebd23e68d86976f6dff333aecd518 SHA512 e97e2bc17d4d79fca8b18bf412250ee6547af95d7700b830b04eadc6cb783bcae618df58eecd7aa8b3209bcb6e2e13f2c92d175c9e75d437b6bac3b6c89a898f
diff --git a/dev-libs/tree-sitter/tree-sitter-0.22.5.ebuild b/dev-libs/tree-sitter/tree-sitter-0.22.5.ebuild
index 178a494dffc9..18a010bd57ca 100644
--- a/dev-libs/tree-sitter/tree-sitter-0.22.5.ebuild
+++ b/dev-libs/tree-sitter/tree-sitter-0.22.5.ebuild
@@ -12,7 +12,7 @@ if [[ ${PV} == *9999* ]]; then
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 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
+ KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ppc ~ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
fi
LICENSE="MIT"
diff --git a/dev-libs/tree-sitter/tree-sitter-0.22.6.ebuild b/dev-libs/tree-sitter/tree-sitter-0.22.6.ebuild
new file mode 100644
index 000000000000..178a494dffc9
--- /dev/null
+++ b/dev-libs/tree-sitter/tree-sitter-0.22.6.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 ~ia64 ~loong ~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
+}