Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/iso-codes: iso-codes-3.59.ebuild ChangeLog iso-codes-3.54.ebuild iso-codes-3.51.ebuild iso-codes-3.55.ebuild
Date: Sat, 04 Jul 2015 18:50:40
Message-Id: 20150704185031.2733274B@oystercatcher.gentoo.org
1 pacho 15/07/04 18:50:31
2
3 Modified: ChangeLog
4 Added: iso-codes-3.59.ebuild
5 Removed: iso-codes-3.54.ebuild iso-codes-3.51.ebuild
6 iso-codes-3.55.ebuild
7 Log:
8 Version bump, drop old
9
10 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
11
12 Revision Changes Path
13 1.185 app-text/iso-codes/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/ChangeLog?rev=1.185&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/ChangeLog?rev=1.185&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/ChangeLog?r1=1.184&r2=1.185
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/app-text/iso-codes/ChangeLog,v
22 retrieving revision 1.184
23 retrieving revision 1.185
24 diff -u -r1.184 -r1.185
25 --- ChangeLog 3 Mar 2015 05:57:19 -0000 1.184
26 +++ ChangeLog 4 Jul 2015 18:50:31 -0000 1.185
27 @@ -1,6 +1,12 @@
28 # ChangeLog for app-text/iso-codes
29 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/app-text/iso-codes/ChangeLog,v 1.184 2015/03/03 05:57:19 dlan Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/app-text/iso-codes/ChangeLog,v 1.185 2015/07/04 18:50:31 pacho Exp $
32 +
33 +*iso-codes-3.59 (04 Jul 2015)
34 +
35 + 04 Jul 2015; Pacho Ramos <pacho@g.o> +iso-codes-3.59.ebuild,
36 + -iso-codes-3.51.ebuild, -iso-codes-3.54.ebuild, -iso-codes-3.55.ebuild:
37 + Version bump, drop old
38
39 02 Mar 2015; Yixun Lan <dlan@g.o> iso-codes-3.57.ebuild:
40 add arm64 support, tested on A53 board
41
42
43
44 1.1 app-text/iso-codes/iso-codes-3.59.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/iso-codes-3.59.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/iso-codes-3.59.ebuild?rev=1.1&content-type=text/plain
48
49 Index: iso-codes-3.59.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-text/iso-codes/iso-codes-3.59.ebuild,v 1.1 2015/07/04 18:50:31 pacho Exp $
54
55 EAPI="5"
56
57 PLOCALES="af am ar as ast az be bg bn bn_IN br bs byn ca crh cs cy da de dz el en eo es et eu fa fi fo fr ga gez gl gu haw he hi hr hu hy ia id is it ja ka kk km kn ko kok ku lt lv mi mk ml mn mr ms mt nb ne nl nn nso oc or pa pl ps pt pt_BR ro ru rw si sk sl so sq sr sr@latin sv sw ta te th ti tig tk tl tr tt tt@iqtelif ug uk ve vi wa wal wo xh zh_CN zh_HK zh_TW zu"
58
59 inherit eutils l10n
60
61 DESCRIPTION="ISO language, territory, currency, script codes and their translations"
62 HOMEPAGE="http://pkg-isocodes.alioth.debian.org/"
63 SRC_URI="http://pkg-isocodes.alioth.debian.org/downloads/${P}.tar.xz"
64
65 LICENSE="LGPL-2.1+"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
68 IUSE=""
69
70 RDEPEND=""
71 DEPEND="
72 app-arch/xz-utils
73 sys-devel/gettext
74 "
75
76 # This ebuild does not install any binaries
77 RESTRICT="binchecks strip"
78
79 src_prepare() {
80 local norm loc all_locales mylinguas
81 local all_norms="iso_15924 iso_3166 iso_3166_2 iso_4217 iso_639 iso_639_3 iso_639_5"
82
83 # l10n_find_plocales_changes doesn't support multiple directories
84 einfo "Looking for new locales ..."
85 for norm in ${all_norms}; do
86 pushd "${norm}" > /dev/null || die
87 for loc in *.po; do
88 all_locales+="${loc%.po} "
89 done
90 popd > /dev/null
91 done
92
93 all_locales=$(echo "${all_locales}" | sed 's/ /\n/g' | sort | uniq)
94 all_locales=${all_locales//[[:space:]]/ }
95 all_locales=${all_locales#[[:space:]]}
96 all_locales=${all_locales%[[:space:]]}
97 if [[ ${PLOCALES} != ${all_locales} ]]; then
98 einfo "There are changes in locales! This ebuild should be updated to:"
99 einfo "PLOCALES=\"${all_locales}\""
100 else
101 einfo "Done"
102 fi
103
104 for norm in ${all_norms}; do
105 einfo "Preparing ${norm} ..."
106 pushd "${norm}" > /dev/null || die
107 mylinguas=
108 for loc in *.po; do
109 if use "linguas_"${loc%.po}; then
110 mylinguas+="${loc} "
111 fi
112 done
113
114 sed -e "s:pofiles =.*:pofiles = ${mylinguas} ${NULL}:" \
115 -e "s:mofiles =.*:mofiles = ${mylinguas//.po/.mo} ${NULL}:" \
116 -i Makefile.am Makefile.in || die "sed in ${norm} folder failed"
117 popd > /dev/null
118 done
119 }