Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/fluent-icon-theme/
Date: Sun, 06 Nov 2022 07:35:00
Message-Id: 1667720093.55cb0b4a553fc3faaf50678719ff7786729768ec.xgqt@gentoo
1 commit: 55cb0b4a553fc3faaf50678719ff7786729768ec
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 5 19:03:22 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 6 07:34:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55cb0b4a
7
8 x11-themes/fluent-icon-theme: bump to 2022.11.05
9
10 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
11
12 x11-themes/fluent-icon-theme/Manifest | 1 +
13 .../fluent-icon-theme-2022.11.05.ebuild | 56 ++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/x11-themes/fluent-icon-theme/Manifest b/x11-themes/fluent-icon-theme/Manifest
17 index 64dc12946733..96842bd62b3b 100644
18 --- a/x11-themes/fluent-icon-theme/Manifest
19 +++ b/x11-themes/fluent-icon-theme/Manifest
20 @@ -1,3 +1,4 @@
21 DIST fluent-icon-theme-2022.02.04.tar.gz 6742454 BLAKE2B 4795639edb540a2ab6e91f14e60e692e8d5826de6ab91d7a2db9a8386105887eff24d080541425b39ffddae4430d2967b168289c9e6444fe38a0e2135348314a SHA512 2da9e9ff1b75284228dd3d32009c302326504107d0e384977161e28cf95e4b0cb143cff94841712a549ea3f0e1cafe393392ec89f9827c12e64dde4bc8194ddf
22 DIST fluent-icon-theme-2022.02.28.tar.gz 6125855 BLAKE2B 629de6f0ef9f5740124f2da53ecfff0e406af2e35d949c70447769397634cc2223afbc19d13c380f87b8ea19d78155fd3a7d971904238dc41ddb5cbf6007591c SHA512 04a65ac452f0f68a02ed849d4180766d1e893e4869b31c9f1dbe5938d7cc5a49cdb10409e5fa6b1cd3c27e309693774611a9fe9c431899aceda75f965da75e2a
23 DIST fluent-icon-theme-2022.09.20.tar.gz 5735903 BLAKE2B b2804099a5d362681fe53db3d496b8beb202ad2a4844e55724773f7b2d2aacf2948247867d4a06b128c2a56d86a231429d6efa5f47e90820203264e7edda2677 SHA512 46468b60778665dd24132776aed43d30385933cd8253cc5687ce89f5e9c933a64bf7823ee221f65248e39bc1e3e7ea0f76401e4908ddba54235d48113851d3b4
24 +DIST fluent-icon-theme-2022.11.05.tar.gz 5817988 BLAKE2B 821b2d048ab818ff65b6295267023012143d46f087f14ff7ee34a5f2769847919c41dfe15b596ce4cd5f69475eb77686344b6742f7c70e6605ebc3ae80250e47 SHA512 52757ed27bae8bfb3199b005cfd524c2c1d604daa94af3ccfa9c31dbb9ea278edcd6b6aa7126df63284b1bd05058a6398a4cf7a7a42eedfd41cc4bb0dd600ca0
25
26 diff --git a/x11-themes/fluent-icon-theme/fluent-icon-theme-2022.11.05.ebuild b/x11-themes/fluent-icon-theme/fluent-icon-theme-2022.11.05.ebuild
27 new file mode 100644
28 index 000000000000..82a474b46799
29 --- /dev/null
30 +++ b/x11-themes/fluent-icon-theme/fluent-icon-theme-2022.11.05.ebuild
31 @@ -0,0 +1,56 @@
32 +# Copyright 2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +# ie. 2021.12.20 -> 2021-12-20
38 +MY_PV="${PV//./-}"
39 +MY_PN="${PN^}"
40 +
41 +inherit xdg
42 +
43 +DESCRIPTION="Fluent icon theme for Linux desktops"
44 +HOMEPAGE="https://github.com/vinceliuice/Fluent-icon-theme"
45 +
46 +if [[ ${PV} == *9999* ]]; then
47 + inherit git-r3
48 + EGIT_REPO_URI="https://github.com/vinceliuice/${MY_PN}.git"
49 +else
50 + SRC_URI="https://github.com/vinceliuice/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
51 + KEYWORDS="~amd64 ~x86"
52 + S="${WORKDIR}/${MY_PN}-${MY_PV}"
53 +fi
54 +
55 +LICENSE="GPL-3+"
56 +SLOT="0"
57 +IUSE="+black +hardlink round"
58 +RESTRICT="binchecks strip test"
59 +
60 +BDEPEND="sys-apps/util-linux[hardlink(-)?]"
61 +
62 +src_prepare() {
63 + default
64 +
65 + sed -i '/gtk-update-icon-cache/d' install.sh || die
66 +}
67 +
68 +src_install() {
69 + dodir /usr/share/icons
70 + local myinstallopts=(
71 + --all
72 + --dest "${ED}/usr/share/icons"
73 + $(usev black '--black')
74 + $(usev round '--round')
75 + )
76 + bash ./install.sh "${myinstallopts[@]}" || die "install script failed"
77 +
78 + if use hardlink; then
79 + einfo "Linking duplicate icons... (may take a long time)"
80 + hardlink -pot "${ED}/usr/share/icons" || die "hardlink failed"
81 + fi
82 +
83 + # installs broken symlink (by design, but we remove it due to QA warnings)
84 + find "${ED}" -xtype l -delete || die "removing broken symlinks failed"
85 +
86 + einstalldocs
87 +}