From 86a43424a970a109c45a55a773f14e16210a392c Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Tue, 24 Dec 2019 14:00:07 +0100 Subject: [PATCH] x11-themes/vdr-channel-logos: fixed failed install on no UTF-8 systems this versions needs to set the locale to UTF-8 Bug: https://bugs.gentoo.org/362069 Closes: https://bugs.gentoo.org/362069 Package-Manager: Portage-2.3.82, Repoman-2.3.18 Signed-off-by: Joerg Bornkessel --- x11-themes/vdr-channel-logos/metadata.xml | 4 ++++ ....ebuild => vdr-channel-logos-0.2-r2.ebuild} | 18 ++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) rename x11-themes/vdr-channel-logos/{vdr-channel-logos-0.2-r1.ebuild => vdr-channel-logos-0.2-r2.ebuild} (70%) diff --git a/x11-themes/vdr-channel-logos/metadata.xml b/x11-themes/vdr-channel-logos/metadata.xml index 984a01fab265..19717edee843 100644 --- a/x11-themes/vdr-channel-logos/metadata.xml +++ b/x11-themes/vdr-channel-logos/metadata.xml @@ -1,6 +1,10 @@ + + hd_brummy@gentoo.org + Joerg Bornkessel + vdr@gentoo.org Gentoo VDR Project diff --git a/x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r1.ebuild b/x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r2.ebuild similarity index 70% rename from x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r1.ebuild rename to x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r2.ebuild index 17184e4f08e4..7baf764c285f 100644 --- a/x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r1.ebuild +++ b/x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r2.ebuild @@ -1,9 +1,7 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 - -inherit eutils +EAPI=7 MY_P=${PN#vdr-channel-}-${PV} @@ -18,9 +16,21 @@ IUSE="" S=${WORKDIR}/logos -RDEPEND="app-text/convmv" +BDEPEND="app-text/convmv" + +_test_charmap() { + local charmap=$(locale charmap) + + if [ "${charmap}" != "UTF-8" ]; then + eerror "You need locale UTF-8 to use the logos" + die "missing locale UTF-8 on your system" + fi +} src_prepare() { + default + + _test_charmap convmv --notest --replace -f iso-8859-1 -t utf-8 -r "${S}"/ } -- 2.26.2