dev-python/textual: new package, add 8.2.8
Signed-off-by: hllRGB <hll_RGB@outlook.com>
This commit is contained in:
1 parent
13872ba11f
commit
9a5cbd2325
4 files changed
+83
No files matched your search
@@ -1317,6 +1317,13 @@ source = "pypi"
|
||||
pypi = "Telethon"
|
||||
github_account = ["liangyongxiang"]
|
||||
|
||||
["dev-python/textual"]
|
||||
source = "github"
|
||||
github = "Textualize/textual"
|
||||
use_latest_release = true
|
||||
prefix = "v"
|
||||
github_account = "hllRGB"
|
||||
|
||||
["dev-python/uv-bin"]
|
||||
source = "github"
|
||||
github = "astral-sh/uv"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
DIST textual-8.2.8.gh.tar.gz 30230136 BLAKE2B a800ed4e0c3b3afd4f5e37c5fd24f1864a1d8815e15d34a6d54de2bf908b1864051bffbfe9d291e470518bd84defe1e1251ec849fa44ae40e81441e1e643ad55 SHA512 9df65735cc2e84386bb94f6120c6b11036d9cd92a51409a53b1c272f373cd74954411ae40f24fe81046973c0e3ad1dd95c7dc6f7965bea9a2b697f245580a674
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>hll_RGB@outlook.com</email>
|
||||
<name>hll_RGB</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">textual</remote-id>
|
||||
<remote-id type="github">Textualize/textual</remote-id>
|
||||
<doc>https://textual.textualize.io/</doc>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=(python3_{13..14})
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="Modern Text User Interface framework"
|
||||
HOMEPAGE="
|
||||
https://textual.textualize.io/
|
||||
https://github.com/Textualize/textual
|
||||
https://pypi.org/project/textual/
|
||||
"
|
||||
SRC_URI="https://github.com/Textualize/textual/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/markdown-it-py-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/platformdirs-3.6.0[${PYTHON_USEDEP}]
|
||||
<dev-python/platformdirs-5[${PYTHON_USEDEP}]
|
||||
>=dev-python/rich-14.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-4.4.0[${PYTHON_USEDEP}]
|
||||
<dev-python/typing-extensions-5[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
declare -A SYNTAX_LANGS=(
|
||||
["bash"]="Bash"
|
||||
["c"]="C"
|
||||
# TODO Missing keyword for ~arm64 in ::gentoo
|
||||
#["cmake"]="CMake"
|
||||
["cpp"]="C++"
|
||||
["html"]="HTML"
|
||||
["javascript"]="JavaScript"
|
||||
["json"]="JSON"
|
||||
["lua"]="Lua"
|
||||
# TODO No Python bindings in ::gentoo
|
||||
#["markdown"]="Markdown"
|
||||
["python"]="Python"
|
||||
# TODO Missing keyword for ~arm64 in ::gentoo
|
||||
#["ruby"]="Ruby"
|
||||
["rust"]="Rust"
|
||||
# TODO Many other (common) languages are neither in ::gentoo nor ::guru
|
||||
)
|
||||
|
||||
DOCS+=({CHANGELOG,README}.md)
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature_header "Install additional packages for syntax highlighting:"
|
||||
|
||||
local lang
|
||||
for lang in "${!SYNTAX_LANGS[@]}"; do
|
||||
optfeature "${SYNTAX_LANGS[${lang}]}" "dev-libs/tree-sitter-${lang}[python]"
|
||||
done
|
||||
}
|
||||
Reference in new issue
Block a user