Diff tree-sitter-markdown-0.5.3 with a tree-sitter-markdown-0.5.3-r1
| /usr/portage/dev-libs/tree-sitter-markdown/tree-sitter-markdown-0.5.3-r1.ebuild 2026-10-13 20:03:06.491923643 +0300 | ||
|---|---|---|
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 | |
| 6 |
inherit tree-sitter-grammar |
|
| 6 |
TS_BINDINGS=( python ) |
|
| 7 | ||
| 8 |
DISTUTILS_EXT=1 |
|
| 9 |
DISTUTILS_OPTIONAL=1 |
|
| 10 |
DISTUTILS_USE_PEP517=setuptools |
|
| 11 |
PYTHON_COMPAT=( python3_{12..15} )
|
|
| 12 |
inherit distutils-r1 tree-sitter-grammar |
|
| 7 | 13 | |
| 8 | 14 |
DESCRIPTION="Markdown grammar for Tree-sitter" |
| 9 | 15 |
HOMEPAGE="https://github.com/tree-sitter-grammars/tree-sitter-markdown" |
| 10 | 16 |
SRC_URI="https://github.com/tree-sitter-grammars/tree-sitter-markdown/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
| 11 |
S=${WORKDIR}/${P}/${PN}
|
|
| 12 | 17 | |
| 13 | 18 |
LICENSE="MIT" |
| 14 | 19 |
SLOT="0" |
| 15 |
KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv x86" |
|
| 20 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
|
| 21 | ||
| 22 |
RDEPEND="!dev-libs/tree-sitter-markdown-inline" |
|
| 23 | ||
| 24 |
PATCHES=( "${FILESDIR}"/${P}-python.patch )
|
|
| 25 | ||
| 26 |
src_test() {
|
|
| 27 |
pushd tree-sitter-markdown 2>/dev/null |
|
| 28 |
tree-sitter-grammar_src_test |
|
| 29 |
popd 2>/dev/null |
|
| 30 |
# Running the tests on markdown-inline requires extensions to be enabled, but |
|
| 31 |
# the parser generated by upstream does not include the extensions. |
|
| 32 |
# https://github.com/tree-sitter-grammars/tree-sitter-markdown/issues/136 |
|
| 33 |
#cd ../tree-sitter-markdown-inline |
|
| 34 |
#tree-sitter-grammar_src_test |
|
| 35 | ||
| 36 |
use python && distutils-r1_src_test |
|
| 37 |
} |
|
| 38 | ||
| 39 |
python_test() {
|
|
| 40 |
epytest bindings/python/tests |
|
| 41 |
} |
|