diff --git a/x11-themes/qogir-icon-theme/Manifest b/x11-themes/qogir-icon-theme/Manifest index e29313bd94..c42869c26c 100644 --- a/x11-themes/qogir-icon-theme/Manifest +++ b/x11-themes/qogir-icon-theme/Manifest @@ -1 +1,2 @@ DIST 2020-11-22.tar.gz 6242726 BLAKE2B 130f9fcafa8b42f833c6164ea45d8bb1f5de3561245f9815a273ff1bb9a5f2ff375a76a4125c4467ea437a87ac5f516d799b43239527d1b4d09457b7a601a312 SHA512 0d7849fbeff4ea3fb4f279e5f55cf794207407626bee80862d963ec60b08631b12e875ad7ba9b8a38394d5991953e52202fdca536ee5374435001ca05afd1148 +DIST 2025-02-15.tar.gz 9076276 BLAKE2B 960624e3eeee411cca901c57114e309590097a5f14994a965013928f3022882bf46c6d0dd5ad312b82dff955cad71053f9adcb27c34a851cdc32c899a65c3d00 SHA512 a53fb23b2193b8de59625f3f31f9b6b97a18c937f808ce17810799207a806ca059678bb0aa244d06a4ede46cf476faa7d501f476057bd1c9bd283959118beeeb diff --git a/x11-themes/qogir-icon-theme/qogir-icon-theme-2025.02.15.ebuild b/x11-themes/qogir-icon-theme/qogir-icon-theme-2025.02.15.ebuild new file mode 100644 index 0000000000..c6286ce3d9 --- /dev/null +++ b/x11-themes/qogir-icon-theme/qogir-icon-theme-2025.02.15.ebuild @@ -0,0 +1,49 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# To update icon cache +inherit xdg + +DESCRIPTION="A flat colorful design icon theme for linux desktops" +HOMEPAGE="https://github.com/vinceliuice/Qogir-icon-theme" +SRC_URI="https://github.com/vinceliuice/${PN}/archive/refs/tags/2025-02-15.tar.gz" + +# Extract to a non-default name +S=${WORKDIR}/Qogir-icon-theme-2025-02-15 + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +# No binaries are installed so we don't need these portage features +RESTRICT="binchecks strip" + +# Unsure about dependencies +DEPEND="${RDEPEND}" + +src_prepare() { + eapply_user + + # Don't install the ubuntu/manjaro variants + sed -i 's:THEME_VARIANTS=.*:THEME_VARIANTS="":' \ + install.sh || die "Sed failed to remove theme variants!" + + # Install cursors to Gentoo's cursor location + sed -i -e "/cp.*cursors/i mkdir -p \${CURSOR_DIR}/Qogir\${color}" \ + -e "s:\(cp.*cursors\"\).*:\1 \${CURSOR_DIR}/Qogir\${color}:" \ + install.sh || die "Sed failed changing cursor location!" + + # Use xdg eclass instead + sed -i -e "/gtk-update-icon-cache/d" \ + install.sh || die "Sed failed removing gtk-update-icon-cache call!" +} + +src_install() { + mkdir -p "${D}/usr/share/icons" || die "failed to create icons dir" + CURSOR_DIR="${D}/usr/share/cursors/xorg-x11" "${S}"/install.sh -d "${D}/usr/share/icons" || die "install.sh failed" + + # Remove broken symlink to avoid QA warning + rm "${D}/usr/share/icons/Qogir/scalable/apps/org.aegisub.Aegisub.svg" || die "failed to remove broken symlink" +}