Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/iso-codes: ChangeLog iso-codes-3.24.ebuild
Date: Mon, 03 Jan 2011 22:07:03
Message-Id: 20110103220653.B980620057@flycatcher.gentoo.org
1 eva 11/01/03 22:06:53
2
3 Modified: ChangeLog
4 Added: iso-codes-3.24.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha12/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.98 app-text/iso-codes/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/ChangeLog?rev=1.98&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/ChangeLog?rev=1.98&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/ChangeLog?r1=1.97&r2=1.98
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/iso-codes/ChangeLog,v
20 retrieving revision 1.97
21 retrieving revision 1.98
22 diff -u -r1.97 -r1.98
23 --- ChangeLog 13 Dec 2010 22:31:09 -0000 1.97
24 +++ ChangeLog 3 Jan 2011 22:06:53 -0000 1.98
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-text/iso-codes
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/iso-codes/ChangeLog,v 1.97 2010/12/13 22:31:09 eva Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-text/iso-codes/ChangeLog,v 1.98 2011/01/03 22:06:53 eva Exp $
31 +
32 +*iso-codes-3.24 (03 Jan 2011)
33 +
34 + 03 Jan 2011; Gilles Dartiguelongue <eva@g.o> +iso-codes-3.24.ebuild:
35 + Version bump.
36
37 *iso-codes-3.23 (13 Dec 2010)
38
39
40
41
42 1.1 app-text/iso-codes/iso-codes-3.24.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/iso-codes-3.24.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/iso-codes/iso-codes-3.24.ebuild?rev=1.1&content-type=text/plain
46
47 Index: iso-codes-3.24.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-text/iso-codes/iso-codes-3.24.ebuild,v 1.1 2011/01/03 22:06:53 eva Exp $
52
53 EAPI="3"
54
55 inherit eutils
56
57 DESCRIPTION="Provides the list of country and language names"
58 HOMEPAGE="http://alioth.debian.org/projects/pkg-isocodes/"
59 SRC_URI="ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes/${P}.tar.bz2"
60
61 LICENSE="LGPL-2.1"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
64 IUSE=""
65
66 RDEPEND=""
67 DEPEND="sys-devel/gettext"
68
69 # This ebuild does not install any binaries
70 RESTRICT="binchecks strip"
71
72 src_prepare() {
73 local linguas_bak=${LINGUAS}
74 local mylinguas=""
75
76 for norm in iso_15924 iso_3166 iso_3166_2 iso_4217 iso_639 iso_639_3; do
77 einfo "Preparing ${norm}"
78
79 mylinguas=""
80 LINGUAS=${linguas_bak}
81 strip-linguas -i "${S}/${norm}"
82
83 for loc in ${LINGUAS}; do
84 mylinguas="${mylinguas} ${loc}.po"
85 done
86
87 if [ -n "${mylinguas}" ]; then
88 sed -e "s:pofiles =.*:pofiles = ${mylinguas}:" \
89 -e "s:mofiles =.*:mofiles = ${mylinguas//.po/.mo}:" \
90 -i "${S}/${norm}/Makefile.am" "${S}/${norm}/Makefile.in" \
91 || die "sed in ${norm} folder failed"
92 fi
93 done
94 }
95
96 src_install() {
97 emake DESTDIR="${D}" install || die "Installation failed"
98
99 dodoc ChangeLog README TODO || die "dodoc failed"
100 }