Gentoo Archives: gentoo-commits

From: "Jörg Bornkessel" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/vdr-channel-logos/
Date: Tue, 24 Dec 2019 13:00:49
Message-Id: 1577192407.86a43424a970a109c45a55a773f14e16210a392c.hd_brummy@gentoo
1 commit: 86a43424a970a109c45a55a773f14e16210a392c
2 Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 24 13:00:07 2019 +0000
4 Commit: Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 24 13:00:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86a43424
7
8 x11-themes/vdr-channel-logos: fixed failed install on no UTF-8 systems
9
10 this versions needs to set the locale to UTF-8
11
12 Bug: https://bugs.gentoo.org/362069
13 Closes: https://bugs.gentoo.org/362069
14 Package-Manager: Portage-2.3.82, Repoman-2.3.18
15 Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org>
16
17 x11-themes/vdr-channel-logos/metadata.xml | 4 ++++
18 ...s-0.2-r1.ebuild => vdr-channel-logos-0.2-r2.ebuild} | 18 ++++++++++++++----
19 2 files changed, 18 insertions(+), 4 deletions(-)
20
21 diff --git a/x11-themes/vdr-channel-logos/metadata.xml b/x11-themes/vdr-channel-logos/metadata.xml
22 index 984a01fab26..19717edee84 100644
23 --- a/x11-themes/vdr-channel-logos/metadata.xml
24 +++ b/x11-themes/vdr-channel-logos/metadata.xml
25 @@ -1,6 +1,10 @@
26 <?xml version="1.0" encoding="UTF-8"?>
27 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 <pkgmetadata>
29 + <maintainer type="person">
30 + <email>hd_brummy@g.o</email>
31 + <name>Joerg Bornkessel</name>
32 + </maintainer>
33 <maintainer type="project">
34 <email>vdr@g.o</email>
35 <name>Gentoo VDR Project</name>
36
37 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
38 similarity index 70%
39 rename from x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r1.ebuild
40 rename to x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r2.ebuild
41 index 17184e4f08e..7baf764c285 100644
42 --- a/x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r1.ebuild
43 +++ b/x11-themes/vdr-channel-logos/vdr-channel-logos-0.2-r2.ebuild
44 @@ -1,9 +1,7 @@
45 # Copyright 1999-2019 Gentoo Authors
46 # Distributed under the terms of the GNU General Public License v2
47
48 -EAPI=5
49 -
50 -inherit eutils
51 +EAPI=7
52
53 MY_P=${PN#vdr-channel-}-${PV}
54
55 @@ -18,9 +16,21 @@ IUSE=""
56
57 S=${WORKDIR}/logos
58
59 -RDEPEND="app-text/convmv"
60 +BDEPEND="app-text/convmv"
61 +
62 +_test_charmap() {
63 + local charmap=$(locale charmap)
64 +
65 + if [ "${charmap}" != "UTF-8" ]; then
66 + eerror "You need locale UTF-8 to use the logos"
67 + die "missing locale UTF-8 on your system"
68 + fi
69 +}
70
71 src_prepare() {
72 + default
73 +
74 + _test_charmap
75
76 convmv --notest --replace -f iso-8859-1 -t utf-8 -r "${S}"/
77 }