1 |
nirbheek 12/02/04 18:35:28 |
2 |
|
3 |
Modified: ChangeLog thunderbird-bin-10.0.ebuild |
4 |
Log: |
5 |
Port tbd-bin to the new mozlinguas.eclass |
6 |
|
7 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.52 mail-client/thunderbird-bin/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.52&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.52&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?r1=1.51&r2=1.52 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v |
19 |
retrieving revision 1.51 |
20 |
retrieving revision 1.52 |
21 |
diff -u -r1.51 -r1.52 |
22 |
--- ChangeLog 31 Jan 2012 20:35:16 -0000 1.51 |
23 |
+++ ChangeLog 4 Feb 2012 18:35:28 -0000 1.52 |
24 |
@@ -1,6 +1,10 @@ |
25 |
# ChangeLog for mail-client/thunderbird-bin |
26 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.51 2012/01/31 20:35:16 jdhore Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.52 2012/02/04 18:35:28 nirbheek Exp $ |
29 |
+ |
30 |
+ 04 Feb 2012; Nirbheek Chauhan <nirbheek@g.o> |
31 |
+ thunderbird-bin-10.0.ebuild: |
32 |
+ Port tbd-bin to the new mozlinguas.eclass |
33 |
|
34 |
*thunderbird-bin-10.0 (31 Jan 2012) |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
1.2 mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild?rev=1.2&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild?rev=1.2&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild?r1=1.1&r2=1.2 |
44 |
|
45 |
Index: thunderbird-bin-10.0.ebuild |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild,v |
48 |
retrieving revision 1.1 |
49 |
retrieving revision 1.2 |
50 |
diff -u -r1.1 -r1.2 |
51 |
--- thunderbird-bin-10.0.ebuild 31 Jan 2012 20:35:16 -0000 1.1 |
52 |
+++ thunderbird-bin-10.0.ebuild 4 Feb 2012 18:35:28 -0000 1.2 |
53 |
@@ -1,27 +1,34 @@ |
54 |
# Copyright 1999-2012 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild,v 1.1 2012/01/31 20:35:16 jdhore Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild,v 1.2 2012/02/04 18:35:28 nirbheek Exp $ |
58 |
|
59 |
EAPI="3" |
60 |
|
61 |
-inherit eutils multilib mozextension pax-utils fdo-mime gnome2-utils nsplugins |
62 |
- |
63 |
# Can be updated using scripts/get_langs.sh from mozilla overlay |
64 |
-LANGS=(ar be bg bn-BD br ca cs da de el en en-GB en-US es-AR es-ES et eu fi fr |
65 |
-fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT rm |
66 |
-ro ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW) |
67 |
- |
68 |
-MY_PN="${PN/-bin}" |
69 |
-MY_PV="${PV/_beta/b}" |
70 |
-# This is a ugly hack, but what can ya do? |
71 |
-MY_TEN_PV="${MY_PV/10.0/10.0-real}" |
72 |
-MY_P="${MY_PN}-${MY_PV}" |
73 |
+MOZ_LANGS=(ar ast be bg bn-BD br ca cs da de el en en-GB en-US es-AR es-ES et eu |
74 |
+fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR |
75 |
+pt-PT rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi zh-CN zh-TW) |
76 |
+ |
77 |
+# Convert the ebuild version to the upstream mozilla version, used by |
78 |
+MOZ_PN="${PN/-bin}" |
79 |
+MOZ_PV="${PV/_beta/b}" |
80 |
+MOZ_PV="${MOZ_PV/_rc/rc}" |
81 |
+MOZ_P="${MOZ_PN}-${MOZ_PV}" |
82 |
+ |
83 |
+# Upstream fail... |
84 |
+MY_TEN_PV="10.0-real" |
85 |
+MOZ_LANGPACK_PREFIX="${MY_TEN_PV}/linux-i686/xpi/" |
86 |
+ |
87 |
+# Upstream ftp release URI that's used by mozlinguas.eclass |
88 |
+# We don't use the http mirror because it deletes old tarballs. |
89 |
+MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" |
90 |
+ |
91 |
+inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas |
92 |
|
93 |
DESCRIPTION="Thunderbird Mail Client" |
94 |
-FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MY_PN}/releases/" |
95 |
-SRC_URI=" |
96 |
- amd64? ( ${FTP_URI}/${MY_TEN_PV}/linux-x86_64/en-US/${MY_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
97 |
- x86? ( ${FTP_URI}/${MY_TEN_PV}/linux-i686/en-US/${MY_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" |
98 |
+SRC_URI="${SRC_URI} |
99 |
+ amd64? ( ${MOZ_FTP_URI}/${MY_TEN_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
100 |
+ x86? ( ${MOZ_FTP_URI}/${MY_TEN_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" |
101 |
HOMEPAGE="http://www.mozilla.com/thunderbird" |
102 |
RESTRICT="strip" |
103 |
|
104 |
@@ -30,22 +37,6 @@ |
105 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
106 |
IUSE="+crashreporter" |
107 |
|
108 |
-for X in "${LANGS[@]}" ; do |
109 |
- # en and en_US are handled internally |
110 |
- if [[ ${X} != en ]] && [[ ${X} != en-US ]]; then |
111 |
- SRC_URI="${SRC_URI} |
112 |
- linguas_${X/-/_}? ( ${FTP_URI}/${MY_TEN_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin}-${X}.xpi )" |
113 |
- fi |
114 |
- IUSE="${IUSE} linguas_${X/-/_}" |
115 |
- # Install all the specific locale xpis if there's no generic locale xpi |
116 |
- # Example: there's no pt.xpi, so install all pt-*.xpi |
117 |
- if ! has ${X%%-*} "${LANGS[@]}"; then |
118 |
- SRC_URI="${SRC_URI} |
119 |
- linguas_${X%%-*}? ( ${FTP_URI}/${MY_TEN_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin}-${X}.xpi )" |
120 |
- IUSE="${IUSE} linguas_${X%%-*}" |
121 |
- fi |
122 |
-done |
123 |
- |
124 |
DEPEND="app-arch/unzip" |
125 |
RDEPEND="x11-libs/libXrender |
126 |
x11-libs/libXt |
127 |
@@ -54,56 +45,24 @@ |
128 |
>=media-libs/alsa-lib-1.0.16 |
129 |
crashreporter? ( net-misc/curl ) " |
130 |
|
131 |
-S="${WORKDIR}/${MY_PN}" |
132 |
- |
133 |
-# TODO: Move all the linguas crap to an eclass |
134 |
-linguas() { |
135 |
- # Generate the list of language packs called "linguas" |
136 |
- # This list is used to install the xpi language packs |
137 |
- local LINGUA |
138 |
- for LINGUA in ${LINGUAS}; do |
139 |
- if has ${LINGUA} en en_US; then |
140 |
- # For mozilla products, en and en_US are handled internally |
141 |
- continue |
142 |
- # If this language is supported by ${P}, |
143 |
- elif has ${LINGUA} "${LANGS[@]//-/_}"; then |
144 |
- # Add the language to linguas, if it isn't already there |
145 |
- has ${LINGUA//_/-} "${linguas[@]}" || linguas+=(${LINGUA//_/-}) |
146 |
- continue |
147 |
- # For each short LINGUA that isn't in LANGS, |
148 |
- # add *all* long LANGS to the linguas list |
149 |
- elif ! has ${LINGUA%%-*} "${LANGS[@]}"; then |
150 |
- for LANG in "${LANGS[@]}"; do |
151 |
- if [[ ${LANG} == ${LINGUA}-* ]]; then |
152 |
- has ${LANG} "${linguas[@]}" || linguas+=(${LANG}) |
153 |
- continue 2 |
154 |
- fi |
155 |
- done |
156 |
- fi |
157 |
- ewarn "Sorry, but ${P} does not support the ${LINGUA} locale" |
158 |
- done |
159 |
-} |
160 |
+S="${WORKDIR}/${MOZ_PN}" |
161 |
|
162 |
src_unpack() { |
163 |
unpack ${A} |
164 |
|
165 |
- linguas |
166 |
- for X in "${linguas[@]}"; do |
167 |
- xpi_unpack "${P/-bin}-${X}.xpi" |
168 |
- done |
169 |
+ # Unpack language packs |
170 |
+ mozlinguas_src_unpack |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
- declare MOZILLA_FIVE_HOME="/opt/${MY_PN}" |
175 |
+ declare MOZILLA_FIVE_HOME="/opt/${MOZ_PN}" |
176 |
|
177 |
# Install thunderbird in /opt |
178 |
dodir ${MOZILLA_FIVE_HOME%/*} |
179 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} |
180 |
|
181 |
- linguas |
182 |
- for X in "${linguas[@]}"; do |
183 |
- xpi_install "${WORKDIR}/${P/-bin}-${X}" |
184 |
- done |
185 |
+ # Install language packs |
186 |
+ mozlinguas_src_install |
187 |
|
188 |
# Create /usr/bin/thunderbird-bin |
189 |
dodir /usr/bin/ |