Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/mozilla-thunderbird-bin: ChangeLog mozilla-thunderbird-bin-2.0.0.19.ebuild
Date: Tue, 30 Dec 2008 21:29:00
Message-Id: E1LHm93-0007HN-GS@stork.gentoo.org
1 armin76 08/12/30 21:28:57
2
3 Modified: ChangeLog
4 Added: mozilla-thunderbird-bin-2.0.0.19.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4.5)
8
9 Revision Changes Path
10 1.121 mail-client/mozilla-thunderbird-bin/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog?rev=1.121&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog?rev=1.121&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog?r1=1.120&r2=1.121
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog,v
19 retrieving revision 1.120
20 retrieving revision 1.121
21 diff -u -r1.120 -r1.121
22 --- ChangeLog 12 Dec 2008 10:48:01 -0000 1.120
23 +++ ChangeLog 30 Dec 2008 21:28:57 -0000 1.121
24 @@ -1,6 +1,12 @@
25 # ChangeLog for mail-client/mozilla-thunderbird-bin
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog,v 1.120 2008/12/12 10:48:01 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog,v 1.121 2008/12/30 21:28:57 armin76 Exp $
29 +
30 +*mozilla-thunderbird-bin-2.0.0.19 (30 Dec 2008)
31 +
32 + 30 Dec 2008; Raúl Porcel <armin76@g.o>
33 + +mozilla-thunderbird-bin-2.0.0.19.ebuild:
34 + Version bump
35
36 *mozilla-thunderbird-bin-3.0_beta1 (12 Dec 2008)
37
38
39
40
41 1.1 mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-2.0.0.19.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-2.0.0.19.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-2.0.0.19.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mozilla-thunderbird-bin-2.0.0.19.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-2.0.0.19.ebuild,v 1.1 2008/12/30 21:28:57 armin76 Exp $
51
52 inherit eutils mozilla-launcher multilib mozextension
53
54 LANGS="af be bg ca cs da de el en-GB en-US es-AR es-ES eu fi fr ga-IE he hu it ja ko lt mk nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ru sk sl sv-SE tr uk zh-CN zh-TW"
55 NOSHORTLANGS="en-GB es-AR pt-BR zh-TW"
56
57 DESCRIPTION="Thunderbird Mail Client"
58 SRC_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/linux-i686/en-US/thunderbird-${PV}.tar.gz"
59 HOMEPAGE="http://www.mozilla.com/thunderbird"
60 RESTRICT="strip"
61
62 KEYWORDS="-* ~amd64 ~x86"
63 SLOT="0"
64 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
65 IUSE=""
66
67 for X in ${LANGS} ; do
68 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
69 SRC_URI="${SRC_URI}
70 linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P/-bin}-xpi/${P/-bin/}-${X}.xpi )"
71 fi
72 IUSE="${IUSE} linguas_${X/-/_}"
73 # english is handled internally
74 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
75 if [ "${X}" != "en-US" ]; then
76 SRC_URI="${SRC_URI}
77 linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P/-bin}-xpi/${P/-bin/}-${X}.xpi )"
78 fi
79 IUSE="${IUSE} linguas_${X%%-*}"
80 fi
81 done
82
83 DEPEND="app-arch/unzip"
84 RDEPEND="x11-libs/libXrender
85 x11-libs/libXt
86 x11-libs/libXmu
87 x86? (
88 >=x11-libs/gtk+-2.2
89 =virtual/libstdc++-3.3
90 )
91 amd64? (
92 >=app-emulation/emul-linux-x86-baselibs-1.0
93 >=app-emulation/emul-linux-x86-gtklibs-1.0
94 app-emulation/emul-linux-x86-compat
95 )
96 >=www-client/mozilla-launcher-1.41"
97
98 S="${WORKDIR}/thunderbird"
99
100 pkg_setup() {
101 # This is a binary x86 package => ABI=x86
102 # Please keep this in future versions
103 # Danny van Dyk <kugelfang@g.o> 2005/03/26
104 has_multilib_profile && ABI="x86"
105 }
106
107 linguas() {
108 local LANG SLANG
109 for LANG in ${LINGUAS}; do
110 if has ${LANG} en en_US; then
111 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
112 continue
113 elif has ${LANG} ${LANGS//-/_}; then
114 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
115 continue
116 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
117 for X in ${LANGS}; do
118 if [[ "${X}" == "${LANG}-"* ]] && \
119 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
120 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
121 continue 2
122 fi
123 done
124 fi
125 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
126 done
127 }
128
129 src_unpack() {
130 unpack thunderbird-${PV}.tar.gz
131
132 linguas
133 for X in ${linguas}; do
134 [[ ${X} != en ]] && xpi_unpack ${P/-bin}-${X}.xpi
135 done
136 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
137 einfo "Selected language packs (first will be default): ${linguas}"
138 fi
139 }
140
141 src_install() {
142 declare MOZILLA_FIVE_HOME="/opt/thunderbird"
143
144 # Install thunderbird in /opt
145 dodir ${MOZILLA_FIVE_HOME%/*}
146 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
147
148 linguas
149 for X in ${linguas}; do
150 [[ ${X} != en ]] && xpi_install ${WORKDIR}/${P/-bin}-${X}
151 done
152
153 local LANG=${linguas%% *}
154 if [[ ${LANG} != "" && ${LANG} != "en" ]]; then
155 ebegin "Setting default locale to ${LANG}"
156 sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \
157 "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-thunderbird.js \
158 "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-l10n.js
159 eend $? || die "sed failed to change locale"
160 fi
161
162 # Install /usr/bin/thunderbird-bin
163 install_mozilla_launcher_stub thunderbird-bin ${MOZILLA_FIVE_HOME}
164
165 # Install icon and .desktop for menu entry
166 doicon "${FILESDIR}"/icon/${PN}-icon.png
167 domenu "${FILESDIR}"/icon/${PN}.desktop
168
169 # revdep-rebuild entry
170 insinto /etc/revdep-rebuild
171 doins "${FILESDIR}"/10thunderbird-bin
172
173 # install ldpath env.d
174 doenvd "${FILESDIR}"/71thunderbird-bin
175 }
176
177 pkg_preinst() {
178 declare MOZILLA_FIVE_HOME="/opt/thunderbird"
179
180 # Remove entire installed instance to solve various
181 # problems, for example see bug 27719
182 rm -rf "${ROOT}"${MOZILLA_FIVE_HOME}
183 }
184
185 pkg_postinst() {
186 elog "For enigmail, please see instructions at"
187 elog " http://enigmail.mozdev.org/"
188
189 use amd64 && einfo "NB: You just installed a 32-bit thunderbird"
190 update_mozilla_launcher_symlinks
191 }
192
193 pkg_postrm() {
194 update_mozilla_launcher_symlinks
195 }