commit:     0c231445a4bc46635ee21cddf35d40e787b5f76e
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  2 04:16:54 2022 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sun Jan  2 10:55:44 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c231445

x11-themes/tela-icon-theme: make standard theme optional

seems it's not actually required for other variants to function

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 x11-themes/tela-icon-theme/metadata.xml                    | 1 +
 x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild | 9 +++++----
 x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild | 9 +++++----
 3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/x11-themes/tela-icon-theme/metadata.xml 
b/x11-themes/tela-icon-theme/metadata.xml
index 24627d1b17e7..8c12ddafbb0d 100644
--- a/x11-themes/tela-icon-theme/metadata.xml
+++ b/x11-themes/tela-icon-theme/metadata.xml
@@ -7,6 +7,7 @@
        </maintainer>
        <stabilize-allarches/>
        <use>
+               <flag name="standard">Install standard folder version</flag>
                <flag name="black">Install black folder version</flag>
                <flag name="blue">Install blue folder version</flag>
                <flag name="brown">Install bworn folder version</flag>

diff --git a/x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild 
b/x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild
index 26d159c90dea..cb8d15b5cbfa 100644
--- a/x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild
+++ b/x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild
@@ -7,8 +7,8 @@ EAPI=8
 MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
 MY_PN="${PN/t/T}"
 
-# standard is always installed
-MY_COLOR_VARIANTS=( black blue brown green grey orange pink purple red yellow 
manjaro ubuntu )
+# standard comes first
+MY_COLOR_VARIANTS=( standard black blue brown green grey orange pink purple 
red yellow manjaro ubuntu )
 
 inherit xdg
 
@@ -26,7 +26,9 @@ fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-IUSE="${MY_COLOR_VARIANTS[*]}"
+IUSE="${MY_COLOR_VARIANTS[*]/standard/+standard}"
+
+REQUIRED_USE="|| ( ${MY_COLOR_VARIANTS[*]} )"
 
 BDEPEND="app-shells/bash"
 
@@ -38,7 +40,6 @@ src_prepare() {
 
 src_install() {
        local v variants=(
-               standard
                $(
                        for v in ${MY_COLOR_VARIANTS[@]}; do
                                usev ${v}

diff --git a/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild 
b/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild
index 26d159c90dea..cb8d15b5cbfa 100644
--- a/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild
+++ b/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild
@@ -7,8 +7,8 @@ EAPI=8
 MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
 MY_PN="${PN/t/T}"
 
-# standard is always installed
-MY_COLOR_VARIANTS=( black blue brown green grey orange pink purple red yellow 
manjaro ubuntu )
+# standard comes first
+MY_COLOR_VARIANTS=( standard black blue brown green grey orange pink purple 
red yellow manjaro ubuntu )
 
 inherit xdg
 
@@ -26,7 +26,9 @@ fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-IUSE="${MY_COLOR_VARIANTS[*]}"
+IUSE="${MY_COLOR_VARIANTS[*]/standard/+standard}"
+
+REQUIRED_USE="|| ( ${MY_COLOR_VARIANTS[*]} )"
 
 BDEPEND="app-shells/bash"
 
@@ -38,7 +40,6 @@ src_prepare() {
 
 src_install() {
        local v variants=(
-               standard
                $(
                        for v in ${MY_COLOR_VARIANTS[@]}; do
                                usev ${v}

Reply via email to