public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matthew Smith" <matthew@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/tree-sitter/
Date: Fri, 19 Apr 2024 07:26:35 +0000 (UTC)	[thread overview]
Message-ID: <1713511539.00bd822f4fd40f12ccaf16f2af83d39595484ce9.matthew@gentoo> (raw)

commit:     00bd822f4fd40f12ccaf16f2af83d39595484ce9
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 19 07:24:10 2024 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Fri Apr 19 07:25:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00bd822f

dev-libs/tree-sitter: add 0.22.5

Set subslot to ${PV} to handle unstable ABI.

Bug: https://bugs.gentoo.org/930039
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 dev-libs/tree-sitter/Manifest                  |  1 +
 dev-libs/tree-sitter/tree-sitter-0.22.5.ebuild | 50 ++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest
index 5cf69b64952b..164b8e1ccc2e 100644
--- a/dev-libs/tree-sitter/Manifest
+++ b/dev-libs/tree-sitter/Manifest
@@ -2,3 +2,4 @@ DIST tree-sitter-0.20.9.tar.gz 3041304 BLAKE2B a6cf6606f75918eeab7dab0d2758cdba0
 DIST tree-sitter-0.22.1.tar.gz 3038644 BLAKE2B f4a2cae41e6ec327c8a77380fcf531b00a4fcd75997872c73371886379f35e31431da1e175e41b3c6bee9fdad46015d29bec93a103ea1ff36a1d365dc9a04d40 SHA512 fa2656ad3a6d52301b497512aecc87b8c50ab6646aaac4730a26249ed0878e4542e2d256e42e0179ebc06147f772a2cf38f9362bb94ea1a8f0ec8c21e06e75e7
 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

diff --git a/dev-libs/tree-sitter/tree-sitter-0.22.5.ebuild b/dev-libs/tree-sitter/tree-sitter-0.22.5.ebuild
new file mode 100644
index 000000000000..178a494dffc9
--- /dev/null
+++ b/dev-libs/tree-sitter/tree-sitter-0.22.5.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
+}


             reply	other threads:[~2024-04-19  7:26 UTC|newest]

