diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
commit | 3517852e3b8a68d1e997770fc0650c5053bafc6c (patch) | |
tree | 44068672445b1418489aed82de58df3c470289e7 /x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild | |
parent | 0f15659d48c193027158492acb726297501202c5 (diff) |
gentoo resync : 04.01.2022
Diffstat (limited to 'x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild')
-rw-r--r-- | x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild b/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild new file mode 100644 index 000000000000..8396dac63033 --- /dev/null +++ b/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild @@ -0,0 +1,68 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# 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 ) + +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/harlink too, but it's deprecated +BDEPEND=" + app-shells/bash + 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=( + $(usev kde '-c') + $(for v in ${MY_COLOR_VARIANTS[@]}; do + usev ${v} + done) + ) + + 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 + find "${ED}" -xtype l -name uav.svg -delete || die "removing broken symlinks failed" + + einstalldocs +} |