commit:     e63b583e5d1570c37a4b8f508461856394495ef0
Author:     Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
AuthorDate: Wed Jun 19 14:04:37 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Jul  9 12:28:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e63b583e

x11-themes/tela-icon-theme: add 20240419 and adoption

Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36174
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 x11-themes/tela-icon-theme/Manifest                |  1 +
 x11-themes/tela-icon-theme/metadata.xml            | 11 ++-
 .../tela-icon-theme-20240419.ebuild                | 91 ++++++++++++++++++++++
 .../tela-icon-theme-99999999.ebuild                | 91 +++++++++++++---------
 4 files changed, 156 insertions(+), 38 deletions(-)

diff --git a/x11-themes/tela-icon-theme/Manifest 
b/x11-themes/tela-icon-theme/Manifest
index ffdecb254576..b96f45019f4a 100644
--- a/x11-themes/tela-icon-theme/Manifest
+++ b/x11-themes/tela-icon-theme/Manifest
@@ -1,2 +1,3 @@
 DIST tela-icon-theme-20230203.tar.gz 3774147 BLAKE2B 
c0b04ec934ed68a7d6267be030af861cf9c2c24e8367baebbc56b788f4dbec56dda2679190f33c739a04ed9ca3088138a1f89624e9beebf715149fbef2478576
 SHA512 
28ad9e67394ffa65bd1fe6052e38dd324487be621670bff933f3bb2aeee9134e656f1f8faebb060d5d765b808e008d5fede3d62a51b9ddca1e8047c927f3bdd1
 DIST tela-icon-theme-20230625.tar.gz 3286109 BLAKE2B 
65aa1b084b1bc63bdd15c484a4ab5588dc86996dd77d06bd727fdc3658517d1a9fc47c58eb73427267a767674f64a1ce92d14b796c97caa5849d5398c62fc5f0
 SHA512 
f5722c9fa5c9d0ccb01780eed0a6ce063954e85f5c708d2b998254f2978297b1a4cff52622d1e6b3feb667d4f99c3e31099e1c71fad182e35cbcfe1246f67279
+DIST tela-icon-theme-20240419.tar.gz 3495225 BLAKE2B 
c9c97e183b8f35576dc68a4d1243d944d8528420e4759080052fbfccc1246bd18d0c29b9665ce55764ebb3e7fddb1fb1c92a015a03f6f764183938b26b780088
 SHA512 
f3d714c73b0624970c5758fee9785f363650e0c064771713d9499aa219880918e6d48cb5ffb457179a8baedd5e9d799f427f0c08dab746ab9932f4d95fda794d

diff --git a/x11-themes/tela-icon-theme/metadata.xml 
b/x11-themes/tela-icon-theme/metadata.xml
index 329bbe558ccd..004a91be3f33 100644
--- a/x11-themes/tela-icon-theme/metadata.xml
+++ b/x11-themes/tela-icon-theme/metadata.xml
@@ -1,7 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-       <!-- maintainer-needed -->
+       <maintainer type="person" proxied="yes">
+               <email>[email protected]</email>
+               <name>Mattéo Rossillol‑‑Laruelle</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
        <stabilize-allarches/>
        <use>
                <flag name="standard">Install standard folder version</flag>
@@ -19,7 +26,6 @@
                <flag name="ubuntu">Install ubuntu folder version</flag>
                <flag name="dracula">Install dracula folder version</flag>
                <flag name="nord">Install nord folder version</flag>
-               <flag name="kde">Install dynamic color version for KDE plasma 
(folder color follows the colorscheme)</flag>
                <flag name="hardlink">Hardlink duplicate icons to greatly 
reduce installation size</flag>
        </use>
        <use lang="fr">
@@ -38,7 +44,6 @@
                <flag name="ubuntu">Installer la variante de couleur des 
dossiers spécifique à Ubuntu</flag>
                <flag name="dracula">Installer la variante de couleur des 
dossiers spécifique à Dracula</flag>
                <flag name="nord">Installer la variante de couleur des dossiers 
« nord »</flag>
-               <flag name="kde">Installer la variante de couleur dynamique 
pour KDE Plasma (la couleur des dossiers suit le thème de couleur)</flag>
                <flag name="hardlink">Créer des liens durs pour les icônes 
doublons afin de grandement réduire la taille à l'installation</flag>
        </use>
        <upstream>

diff --git a/x11-themes/tela-icon-theme/tela-icon-theme-20240419.ebuild 
b/x11-themes/tela-icon-theme/tela-icon-theme-20240419.ebuild
new file mode 100644
index 000000000000..d8088e9cffda
--- /dev/null
+++ b/x11-themes/tela-icon-theme/tela-icon-theme-20240419.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit check-reqs edo xdg
+
+MY_PN="${PN^}"
+MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}" # eg. 20211225 -> 2021-12-25
+
+DESCRIPTION="A flat colorful Design icon theme"
+HOMEPAGE="https://github.com/vinceliuice/Tela-icon-theme";
+
+if [[ "${PV}" == 99999999 ]]; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/vinceliuice/Tela-icon-theme.git";
+else
+       
SRC_URI="https://github.com/vinceliuice/Tela-icon-theme/archive/refs/tags/${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~ppc64"
+       S="${WORKDIR}/${MY_PN}-${MY_PV}"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="+hardlink kde minimal"
+RESTRICT="binchecks strip test"
+
+BDEPEND="
+       app-shells/bash
+       hardlink? ( sys-apps/util-linux[hardlink] )
+"
+
+DOCS=(
+       AUTHORS
+       README.md
+       tela-dark.png
+       tela-light.png
+)
+
+tela-icon-theme_check-reqs() {
+       if ! use minimal; then
+               if use hardlink; then
+                       CHECKREQS_DISK_USR=1700M
+               else
+                       CHECKREQS_DISK_USR=2600M
+               fi
+
+               check-reqs_${EBUILD_PHASE_FUNC}
+       fi
+}
+
+pkg_setup() {
+       tela-icon-theme_check-reqs
+}
+
+pkg_pretend() {
+       tela-icon-theme_check-reqs
+}
+
+src_prepare() {
+       default
+
+       # We use eclass for that.
+       sed -i "/gtk-update-icon-cache/d" install.sh || die
+}
+
+src_install() {
+       einstalldocs
+
+       dodir /usr/share/icons
+
+       local options=()
+
+       use kde && options+=( -c )
+
+       if use minimal; then
+               options+=( standard )
+       else
+               options+=( -a )
+       fi
+
+       edob ./install.sh -d "${ED}/usr/share/icons" "${options[@]}"
+
+       use hardlink && \
+               edob -m "Linking duplicate icons" hardlink -pot 
"${ED}/usr/share/icons"
+
+       # Installs broken symlinks (by design, but we remove it due to QA 
warnings).
+       # https://bugs.gentoo.org/830467
+       edob -m "Removing broken symlinks" find "${ED}" -xtype l -print -delete
+}

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 3a0301169077..d8088e9cffda 100644
--- a/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild
+++ b/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild
@@ -1,70 +1,91 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit edo
+inherit check-reqs edo xdg
 
-# eg. 20211225 -> 2021-12-25
-MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
 MY_PN="${PN^}"
-
-# standard comes first
-MY_COLOR_VARIANTS=( standard black blue brown green grey orange pink purple 
red yellow manjaro ubuntu dracula nord )
-
-inherit xdg
+MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}" # eg. 20211225 -> 2021-12-25
 
 DESCRIPTION="A flat colorful Design icon theme"
 HOMEPAGE="https://github.com/vinceliuice/Tela-icon-theme";
 
-if [[ ${PV} == 99999999 ]]; then
+if [[ "${PV}" == 99999999 ]]; then
        inherit git-r3
-       EGIT_REPO_URI="https://github.com/vinceliuice/${MY_PN}.git";
+
+       EGIT_REPO_URI="https://github.com/vinceliuice/Tela-icon-theme.git";
 else
-       
SRC_URI="https://github.com/vinceliuice/${MY_PN}/archive/refs/tags/${MY_PV}.tar.gz
 -> ${P}.tar.gz"
+       
SRC_URI="https://github.com/vinceliuice/Tela-icon-theme/archive/refs/tags/${MY_PV}.tar.gz
 -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~arm64 ~ppc64"
        S="${WORKDIR}/${MY_PN}-${MY_PV}"
 fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-IUSE="+${MY_COLOR_VARIANTS[*]} +hardlink kde" # this is why standard comes 
first
-
-REQUIRED_USE="|| ( ${MY_COLOR_VARIANTS[*]} )"
-
-# not needed and slows us down, package installs 120 000 small files
+IUSE="+hardlink kde minimal"
 RESTRICT="binchecks strip test"
 
-# technically we can use app-arch/hardlink too, but it's deprecated
 BDEPEND="
        app-shells/bash
-       hardlink? ( sys-apps/util-linux[hardlink(-)?] )
+       hardlink? ( sys-apps/util-linux[hardlink] )
 "
 
+DOCS=(
+       AUTHORS
+       README.md
+       tela-dark.png
+       tela-light.png
+)
+
+tela-icon-theme_check-reqs() {
+       if ! use minimal; then
+               if use hardlink; then
+                       CHECKREQS_DISK_USR=1700M
+               else
+                       CHECKREQS_DISK_USR=2600M
+               fi
+
+               check-reqs_${EBUILD_PHASE_FUNC}
+       fi
+}
+
+pkg_setup() {
+       tela-icon-theme_check-reqs
+}
+
+pkg_pretend() {
+       tela-icon-theme_check-reqs
+}
+
 src_prepare() {
        default
-       # we use eclass for that
-       sed -i '/gtk-update-icon-cache/d' install.sh || die
+
+       # We use eclass for that.
+       sed -i "/gtk-update-icon-cache/d" install.sh || die
 }
 
 src_install() {
-       local v variants=(
-               $(for v in ${MY_COLOR_VARIANTS[@]}; do
-                       usev ${v}
-               done)
-               $(usev kde '-c')
-       )
+       einstalldocs
 
        dodir /usr/share/icons
-       ./install.sh -d "${ED}/usr/share/icons" "${variants[@]}" || die
-       if use hardlink; then
-               einfo "Linking duplicate icons... (may take a long time)"
-               hardlink -pot "${ED}/usr/share/icons" || die "hardlink failed"
+
+       local options=()
+
+       use kde && options+=( -c )
+
+       if use minimal; then
+               options+=( standard )
+       else
+               options+=( -a )
        fi
 
-       # installs broken symlink (by design, but we remove it due to QA 
warnings)
-       # https://bugs.gentoo.org/830467
-       edob find "${ED}" -xtype l -print -delete
+       edob ./install.sh -d "${ED}/usr/share/icons" "${options[@]}"
 
-       einstalldocs
+       use hardlink && \
+               edob -m "Linking duplicate icons" hardlink -pot 
"${ED}/usr/share/icons"
+
+       # Installs broken symlinks (by design, but we remove it due to QA 
warnings).
+       # https://bugs.gentoo.org/830467
+       edob -m "Removing broken symlinks" find "${ED}" -xtype l -print -delete
 }

Reply via email to