commit:     03488bf7067e85b2a12eb9ab4d5e5d247e18295e
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 26 16:46:25 2026 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Jan 26 19:38:30 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03488bf7

x11-themes/smplayer-themes: add Qt6-based 20.11.0, EAPI 7 -> 8, fix PNGs

Closes: https://bugs.gentoo.org/584218
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 x11-themes/smplayer-themes/Manifest                |  1 +
 .../smplayer-themes/smplayer-themes-20.11.0.ebuild | 41 ++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/x11-themes/smplayer-themes/Manifest 
b/x11-themes/smplayer-themes/Manifest
index cec4c2eef62c..b3911f91ae0c 100644
--- a/x11-themes/smplayer-themes/Manifest
+++ b/x11-themes/smplayer-themes/Manifest
@@ -1 +1,2 @@
 DIST smplayer-themes-18.6.0.tar.bz2 3739369 BLAKE2B 
55618c03649c6c93cb3951d8b4ffff6f45ab153c169ad0fcbbf53c92b2110a57591db71b3fd0fa05cf9a84c4186b8c0e4998ea39b8d8d51100569c679d78d27d
 SHA512 
e16f2dc50015b0034134a096ca99603167309c31bb50a44679c343b5f9c0ea786a17a0fb64eb1d71c61dacbd2a295adc0a82d23bd0837adf96664120f33adda6
+DIST smplayer-themes-20.11.0.tar.bz2 3782542 BLAKE2B 
cb52eb2b4cc47b6e88ea1338a13f7187ebe690ff4e7c16f56c1cb63708300a4777de2d109c665bce6aae55da9e8ef573fe4c7193e43a4e1a0cb54c6b13342dad
 SHA512 
4e64c3f44fc3529d980751618cd30fcc395a21701ba7481ad0a6dffc1fa770c13a3414d0853f94cd6163738702a0a75060a92e5c1c426e79902a68d8f8336575

diff --git a/x11-themes/smplayer-themes/smplayer-themes-20.11.0.ebuild 
b/x11-themes/smplayer-themes/smplayer-themes-20.11.0.ebuild
new file mode 100644
index 000000000000..160588f2915f
--- /dev/null
+++ b/x11-themes/smplayer-themes/smplayer-themes-20.11.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qmake-utils
+
+DESCRIPTION="Icon themes for smplayer"
+HOMEPAGE="https://www.smplayer.info/";
+SRC_URI="https://downloads.sourceforge.net/smplayer/${P}.tar.bz2";
+
+LICENSE="CC-BY-2.5 CC-BY-SA-2.5 CC-BY-SA-3.0 CC0-1.0 GPL-2 GPL-3+ LGPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ~ppc ~ppc64 x86"
+
+DEPEND="dev-qt/qtbase:6"
+RDEPEND="media-video/smplayer"
+BDEPEND="media-libs/libpng:0"
+
+src_prepare() {
+       default
+
+       # bug 544108
+       sed -i -e "s|rcc -binary|$(qt6_get_bindir)/../libexec/&|" 
themes/Makefile || die
+
+       # bug 544160
+       sed -i -e 's/make/$(MAKE)/' Makefile || die
+
+       while read -d '' -r png ; do
+               pngfix -q --out=${png/.png/fixed.png} ${png} # see pngfix help 
for exit codes
+               [[ $? -gt 15 ]] && die "Failed to fix ${png}"
+               mv -f ${png/.png/fixed.png} ${png} || die
+       done < <(find . -type f -iname "*.png" -print0 || die)
+}
+
+src_install() {
+       rm themes/Makefile || die
+       insinto /usr/share/smplayer
+       doins -r themes
+       dodoc Changelog README.txt
+}

Reply via email to