diff options
Diffstat (limited to 'dev-libs/tree-sitter')
-rw-r--r-- | dev-libs/tree-sitter/Manifest | 8 | ||||
-rw-r--r-- | dev-libs/tree-sitter/tree-sitter-0.20.0.ebuild | 33 | ||||
-rw-r--r-- | dev-libs/tree-sitter/tree-sitter-0.20.2-r1.ebuild | 37 | ||||
-rw-r--r-- | dev-libs/tree-sitter/tree-sitter-0.20.6.ebuild | 8 | ||||
-rw-r--r-- | dev-libs/tree-sitter/tree-sitter-9999.ebuild | 8 |
5 files changed, 16 insertions, 78 deletions
diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest index ffc3b5340a27..d0f522667ab8 100644 --- a/dev-libs/tree-sitter/Manifest +++ b/dev-libs/tree-sitter/Manifest @@ -1,9 +1,5 @@ AUX tree-sitter-No-static-libs-gentoo.patch 793 BLAKE2B 9f80752bff2b5d327889702b6d890a4cdfefc74965a8109e692ddbf576cdea62062df0b3757c2ac8264946e549bbc9885f1b52b870f932c4805b74f5171fa718 SHA512 8eb3e40f91ea5a23ae668a7208b697d6d8c67f34f5807c0c26e8ed56357a577b3f3e6e7138d32aa69f8d1865b274595341dfe77674abf8eea1be442ca023da9d -DIST tree-sitter-0.20.0.tar.gz 2876764 BLAKE2B 058f62c2067ce5fcf9440f281c63908f93fda09a6b3604d7196b9c56a15ba88ded7d75f9c21b4c5c4209f587fb5f326ae655cb5f5d84b46bfd783b2147048568 SHA512 a51fa0af45a6a99bb74ff53c15a4d7939eb24c6720e65ec7a96f74ffbce54801f14539e071ec6a4891dae778d7dea5edcecc6dd57716cc70a891c9e6cfa55013 -DIST tree-sitter-0.20.2.tar.gz 2904490 BLAKE2B cae19e3a66778ea72bf5cb0e5153bb6b7dfec0b059c01825377742886fadd52d789f456e82287d71841afad8bd5347361d5ef718b12e20e94c629480c43f4f33 SHA512 4b9a7da47b48b0003daf9af60f9d48aacf7c74d1c9e2645eafd74f62f568bc69e2fb36bb8f0c6b9f1dc85829e146786cc6bf7050ed1402167790b1552990665f DIST tree-sitter-0.20.6.tar.gz 2924556 BLAKE2B 17348717441497ea7fc91419a0e8796d077b9acda2b584e9c3e1ac4a7a3f1fa3f84d5b749f21144d0593aaa7bf2e7ff9665539e91c6e81cda4359850e0fcdb14 SHA512 f0fb1e0073867c2a6e69b230e07e5eec32a2b30d3c711ec188526e287d6a1ef06de266d476482f900ec7c9ff6c11909899fd35a802e96f0befc6e99815502377 -EBUILD tree-sitter-0.20.0.ebuild 781 BLAKE2B f37906ce4b8b84343fbf56d0323c0fb5e722ea7e8e9810c4b16c222bdeef9cf6cf6855e0fea8e161e5ea38a25c74a795a255779713e2419fd163e439adf20d96 SHA512 5b3280ad08766687a4288450fbf56b80bf56fd9cbf98e9d4f4a450cb373be75027df22c723cceafe17cd25c410b635f9e7a17d98fa13b29b4f6ce89b1beee7f3 -EBUILD tree-sitter-0.20.2-r1.ebuild 907 BLAKE2B 73a75d277595a6d473aac238af11581bff7287278cf6bd9f4606f962168a76e747cf34e679e42fc0d3f23277be9d6d4d363f6a8b271317de9704e9798da6e548 SHA512 254e134fa31466f70e430457ff595e172e37b8f6c541eb4e1e7743b4ad97d639d5e1fc75bdf8cd6f4c769e191582849f22d5283626ba40f781385d76e9a68433 -EBUILD tree-sitter-0.20.6.ebuild 914 BLAKE2B a08299e4e5f381ecd05c19e118e03f5c5ddfc21afd492ee9b70385a3a7a5f0864cb1526345a0fadc57bd700c68703d2c0c1c9d49bbc530dfdfe836a52506ed35 SHA512 ccf3cbc99000dfdab94a7f907395b26b343f6d688596bb293584e88de93b680f62d88149904b77ec3732f212b3df255057bd9a5e4b30aa4d1d1e6f857199dcd2 -EBUILD tree-sitter-9999.ebuild 922 BLAKE2B c320ef30280009585f362dc939673a5134d6414213bc93feb8e5d1e62a656223352ef6431d1dbd7e48ad7bcefe4f3b3d5702b8183f19fa1855a18e379115d3a0 SHA512 698bc98e3631b5539ecc9032e1e1aa8ee0112eed38f61726cd716772d156c2f42d28ecee0d5ec0a8015ec247fdd919911e2582256bf0c59782cb8134524ef9af +EBUILD tree-sitter-0.20.6.ebuild 1021 BLAKE2B b36aa0a4a1563751dd8315f27f01203693f543f22513d21e269087050898d5a9cfc67c856147ef407718257634214678e12e820af645217a52deb26229a4ce3c SHA512 c229498f68a38d73b7ed14c3d0ecb8261c789651b858a6c73a70056a6b12b36d1dac69f1af82258052dd309543aa0da2dcff6329b08715bb3c7127732a316f97 +EBUILD tree-sitter-9999.ebuild 1029 BLAKE2B c335042cf6c9155c2fad5c9c3eb9b508956b077cb22ee9e20f2f612a4afb2e0ec3797b149bb2b085c70e9d9110b6cdcb818aa4b66afff9d8fe54b40a5921699a SHA512 3284675110336a56485f5b4577e5461cbcf2e400deb4a4de5b107b248d8271f5e382dd247d1679c0be70e0ffb5f8820592e54c83f37807ae301b21f63d17b3de MISC metadata.xml 927 BLAKE2B 1b94b1e0f323461151d82920b4185cdee4aff41ff751f170d893b80f62423545adfd5efd8cc920c933f599089fbd72423ffdb4e43dc51f975bbc4eebe601abd1 SHA512 88e936a507fbd1154c1c167f6fc343ded2e3e6d2c073d2efce9a2e1c98ac1877e5c1197a903a597b403b444189cf2e4b519c4cf144a8eb1ad050c0a8b07ae101 diff --git a/dev-libs/tree-sitter/tree-sitter-0.20.0.ebuild b/dev-libs/tree-sitter/tree-sitter-0.20.0.ebuild deleted file mode 100644 index 7498b7f83f44..000000000000 --- a/dev-libs/tree-sitter/tree-sitter-0.20.0.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# 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 -} diff --git a/dev-libs/tree-sitter/tree-sitter-0.20.2-r1.ebuild b/dev-libs/tree-sitter/tree-sitter-0.20.2-r1.ebuild deleted file mode 100644 index 0ae7232aab0d..000000000000 --- a/dev-libs/tree-sitter/tree-sitter-0.20.2-r1.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2022 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 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 -} - -pkg_postinst() { - optfeature "building and testing grammars" dev-util/tree-sitter-cli -} diff --git a/dev-libs/tree-sitter/tree-sitter-0.20.6.ebuild b/dev-libs/tree-sitter/tree-sitter-0.20.6.ebuild index 4f1245a5a53f..a0ea2efaedea 100644 --- a/dev-libs/tree-sitter/tree-sitter-0.20.6.ebuild +++ b/dev-libs/tree-sitter/tree-sitter-0.20.6.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" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" fi LICENSE="MIT" @@ -25,6 +25,12 @@ src_prepare() { tc-export CC } +src_compile() { + emake \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" +} + src_install() { emake DESTDIR="${D}" \ PREFIX="${EPREFIX}/usr" \ diff --git a/dev-libs/tree-sitter/tree-sitter-9999.ebuild b/dev-libs/tree-sitter/tree-sitter-9999.ebuild index edede97efe4e..12d922e961da 100644 --- a/dev-libs/tree-sitter/tree-sitter-9999.ebuild +++ b/dev-libs/tree-sitter/tree-sitter-9999.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" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" fi LICENSE="MIT" @@ -25,6 +25,12 @@ src_prepare() { tc-export CC } +src_compile() { + emake \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" +} + src_install() { emake DESTDIR="${D}" \ PREFIX="${EPREFIX}/usr" \ |