Gentoo Archives: gentoo-commits

From: "Patrice Clement (monsieurp)" <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/po4a: po4a-0.45-r1.ebuild ChangeLog
Date: Sat, 29 Nov 2014 18:06:17
Message-Id: 20141129180614.3E177B2B9@oystercatcher.gentoo.org
1 monsieurp 14/11/29 18:06:14
2
3 Modified: po4a-0.45-r1.ebuild ChangeLog
4 Log:
5 Honour languages set by LINGUAS. Bug #402691.
6
7 (Portage version: 2.2.8-r2/cvs/Linux x86_64, unsigned Manifest commit)
8
9 Revision Changes Path
10 1.3 app-text/po4a/po4a-0.45-r1.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/po4a/po4a-0.45-r1.ebuild?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/po4a/po4a-0.45-r1.ebuild?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/po4a/po4a-0.45-r1.ebuild?r1=1.2&r2=1.3
15
16 Index: po4a-0.45-r1.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-text/po4a/po4a-0.45-r1.ebuild,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- po4a-0.45-r1.ebuild 26 Oct 2014 08:08:03 -0000 1.2
23 +++ po4a-0.45-r1.ebuild 29 Nov 2014 18:06:14 -0000 1.3
24 @@ -1,12 +1,15 @@
25 # Copyright 1999-2014 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-text/po4a/po4a-0.45-r1.ebuild,v 1.2 2014/10/26 08:08:03 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-text/po4a/po4a-0.45-r1.ebuild,v 1.3 2014/11/29 18:06:14 monsieurp Exp $
29
30 EAPI=5
31
32 +PLOCALES="af ca cs da de eo es et eu fr hr id it ja kn ko nb nl pl pt_BR pt ru sl sv uk vi zh_CN zh_HK"
33 +PLOCALES_BACKUP="en"
34 +
35 # Needed because this package also installs to vendor_perl
36 GENTOO_DEPEND_ON_PERL_SUBSLOT="yes"
37 -inherit perl-app
38 +inherit perl-app perl-module l10n
39
40 DESCRIPTION="Tools for helping translation of documentation"
41 HOMEPAGE="http://po4a.alioth.debian.org"
42 @@ -33,3 +36,29 @@
43 virtual/tex-base )"
44
45 SRC_TEST="do"
46 +
47 +src_prepare() {
48 + # Check against locale files in ${S}/pod/bin for mismatches
49 + # with languages listed in PLOCALES
50 + local locales_path="$S/po/bin"
51 + l10n_find_plocales_changes "$locales_path" "" ".po"
52 +
53 + # Array containing locale files to remove
54 + local locales_to_remove=( )
55 +
56 + # Get rid of disabled locales
57 + my_get_disabled_locales() {
58 + local locale=$1
59 + local locale_abs_path="$locales_path/$locale.po"
60 + locales_to_remove+=$locale_abs_path
61 + }
62 +
63 + l10n_for_each_disabled_locale_do my_get_disabled_locales
64 +
65 + einfo "Your LINGUAS lists the following languages: $LINGUAS"
66 + einfo "Removing locale files not listed in it ..."
67 +
68 + # perl_rm_files also updates the Manifest file
69 + # and therefore silences Perl as to .po files we're about to clean
70 + perl_rm_files "${locales_to_remove[@]}"
71 +}
72
73
74
75 1.85 app-text/po4a/ChangeLog
76
77 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/po4a/ChangeLog?rev=1.85&view=markup
78 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/po4a/ChangeLog?rev=1.85&content-type=text/plain
79 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/po4a/ChangeLog?r1=1.84&r2=1.85
80
81 Index: ChangeLog
82 ===================================================================
83 RCS file: /var/cvsroot/gentoo-x86/app-text/po4a/ChangeLog,v
84 retrieving revision 1.84
85 retrieving revision 1.85
86 diff -u -r1.84 -r1.85
87 --- ChangeLog 26 Oct 2014 08:08:03 -0000 1.84
88 +++ ChangeLog 29 Nov 2014 18:06:14 -0000 1.85
89 @@ -1,6 +1,9 @@
90 # ChangeLog for app-text/po4a
91 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
92 -# $Header: /var/cvsroot/gentoo-x86/app-text/po4a/ChangeLog,v 1.84 2014/10/26 08:08:03 vapier Exp $
93 +# $Header: /var/cvsroot/gentoo-x86/app-text/po4a/ChangeLog,v 1.85 2014/11/29 18:06:14 monsieurp Exp $
94 +
95 + 29 Nov 2014; Patrice Clement <monsieurp@g.o> po4a-0.45-r1.ebuild:
96 + Honour languages set by LINGUAS. Bug #402691.
97
98 26 Oct 2014; Mike Frysinger <vapier@g.o> po4a-0.45-r1.ebuild:
99 Mark m68k/s390/sh stable.