From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04E5D158086 for ; Sun, 2 Jan 2022 10:56:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F5E32BC01B; Sun, 2 Jan 2022 10:56:19 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D42C02BC00C for ; Sun, 2 Jan 2022 10:56:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 883C4342FCF for ; Sun, 2 Jan 2022 10:56:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2378D27F for ; Sun, 2 Jan 2022 10:56:15 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1641120946.16eefde25e8bb5a3b90132da965849f6854fb061.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/tela-icon-theme/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-themes/tela-icon-theme/metadata.xml x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild X-VCS-Directories: x11-themes/tela-icon-theme/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 16eefde25e8bb5a3b90132da965849f6854fb061 X-VCS-Branch: master Date: Sun, 2 Jan 2022 10:56:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bbea4075-807a-4e2a-ae90-2f2240144d84 X-Archives-Hash: 99cc9f58bee95cbfa9cddb9a6a59d935 commit: 16eefde25e8bb5a3b90132da965849f6854fb061 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Jan 2 10:23:10 2022 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Jan 2 10:55:46 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16eefde2 x11-themes/tela-icon-theme: add USE=hardlink to save space Files: 180583 Linked: 166804 files Compared: 0 xattrs Compared: 1214946 files Saved: 174.99 MiB Duration: 156.305428 seconds Before and after hardlinking: x11-themes/tela-icon-theme: 438076 files, 824 non-files, 194.5M x11-themes/tela-icon-theme: 438076 files (271272 unique), 824 non-files, 19.5M Not bad, 10x savings. Signed-off-by: Georgy Yakovlev gentoo.org> x11-themes/tela-icon-theme/metadata.xml | 3 ++- x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild | 14 +++++++++++--- x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild | 14 +++++++++++--- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/x11-themes/tela-icon-theme/metadata.xml b/x11-themes/tela-icon-theme/metadata.xml index 8c12ddafbb0d..aca9f0e9a88d 100644 --- a/x11-themes/tela-icon-theme/metadata.xml +++ b/x11-themes/tela-icon-theme/metadata.xml @@ -20,9 +20,10 @@ Install yellow folder version Install manjaro folder version Install ubuntu folder version + Hardlink duplicate icons to greatly reduce installation size - https://github.com/vinceliuice/Tela-icon-theme/issues/ + https://github.com/vinceliuice/Tela-icon-theme/issues vinceliuice/Tela-icon-theme diff --git a/x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild b/x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild index a4310154d7d6..a3e95996c462 100644 --- a/x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild +++ b/x11-themes/tela-icon-theme/tela-icon-theme-20211225.ebuild @@ -26,14 +26,18 @@ fi LICENSE="GPL-3+" SLOT="0" -IUSE="+${MY_COLOR_VARIANTS[*]}" # this is why standard comes first +IUSE="+${MY_COLOR_VARIANTS[*]} +hardlink" # this is why standard comes first REQUIRED_USE="|| ( ${MY_COLOR_VARIANTS[*]} )" -# not needed +# not needed and slows us down, package installs 120 000 small files RESTRICT="binchecks strip test" -BDEPEND="app-shells/bash" +# technically we can use app-arch/harlink too, but it's deprecated +BDEPEND=" + app-shells/bash + sys-apps/util-linux[hardlink(-)?] +" src_prepare() { default @@ -50,6 +54,10 @@ src_install() { 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 einstalldocs } 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 a4310154d7d6..a3e95996c462 100644 --- a/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild +++ b/x11-themes/tela-icon-theme/tela-icon-theme-99999999.ebuild @@ -26,14 +26,18 @@ fi LICENSE="GPL-3+" SLOT="0" -IUSE="+${MY_COLOR_VARIANTS[*]}" # this is why standard comes first +IUSE="+${MY_COLOR_VARIANTS[*]} +hardlink" # this is why standard comes first REQUIRED_USE="|| ( ${MY_COLOR_VARIANTS[*]} )" -# not needed +# not needed and slows us down, package installs 120 000 small files RESTRICT="binchecks strip test" -BDEPEND="app-shells/bash" +# technically we can use app-arch/harlink too, but it's deprecated +BDEPEND=" + app-shells/bash + sys-apps/util-linux[hardlink(-)?] +" src_prepare() { default @@ -50,6 +54,10 @@ src_install() { 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 einstalldocs }