mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-util/gersemi: use optfeature to advertise dev-python/colorama
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user