Thread overview: 166+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19  7:26 Matthew Smith [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-05 18:21 [gentoo-commits] repo/gentoo:master commit in: dev-libs/tree-sitter/ Arthur Zamarin
2025-02-18 20:07 Arthur Zamarin
2025-02-18 20:07 Arthur Zamarin
2025-02-18 19:59 Arthur Zamarin
2025-02-10 18:26 Arthur Zamarin
2025-02-08 10:44 Arthur Zamarin
2025-02-08 10:40 Arthur Zamarin
2025-02-08 10:40 Arthur Zamarin
2025-02-08 10:29 Arthur Zamarin
2025-02-08 10:29 Arthur Zamarin
2025-02-08 10:28 Arthur Zamarin
2024-12-24 11:08 Sam James
2024-11-23 14:27 Sam James
2024-10-17  6:53 Arthur Zamarin
2024-10-15  5:58 Arthur Zamarin
2024-10-01 18:55 Arthur Zamarin
2024-09-27 20:52 Arthur Zamarin
2024-09-27 20:52 Arthur Zamarin
2024-09-27 20:37 Arthur Zamarin
2024-09-27 20:37 Arthur Zamarin
2024-09-06 10:38 Arthur Zamarin
2024-09-03  0:31 Ionen Wolkens
2024-08-28  7:59 Arthur Zamarin
2024-07-19  5:33 Arthur Zamarin
2024-07-04 19:06 Arthur Zamarin
2024-07-04 18:59 Arthur Zamarin
2024-07-04 18:59 Arthur Zamarin
2024-07-04 18:49 Arthur Zamarin
2024-07-04 18:47 Arthur Zamarin
2024-07-04 18:47 Arthur Zamarin
2024-07-04 18:43 Sam James
2024-06-12 23:24 Nick Sarnie
2024-06-08  6:01 Arthur Zamarin
2024-06-08  6:00 Arthur Zamarin
2024-06-08  5:54 Arthur Zamarin
2024-05-17 13:05 Sam James
2024-05-17 12:48 Sam James
2024-05-17 12:48 Sam James
2024-05-17  7:55 Arthur Zamarin
2024-05-17  6:47 Arthur Zamarin
2024-05-03  7:36 Arthur Zamarin
2024-05-01  5:28 Joonas Niilola
2024-04-19  7:26 Matthew Smith
2024-04-19  7:26 Matthew Smith
2024-04-15  7:25 Matthew Smith
2024-04-15  6:40 Arthur Zamarin
2024-04-14 18:32 Arthur Zamarin
2024-04-14 18:31 Matthew Smith
2024-04-14 17:33 Arthur Zamarin
2024-04-14 17:33 Arthur Zamarin
2024-04-14 17:28 Arthur Zamarin
2024-04-14 17:28 Arthur Zamarin
2024-04-14 17:28 Arthur Zamarin
2024-04-14 17:07 Arthur Zamarin
2024-04-14 15:19 Matthew Smith
2024-04-14 15:19 Matthew Smith
2024-04-12  6:26 Arthur Zamarin
2024-03-30 10:57 Arthur Zamarin
2024-03-11 16:59 Sam James
2024-03-11 16:59 Sam James
2024-03-11 16:59 Sam James
2024-03-11 16:59 Sam James
2024-03-11 16:59 Sam James
2024-03-11 12:52 Sam James
2024-03-11 12:52 Sam James
2024-02-08  1:18 Sam James
2024-02-03  8:22 Arthur Zamarin
2024-02-03  8:22 Arthur Zamarin
2024-02-03  6:56 Sam James
2024-02-02 20:07 Arthur Zamarin
2024-02-02 18:44 Jakov Smolić
2024-02-02 16:27 Arthur Zamarin
2024-02-02 15:23 Arthur Zamarin
2024-01-28 10:32 Matthew Smith
2024-01-28  9:53 Matthew Smith
2023-08-27 20:26 Sam James
2023-05-16 19:29 Jakov Smolić
2023-05-16 18:03 Arthur Zamarin
2023-05-16  7:49 Sam James
2023-05-16  7:49 Sam James
2023-05-16  7:49 Sam James
2023-05-16  7:49 Sam James
2023-05-16  6:33 Joonas Niilola
2023-05-16  6:33 Joonas Niilola
2023-04-16 15:30 Vadim Misbakh-Soloviov
2023-04-16 15:30 Vadim Misbakh-Soloviov
2023-04-13 23:14 Vadim Misbakh-Soloviov
2023-04-05  7:08 Matthew Smith
2022-11-18 16:33 Arthur Zamarin
2022-10-25 11:12 Sam James
2022-10-25 11:12 Sam James
2022-10-20 21:07 Sam James
2022-10-20 19:09 Arthur Zamarin
2022-10-20 18:51 Arthur Zamarin
2022-10-20 18:51 Arthur Zamarin
2022-09-09  9:48 Matthew Smith
2022-07-28 19:59 Matthew Smith
2022-07-28 19:59 Matthew Smith
2022-07-28 19:59 Matthew Smith
2022-05-07 11:14 WANG Xuerui
2022-05-07 11:14 WANG Xuerui
2022-04-18 18:22 Arthur Zamarin
2022-04-18  9:27 Agostino Sarubbo
2022-04-17 18:33 Arthur Zamarin
2022-04-17 18:33 Arthur Zamarin
2022-04-17 18:33 Arthur Zamarin
2022-04-17 18:33 Arthur Zamarin
2022-04-17  8:07 Jakov Smolić
2022-04-17  8:07 Jakov Smolić
2022-03-16 15:18 Sam James
2022-03-12  8:36 Matthew Smith
2022-03-12  8:36 Matthew Smith
2022-03-06  8:00 Sam James
2022-03-06  7:35 Sam James
2022-02-28 19:19 Jakov Smolić
2022-02-28 10:15 Agostino Sarubbo
2022-02-28  4:43 Sam James
2022-02-27 22:42 Sam James
2022-02-27 22:42 Sam James
2022-02-27 16:47 Matthew Smith
2022-02-27 16:47 Matthew Smith
2022-02-27 16:47 Matthew Smith
2022-02-27 16:14 Matthew Smith
2022-02-27 16:14 Matthew Smith
2022-01-02 17:53 Nick Sarnie
2021-11-23  2:59 Nick Sarnie
2021-09-07 17:04 Sam James
2021-07-25  3:16 Matt Turner
2021-07-16 21:44 Sam James
2021-07-14 16:08 Sergei Trofimovich
2021-07-13 20:05 Sam James
2021-07-13  6:28 Agostino Sarubbo
2021-07-12 22:37 Sam James
2021-07-12 21:59 Sam James
2021-06-30 14:53 Nick Sarnie
2021-06-30 14:53 Nick Sarnie
2021-06-25 12:50 Marek Szuba
2021-06-20  1:45 Sam James
2021-06-15 15:40 Sergei Trofimovich
2021-06-14  6:39 Sergei Trofimovich
2021-06-14  6:37 Sergei Trofimovich
2021-06-14  6:36 Sergei Trofimovich
2021-06-12 16:34 Sam James
2021-06-12 16:34 Sam James
2021-06-04 18:46 Nick Sarnie
2021-06-04 18:11 Nick Sarnie
2021-06-04 18:11 Nick Sarnie
2021-04-07  3:19 Nick Sarnie
2021-04-06 19:03 Sergei Trofimovich
2021-03-30  3:47 Nick Sarnie
2021-03-18 21:30 Nick Sarnie
2021-03-18 21:30 Nick Sarnie
2021-03-16 21:10 Nick Sarnie
2021-03-16 21:08 Nick Sarnie
2021-03-06 20:44 Nick Sarnie
2021-03-06 20:44 Nick Sarnie
2021-03-02  4:49 Nick Sarnie
2021-03-02  4:44 Nick Sarnie
2021-02-27  3:45 Nick Sarnie
2021-02-27  3:30 Nick Sarnie
2021-02-21  4:31 Nick Sarnie
2021-02-21  4:31 Nick Sarnie
2021-02-12 18:43 Nick Sarnie
2021-01-12 20:40 Nick Sarnie
2021-01-08  3:10 Nick Sarnie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1713511539.00bd822f4fd40f12ccaf16f2af83d39595484ce9.matthew@gentoo \
    --to=matthew@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox