commit: 7bde8e60f7fdee24852a4bdb8d0b59e9799696af Author: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com> AuthorDate: Sun Jun 25 15:26:03 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jan 20 12:22:53 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bde8e60
x11-themes/tela-icon-theme: add 20230625 Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/31602 Signed-off-by: Sam James <sam <AT> gentoo.org> x11-themes/tela-icon-theme/Manifest | 1 + x11-themes/tela-icon-theme/metadata.xml | 23 +++++++ .../tela-icon-theme-20230625.ebuild | 70 ++++++++++++++++++++++ 3 files changed, 94 insertions(+) diff --git a/x11-themes/tela-icon-theme/Manifest b/x11-themes/tela-icon-theme/Manifest index af1f0aaa500f..ffdecb254576 100644 --- a/x11-themes/tela-icon-theme/Manifest +++ b/x11-themes/tela-icon-theme/Manifest @@ -1 +1,2 @@ DIST tela-icon-theme-20230203.tar.gz 3774147 BLAKE2B c0b04ec934ed68a7d6267be030af861cf9c2c24e8367baebbc56b788f4dbec56dda2679190f33c739a04ed9ca3088138a1f89624e9beebf715149fbef2478576 SHA512 28ad9e67394ffa65bd1fe6052e38dd324487be621670bff933f3bb2aeee9134e656f1f8faebb060d5d765b808e008d5fede3d62a51b9ddca1e8047c927f3bdd1 +DIST tela-icon-theme-20230625.tar.gz 3286109 BLAKE2B 65aa1b084b1bc63bdd15c484a4ab5588dc86996dd77d06bd727fdc3658517d1a9fc47c58eb73427267a767674f64a1ce92d14b796c97caa5849d5398c62fc5f0 SHA512 f5722c9fa5c9d0ccb01780eed0a6ce063954e85f5c708d2b998254f2978297b1a4cff52622d1e6b3feb667d4f99c3e31099e1c71fad182e35cbcfe1246f67279 diff --git a/x11-themes/tela-icon-theme/metadata.xml b/x11-themes/tela-icon-theme/metadata.xml index 87f66302cf90..16bfe66ba3aa 100644 --- a/x11-themes/tela-icon-theme/metadata.xml +++ b/x11-themes/tela-icon-theme/metadata.xml @@ -25,7 +25,30 @@ <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"> + <flag name="standard">Installer la variante de couleur des dossiers standard</flag> + <flag name="black">Installer la variante de couleur des dossiers noire</flag> + <flag name="blue">Installer la variante de couleur des dossiers bleue</flag> + <flag name="brown">Installer la variante de couleur des dossiers marron</flag> + <flag name="green">Installer la variante de couleur des dossiers verte</flag> + <flag name="grey">Installer la variante de couleur des dossiers grise</flag> + <flag name="orange">Installer la variante de couleur des dossiers orange</flag> + <flag name="pink">Installer la variante de couleur des dossiers rose</flag> + <flag name="purple">Installer la variante de couleur des dossiers violette</flag> + <flag name="red">Installer la variante de couleur des dossiers rouge</flag> + <flag name="yellow">Installer la variante de couleur des dossiers jaune</flag> + <flag name="manjaro">Installer la variante de couleur des dossiers spécifique à Manjaro</flag> + <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> + <maintainer status="active"> + <name>Vince</name> + <email>vinceliu...@hotmail.com</email> + </maintainer> <bugs-to>https://github.com/vinceliuice/Tela-icon-theme/issues</bugs-to> <remote-id type="github">vinceliuice/Tela-icon-theme</remote-id> </upstream> diff --git a/x11-themes/tela-icon-theme/tela-icon-theme-20230625.ebuild b/x11-themes/tela-icon-theme/tela-icon-theme-20230625.ebuild new file mode 100644 index 000000000000..3a0301169077 --- /dev/null +++ b/x11-themes/tela-icon-theme/tela-icon-theme-20230625.ebuild @@ -0,0 +1,70 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo + +# 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 + +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/${MY_PN}.git" +else + SRC_URI="https://github.com/vinceliuice/${MY_PN}/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 +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(-)?] ) +" + +src_prepare() { + default + # 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') + ) + + 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" + 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 + + einstalldocs +}