mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -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
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
PYTHON_COMPAT=( python3_{11..14} )
|
PYTHON_COMPAT=( python3_{11..14} )
|
||||||
|
|
||||||
inherit distutils-r1
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
DESCRIPTION="A formatter to make your CMake code the real treasure"
|
DESCRIPTION="A formatter to make your CMake code the real treasure"
|
||||||
HOMEPAGE="https://github.com/BlankSpruce/gersemi"
|
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"
|
LICENSE="MPL-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
IUSE="+color"
|
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-python/ignore-python[${PYTHON_USEDEP}]
|
dev-python/ignore-python[${PYTHON_USEDEP}]
|
||||||
dev-python/lark[${PYTHON_USEDEP}]
|
dev-python/lark[${PYTHON_USEDEP}]
|
||||||
dev-python/platformdirs[${PYTHON_USEDEP}]
|
dev-python/platformdirs[${PYTHON_USEDEP}]
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
|
||||||
color? ( dev-python/colorama[${PYTHON_USEDEP}] )
|
|
||||||
"
|
"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
test? (
|
test? (
|
||||||
@@ -33,3 +30,7 @@ BDEPEND="
|
|||||||
"
|
"
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
optfeature "colorized diffs support" dev-python/colorama
|
||||||
|
}
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
<name>Pavel Sobolev</name>
|
<name>Pavel Sobolev</name>
|
||||||
<email>contact@paveloom.dev</email>
|
<email>contact@paveloom.dev</email>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<use>
|
|
||||||
<flag name="color">Enable support for colorized diffs</flag>
|
|
||||||
</use>
|
|
||||||
<upstream>
|
<upstream>
|
||||||
<bugs-to>https://github.com/BlankSpruce/gersemi/issues</bugs-to>
|
<bugs-to>https://github.com/BlankSpruce/gersemi/issues</bugs-to>
|
||||||
<remote-id type="github">BlankSpruce/gersemi</remote-id>
|
<remote-id type="github">BlankSpruce/gersemi</remote-id>
|
||||||
|
|||||||
Reference in New Issue
Block a user