1 |
commit: ecdde3a9dfd1fb04e556f0d30aa828a285b6d3bb |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 3 20:59:36 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 3 21:16:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecdde3a9 |
7 |
|
8 |
x11-themes/fluent-icon-theme: new package; add version 2021.12.20 |
9 |
|
10 |
thanks to gyakovlev for x11-themes/tela-icon-theme |
11 |
this pkg's ebuild is very much based on tela |
12 |
|
13 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
14 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
15 |
|
16 |
x11-themes/fluent-icon-theme/Manifest | 1 + |
17 |
.../fluent-icon-theme-2021.12.20.ebuild | 56 ++++++++++++++++++++++ |
18 |
x11-themes/fluent-icon-theme/metadata.xml | 25 ++++++++++ |
19 |
3 files changed, 82 insertions(+) |
20 |
|
21 |
diff --git a/x11-themes/fluent-icon-theme/Manifest b/x11-themes/fluent-icon-theme/Manifest |
22 |
new file mode 100644 |
23 |
index 000000000000..304b2ab8b645 |
24 |
--- /dev/null |
25 |
+++ b/x11-themes/fluent-icon-theme/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST fluent-icon-theme-2021.12.20.tar.gz 33924235 BLAKE2B 17f051f086858ceb9969a8cacf6bbd2a9efd2e19d98872866ec5d9ea40e0389f3f9ad451dd6ed449716108eee20ad34fff1b121b497b4323314868bb1fb4429e SHA512 fc5e131c90f9444c92d0305489350f590f29dd78f03dd090959db00a1415a0bd35998e25ed93213c176536fa31e780942593b5d5470e4aac6fe98eb066463fa8 |
28 |
|
29 |
diff --git a/x11-themes/fluent-icon-theme/fluent-icon-theme-2021.12.20.ebuild b/x11-themes/fluent-icon-theme/fluent-icon-theme-2021.12.20.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..fd58d9f171e1 |
32 |
--- /dev/null |
33 |
+++ b/x11-themes/fluent-icon-theme/fluent-icon-theme-2021.12.20.ebuild |
34 |
@@ -0,0 +1,56 @@ |
35 |
+# Copyright 2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+# ie. 2021.12.20 -> 2021-12-20 |
41 |
+MY_PV="${PV//./-}" |
42 |
+MY_PN="${PN^}" |
43 |
+ |
44 |
+inherit xdg |
45 |
+ |
46 |
+DESCRIPTION="Fluent icon theme for Linux desktops" |
47 |
+HOMEPAGE="https://github.com/vinceliuice/Fluent-icon-theme" |
48 |
+ |
49 |
+if [[ ${PV} == *9999* ]]; then |
50 |
+ inherit git-r3 |
51 |
+ EGIT_REPO_URI="https://github.com/vinceliuice/${MY_PN}.git" |
52 |
+else |
53 |
+ SRC_URI="https://github.com/vinceliuice/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
54 |
+ KEYWORDS="~amd64 ~x86" |
55 |
+ S="${WORKDIR}/${MY_PN}-${MY_PV}" |
56 |
+fi |
57 |
+ |
58 |
+LICENSE="GPL-3+" |
59 |
+SLOT="0" |
60 |
+IUSE="+black +hardlink round" |
61 |
+RESTRICT="binchecks strip test" |
62 |
+ |
63 |
+BDEPEND="sys-apps/util-linux[hardlink(-)?]" |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ |
68 |
+ sed -i '/gtk-update-icon-cache/d' install.sh || die |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ dodir /usr/share/icons |
73 |
+ local myinstallopts=( |
74 |
+ --all |
75 |
+ --dest "${ED}/usr/share/icons" |
76 |
+ $(usex black '--black' '') |
77 |
+ $(usex round '--round' '') |
78 |
+ ) |
79 |
+ bash ./install.sh "${myinstallopts[@]}" || die "install script failed" |
80 |
+ |
81 |
+ if use hardlink; then |
82 |
+ einfo "Linking duplicate icons... (may take a long time)" |
83 |
+ hardlink -pot "${ED}/usr/share/icons" || die "hardlink failed" |
84 |
+ fi |
85 |
+ |
86 |
+ # installs broken symlink (by design, but we remove it due to QA warnings) |
87 |
+ find "${ED}" -xtype l -delete || die "removing broken symlinks failed" |
88 |
+ |
89 |
+ einstalldocs |
90 |
+} |
91 |
|
92 |
diff --git a/x11-themes/fluent-icon-theme/metadata.xml b/x11-themes/fluent-icon-theme/metadata.xml |
93 |
new file mode 100644 |
94 |
index 000000000000..93627ffdc59e |
95 |
--- /dev/null |
96 |
+++ b/x11-themes/fluent-icon-theme/metadata.xml |
97 |
@@ -0,0 +1,25 @@ |
98 |
+<?xml version="1.0" encoding="UTF-8"?> |
99 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
100 |
+ |
101 |
+<pkgmetadata> |
102 |
+ <maintainer type="person"> |
103 |
+ <email>xgqt@g.o</email> |
104 |
+ <name>Maciej Barć</name> |
105 |
+ </maintainer> |
106 |
+ <upstream> |
107 |
+ <bugs-to>https://github.com/vinceliuice/Fluent-icon-theme/issues</bugs-to> |
108 |
+ <remote-id type="github">vinceliuice/Fluent-icon-theme</remote-id> |
109 |
+ </upstream> |
110 |
+ <use> |
111 |
+ <flag name="black"> |
112 |
+ Install the black version of symbolic icons |
113 |
+ (for white color-scheme panels) |
114 |
+ </flag> |
115 |
+ <flag name="hardlink"> |
116 |
+ Hardlink duplicate icons to greatly reduce installation size |
117 |
+ </flag> |
118 |
+ <flag name="round"> |
119 |
+ Install the round version of symbolic icons |
120 |
+ </flag> |
121 |
+ </use> |
122 |
+</pkgmetadata> |