dev-util/gersemi: use optfeature to advertise dev-python/colorama

Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
Pavel Sobolev
2026-01-17 20:51:37 +03:00
parent e61845e81a
commit f0e662cc26
2 changed files with 5 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1
inherit distutils-r1 optfeature
DESCRIPTION="A formatter to make your CMake code the real treasure"
HOMEPAGE="https://github.com/BlankSpruce/gersemi"
@@ -15,15 +15,12 @@ SRC_URI="https://github.com/BlankSpruce/gersemi/archive/refs/tags/${PV}.tar.gz -
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+color"
RDEPEND="
dev-python/ignore-python[${PYTHON_USEDEP}]
dev-python/lark[${PYTHON_USEDEP}]
dev-python/platformdirs[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
color? ( dev-python/colorama[${PYTHON_USEDEP}] )
"
BDEPEND="
test? (
@@ -33,3 +30,7 @@ BDEPEND="
"
distutils_enable_tests pytest
pkg_postinst() {
optfeature "colorized diffs support" dev-python/colorama
}

View File

@@ -5,9 +5,6 @@
<name>Pavel Sobolev</name>
<email>contact@paveloom.dev</email>
</maintainer>
<use>
<flag name="color">Enable support for colorized diffs</flag>
</use>
<upstream>
<bugs-to>https://github.com/BlankSpruce/gersemi/issues</bugs-to>
<remote-id type="github">BlankSpruce/gersemi</remote-id>