x11-themes/vdr-channel-logos: fixed failed install on no UTF-8 systems
authorJoerg Bornkessel <hd_brummy@gentoo.org>
Tue, 24 Dec 2019 13:00:07 +0000 (14:00 +0100)
committerJoerg Bornkessel <hd_brummy@gentoo.org>
Tue, 24 Dec 2019 13:00:07 +0000 (14:00 +0100)
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 <hd_brummy@gentoo.org>
x11-themes/vdr-channel-logos/metadata.xml
x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r2.ebuild [moved from x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r1.ebuild with 70% similarity]

index 984a01fab26500bb4298ed34655034360174a6d4..19717edee843e2d103699eb074ca8232c57a92fe 100644 (file)
@@ -1,6 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
+       <maintainer type="person">
+               <email>hd_brummy@gentoo.org</email>
+               <name>Joerg Bornkessel</name>
+       </maintainer>
        <maintainer type="project">
                <email>vdr@gentoo.org</email>
                <name>Gentoo VDR Project</name>
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 17184e4f08e40b11b14e3beb35da8968d7213ba9..7baf764c285fd26916b1c84d8c26f94801ecf2b5 100644 (file)
@@ -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}"/
 }