mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 23:08:09 -07:00
Claus-Justus Heine <himself@claus-justus-heine.de> identified that the project.toml file was in the incorrect build directory. He put a patch on the bugzilla but the patch has not been included into the ebuild. The patch copies the project.toml into the build directory used by portage. I applied the patch and tested it in my personal repo first. I am pushing those changes upstream since the patch has been on the bugzilla since 2024-08. Closes: https://bugs.gentoo.org/934120 Signed-off-by: Robert R. Russell <robert@rrbrussell.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/805 Merges: https://codeberg.org/gentoo/gentoo/pulls/805 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
31 lines
839 B
Bash
31 lines
839 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
TS_BINDINGS=( python )
|
|
|
|
inherit tree-sitter-grammar
|
|
|
|
MY_PN=tree-sitter-markdown
|
|
MY_P=${MY_PN}-${PV}
|
|
|
|
DESCRIPTION="Markdown-inline grammar for Tree-sitter"
|
|
HOMEPAGE="https://github.com/tree-sitter-grammars/tree-sitter-markdown"
|
|
SRC_URI="https://github.com/tree-sitter-grammars/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
|
S="${WORKDIR}"/${MY_P}/${MY_PN}-inline
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="amd64"
|
|
|
|
# Running the tests requires extensions to be enabled, but the parser
|
|
# generated by upstream does not include the extensions.
|
|
# https://github.com/tree-sitter-grammars/tree-sitter-markdown/issues/136
|
|
RESTRICT="test"
|
|
|
|
src_prepare() {
|
|
tree-sitter-grammar_src_prepare
|
|
cp "${WORKDIR}"/${MY_P}/pyproject.toml ${S}/src/
|
|
}
|