diff options
Diffstat (limited to 'dev-python/tree-sitter')
-rw-r--r-- | dev-python/tree-sitter/Manifest | 12 | ||||
-rw-r--r-- | dev-python/tree-sitter/tree-sitter-0.21.3.ebuild | 75 | ||||
-rw-r--r-- | dev-python/tree-sitter/tree-sitter-0.23.0-r1.ebuild (renamed from dev-python/tree-sitter/tree-sitter-0.23.0.ebuild) | 5 | ||||
-rw-r--r-- | dev-python/tree-sitter/tree-sitter-0.23.1.ebuild | 58 |
4 files changed, 65 insertions, 85 deletions
diff --git a/dev-python/tree-sitter/Manifest b/dev-python/tree-sitter/Manifest index 95a2353c8463..0f4dac84c105 100644 --- a/dev-python/tree-sitter/Manifest +++ b/dev-python/tree-sitter/Manifest @@ -1,15 +1,9 @@ AUX tree-sitter-0.21.0-unbundle.patch 516 BLAKE2B 9bee97b5563088af7ff31aaa9da2e2a0a5ddb54b84d5520994df5a6e9e8472e166ce50c23c7c77e1f495cc3139a532c710dc95e17c5ddcb35c56072538931a99 SHA512 9a583f4c4eb614afb7e6d6961cdf0390a0d45f54b0860a59fe6f2dc4fe0fdce0767fb2c5bd809ffc5aa7ce153c79b162dcbb41e05e0d7540614ab23da5889c74 AUX tree-sitter-0.22.2-unbundle.patch 819 BLAKE2B 2190f524ad43240e90269ef475a7290948080d99bf49e0431c0334affa902a4aa6682f9ad723862722606ebf76988089c22adbbcba7d01024a93e96c438dbadc SHA512 4fd8e0b642277c7ea44dfd93d4c4bff46ce8f11cae558d7c5ad189fa69d9676949bd8aff3c468b2fdae4e74a63c08e96f2e1bf8152c58380b2bc66971079fdd2 -DIST tree-sitter-0.21.3.gh.tar.gz 38504 BLAKE2B dd8ed0047763d92babbdb3fd34a6fe6b7a9299b99067600f473bf16b9754a98ada141d96f9b6b26abcb2ff178dd4ec34da547c9cdb7b3449f7b98a44ad10476e SHA512 61f3d4cb15a4106eb350be2adc6ad39de31bd5b2656f35acf2cdf828ababac37b6197d5565ee74b0b2c3a161619163bb98c38108ca3db616fee633e6e2a835a7 DIST tree-sitter-0.22.3.gh.tar.gz 164914 BLAKE2B 7ab97203fed17fc8d18c40d5a24ff60cea4757353a4124c832cc52bff93ed8af913dbbab682225eac309762a26e90c216d2e1058dcaeb860ebd467b4c9655939 SHA512 8ac729b90f942eef07de97c4ebd070c1040f338c1f57a2203b6aa4f3f8db863fdb5183c9b27d5be2ec270d7eefba7665800d6cc4e9265cbd4b4715af4c4d3921 DIST tree-sitter-0.23.0.gh.tar.gz 167761 BLAKE2B 694e90f608f51fe4f9add476cd5ebcd0ce04a7b027efc4948ce49a6cc0f05ebf4f15e0fe3f365f89f3e04cfec542cb3f1db1e5b05ff7ca23d3134561ea3dcf36 SHA512 67a6f3359c6283c58afcdbe5b6a521cdfcf2585a5361fb69a55eff82941726a143528a402e6d609286d8846c77e20d0a38551525d761e35abb21045ad9c5a2f8 -DIST tree-sitter-embedded-template-6d791b897ecda59baa0689a85a9906348a2a6414.tar.gz 12420 BLAKE2B 9b9c6dd135cef4490e145657c5eeeb1fd470faee3846007638d8247daf07227029c6e7e323a0ed30c5cf6d35602be6bfb62dc1c22076fd4a0e76b161d55cca38 SHA512 7744852711cb1659607298fa373ce3ef79de3212ff55c0fb4e9aebcb715548934065ee3b5b12e9d08169a6207879e154a94c9de8bff892c32729c35d49964736 -DIST tree-sitter-html-b5d9758e22b4d3d25704b72526670759a9e4d195.tar.gz 26609 BLAKE2B 223fe82ea18bf61b2b7ec664ad68ec1f324c9e0a1c78578db6063b9037c62be2bb762a9e47d0af81f7f244889f1f72683da3751c1d1c609c4a27fdcd0dc008b8 SHA512 15fd961c18d55a20487f48ef6a6f1822f9033baba8995f2e00cf8db1750036d69e19607f578fe90676aab30a173874969c69b91605b6073eb298f32f5f24f81d -DIST tree-sitter-javascript-de1e682289a417354df5b4437a3e4f92e0722a0f.tar.gz 396570 BLAKE2B d80cecb070bd1c82737ee1d38fff293ac4c96fde02563ecc910d30c920b902bd5c25a7ac50585f8cb7a26203d98f4a9e6feeebd4ac0d54bede9486ff642e03be SHA512 4a509a886ebeae0d960360113aff89fb56090f1fe4bb5a7866952736a04838a8b6421cc7d19473acc48b135bca4615325c59c0f0f7f3734f23a78fff9cc2050e -DIST tree-sitter-json-3b129203f4b72d532f58e72c5310c0a7db3b8e6d.tar.gz 15580 BLAKE2B d31b38f959fed785e8f26782e7de3da94502cd3c65de2caf4ad0621287d80e95dcc317b4f224461fa70b59f7a8ca933a235bdffbbcc1d9ca8d7cc0b31b3b2862 SHA512 90dd3e757d384d1b95cec892c5b465a0413ba61df35669fd7afc47037596c8d6b72b4f0fd9a39512ebda0d5d078ce7a408455ae11e535591e1515740cdcf9f6f -DIST tree-sitter-python-03e88c170cb23142559a406b6e7621c4af3128f5.tar.gz 272632 BLAKE2B 72f2e7f48456bad7b495605171c1c5ed3aa2790e832a4bc152ef522ee2ce210a922f7d38ad1154c58a8c621f81739071ab3404135dbb79a12ba28ca7c97ff3c7 SHA512 7ed72e6ad464935423aaca1a829c51eefd4a4b5651eeda4b7f1ed2a67ec4088f17267796872a1e1cf5666fc8a920c2b1763a9cb4cd82924ee7214e01d7fe8ab8 -DIST tree-sitter-rust-3a56481f8d13b6874a28752502a58520b9139dc7.tar.gz 419237 BLAKE2B 681b9656c872bcd15abbf11923d07df61b80b36b2972461a29f249dc53915e6d18a6dfdc65d71c863f7b38a27c8b3a47376f590d86afa44caa71f103e710fed5 SHA512 a8ce10080b984aa469d952ff8e862165676e10dc30c3d1762f7141d9fe83734aec3cb92c48552cb8f24575b538dd53fe0a80f1337f5d0d4c8767dd6bf564143e -EBUILD tree-sitter-0.21.3.ebuild 1967 BLAKE2B da4462ea2dfdfd92dcfc523dc5e3494688311875d78143efe0510ec79dea659fc7879141ffe5f10fcc55fcaf3edf56bfdd970ca992a2499da4fbbf06a8b1137b SHA512 bb1047309136b133dc66a6f1e0e77602fc2f1cf4a399c519cffaeb2d422f31d536e124f48756575c367253d4cfc3f33a84fa41b2f599fe633e054024bc523a9b +DIST tree-sitter-0.23.1.gh.tar.gz 168079 BLAKE2B fe3f8d9dae426d7771eab7775d78a0af72e59bf3448005cec1e597a3263b2ac89d7b2c1a80aa12da42db54b242da10d0395673412257d57dff557b2cf4763869 SHA512 39ed2d5d8a737bd72d539701a2dab5abc501b151a3666180f127645895582757eba2ec98607bbeb07bf90377fccad4a93cb385ce16565ed3420908129cea4f57 EBUILD tree-sitter-0.22.3-r2.ebuild 1357 BLAKE2B 6ef441096e7b783bf59e5f82b9b021cb903dfeb19982d53fec89de7ff5a7f3094f1fd8ac01d2a1459ab073ff1d840b1e1f59766a763523538b148a541465cc87 SHA512 8ef0bcd3d440797fb7c31c4df0e43d2211394bf1b3c7c8a5eb74abc03b47316fb937dfa7b1da3e7bb4703b62efa3ada72c26e969b1f1e731a3d21c9c066110b7 -EBUILD tree-sitter-0.23.0.ebuild 1474 BLAKE2B 9f4098cfb6b1c59315c688e18c90413368908c9c071273d5b359e53ce5056a0c27270ee6e6363c2d33c67d66565c8d59ac8c350ca0e1728c6e424b8fcb4551c2 SHA512 9793dc4127d916ccd04cef4cd124132a2fed341c60a182cc33916721ab98277d74e482cbb798a769071d88493306d7c305e731b1f35994a6399d5f6acef719df +EBUILD tree-sitter-0.23.0-r1.ebuild 1509 BLAKE2B ce0fb76d68eca51bb1245ed954af34cc1cd9862c4200dfaecc522ac7730fb2be90ef92d5d4f4c1998c7f068132e47863f351e71f6712e78514dfc1f380f18ff3 SHA512 524fe2e58158a82578ab09da7d69d18c8001266a5071c4c85fc55a5983d7a16a847e888d1db541cae0668912777109c48a73f23381bd649e5ae9353eee4e92eb +EBUILD tree-sitter-0.23.1.ebuild 1365 BLAKE2B 5efc032ee4a419129bceef563443bbca79faf92d6b957abb3ba5cef14013e768899359341f217ec50ca7b1bfa8c6a20f021fda11be8d62cbc20d3d935c2a6d5b SHA512 838df19e03b7504913c771e6cfd984efc01bdb0a43e7dacbc886d8a179224cfed4956801dd29fe9ce3b3332873da762f81c696c7cb174008330dedb8168f3909 MISC metadata.xml 502 BLAKE2B cad33788db5ede6c0c2ea8dd8b80da09f2f8ccac8d77a1a18d65ba639a91eb9d8a89036a52886777024c4a6dc8775993beeb6eaa790562d698123e5b5b261435 SHA512 fb56c5f39e390363c8a3c80bddff9babcf30c74b86192234153f03ba62e21f1a05b1db925e51a3f4b7876a61a606b051a5314f5475d4ba7092a3f89696a78ac3 diff --git a/dev-python/tree-sitter/tree-sitter-0.21.3.ebuild b/dev-python/tree-sitter/tree-sitter-0.21.3.ebuild deleted file mode 100644 index fbe13617e515..000000000000 --- a/dev-python/tree-sitter/tree-sitter-0.21.3.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) - -inherit distutils-r1 - -# Use the versions from the submodules under "tests/fixtures/" -declare -A TEST_FIXTURES=( - ["embedded-template"]="6d791b897ecda59baa0689a85a9906348a2a6414" - ["html"]="b5d9758e22b4d3d25704b72526670759a9e4d195" - ["javascript"]="de1e682289a417354df5b4437a3e4f92e0722a0f" - ["json"]="3b129203f4b72d532f58e72c5310c0a7db3b8e6d" - ["python"]="03e88c170cb23142559a406b6e7621c4af3128f5" - ["rust"]="3a56481f8d13b6874a28752502a58520b9139dc7" -) - -DESCRIPTION="Python bindings to the Tree-sitter parsing library" -HOMEPAGE=" - https://github.com/tree-sitter/py-tree-sitter/ - https://pypi.org/project/tree-sitter/ -" -SRC_URI=" - https://github.com/tree-sitter/py-tree-sitter/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" -SRC_URI+=" test? (" -for fixture in "${!TEST_FIXTURES[@]}" ; do - SRC_URI+=" - https://github.com/tree-sitter/tree-sitter-${fixture}/archive/${TEST_FIXTURES[${fixture}]}.tar.gz - -> tree-sitter-${fixture}-${TEST_FIXTURES[${fixture}]}.tar.gz - " -done -SRC_URI+=" )" -S=${WORKDIR}/py-${P} - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" - -# setuptools is needed for distutils import -DEPEND=">=dev-libs/tree-sitter-0.22.1:=" -RDEPEND="${DEPEND} - $(python_gen_cond_dep ' - dev-python/setuptools[${PYTHON_USEDEP}] - ' 3.12) -" - -distutils_enable_tests pytest - -PATCHES=( - "${FILESDIR}"/tree-sitter-0.21.0-unbundle.patch -) - -src_unpack() { - default - rmdir "${S}/tree_sitter/core" || die - - if use test; then - mkdir -p "${S}/tests/fixtures" || die - local fixture - for fixture in "${!TEST_FIXTURES[@]}" ; do - mv -T "tree-sitter-${fixture}-${TEST_FIXTURES[${fixture}]}" "${S}/tests/fixtures/tree-sitter-${fixture}" || die - done - fi -} - -src_test() { - rm -r tree_sitter || die - distutils-r1_src_test -} diff --git a/dev-python/tree-sitter/tree-sitter-0.23.0.ebuild b/dev-python/tree-sitter/tree-sitter-0.23.0-r1.ebuild index f4633d49029c..32ade3ffdcb2 100644 --- a/dev-python/tree-sitter/tree-sitter-0.23.0.ebuild +++ b/dev-python/tree-sitter/tree-sitter-0.23.0-r1.ebuild @@ -25,7 +25,10 @@ SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" # setuptools is needed for distutils import -DEPEND=">=dev-libs/tree-sitter-0.23.0:=" +DEPEND=" + >=dev-libs/tree-sitter-0.23.0:= + <dev-libs/tree-sitter-0.24.0:= +" RDEPEND="${DEPEND} $(python_gen_cond_dep ' dev-python/setuptools[${PYTHON_USEDEP}] diff --git a/dev-python/tree-sitter/tree-sitter-0.23.1.ebuild b/dev-python/tree-sitter/tree-sitter-0.23.1.ebuild new file mode 100644 index 000000000000..2ca69f44e4b2 --- /dev/null +++ b/dev-python/tree-sitter/tree-sitter-0.23.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings to the Tree-sitter parsing library" +HOMEPAGE=" + https://github.com/tree-sitter/py-tree-sitter/ + https://pypi.org/project/tree-sitter/ +" +SRC_URI=" + https://github.com/tree-sitter/py-tree-sitter/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" +S=${WORKDIR}/py-${P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# setuptools is needed for distutils import +DEPEND=">=dev-libs/tree-sitter-0.24.0:=" +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + dev-python/setuptools[${PYTHON_USEDEP}] + ' 3.12) +" +BDEPEND=" + test? ( + >=dev-libs/tree-sitter-html-0.23.0[python,${PYTHON_USEDEP}] + >=dev-libs/tree-sitter-javascript-0.23.0[python,${PYTHON_USEDEP}] + >=dev-libs/tree-sitter-json-0.23.0[python,${PYTHON_USEDEP}] + >=dev-libs/tree-sitter-python-0.23.0[python,${PYTHON_USEDEP}] + >=dev-libs/tree-sitter-rust-0.23.0[python,${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${PN}-0.22.2-unbundle.patch +) + +src_unpack() { + default + rmdir "${S}/tree_sitter/core" || die +} + +src_test() { + rm -r tree_sitter || die + distutils-r1_src_test +} |