Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/thunderbird-bin: ChangeLog thunderbird-bin-9.0.1.ebuild thunderbird-bin-3.1.10.ebuild thunderbird-bin-6.0.ebuild
Date: Wed, 28 Dec 2011 07:32:58
Message-Id: 20111228073246.89C082004B@flycatcher.gentoo.org
1 polynomial-c 11/12/28 07:32:46
2
3 Modified: ChangeLog
4 Added: thunderbird-bin-9.0.1.ebuild
5 Removed: thunderbird-bin-3.1.10.ebuild
6 thunderbird-bin-6.0.ebuild
7 Log:
8 Version bump. Removed old
9
10 (Portage version: 2.2.0_alpha83/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.46 mail-client/thunderbird-bin/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.46&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.46&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?r1=1.45&r2=1.46
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v
22 retrieving revision 1.45
23 retrieving revision 1.46
24 diff -u -r1.45 -r1.46
25 --- ChangeLog 8 Dec 2011 14:48:30 -0000 1.45
26 +++ ChangeLog 28 Dec 2011 07:32:46 -0000 1.46
27 @@ -1,6 +1,13 @@
28 # ChangeLog for mail-client/thunderbird-bin
29 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.45 2011/12/08 14:48:30 phajdan.jr Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.46 2011/12/28 07:32:46 polynomial-c Exp $
32 +
33 +*thunderbird-bin-9.0.1 (28 Dec 2011)
34 +
35 + 28 Dec 2011; Lars Wendler <polynomial-c@g.o>
36 + -thunderbird-bin-3.1.10.ebuild, -thunderbird-bin-6.0.ebuild,
37 + +thunderbird-bin-9.0.1.ebuild:
38 + Version bump. Removed old.
39
40 08 Dec 2011; Pawel Hajdan jr <phajdan.jr@g.o>
41 thunderbird-bin-8.0.ebuild:
42
43
44
45 1.1 mail-client/thunderbird-bin/thunderbird-bin-9.0.1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-9.0.1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-9.0.1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: thunderbird-bin-9.0.1.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-9.0.1.ebuild,v 1.1 2011/12/28 07:32:46 polynomial-c Exp $
55
56 EAPI="3"
57
58 inherit eutils multilib mozextension pax-utils fdo-mime gnome2-utils
59
60 # Can be updated using scripts/get_langs.sh from mozilla overlay
61 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
62 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
63 ro ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW)
64
65 MY_PN="${PN/-bin}"
66 MY_PV="${PV/_beta/b}"
67 MY_P="${MY_PN}-${MY_PV}"
68
69 DESCRIPTION="Thunderbird Mail Client"
70 FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MY_PN}/releases/"
71 SRC_URI="
72 amd64? ( ${FTP_URI}/${MY_PV}/linux-x86_64/en-US/${MY_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
73 x86? ( ${FTP_URI}/${MY_PV}/linux-i686/en-US/${MY_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
74 HOMEPAGE="http://www.mozilla.com/thunderbird"
75 RESTRICT="strip"
76
77 KEYWORDS="-* ~amd64 ~x86"
78 SLOT="0"
79 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
80 IUSE="+crashreporter"
81
82 for X in "${LANGS[@]}" ; do
83 # en and en_US are handled internally
84 if [[ ${X} != en ]] && [[ ${X} != en-US ]]; then
85 SRC_URI="${SRC_URI}
86 linguas_${X/-/_}? ( ${FTP_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin}-${X}.xpi )"
87 fi
88 IUSE="${IUSE} linguas_${X/-/_}"
89 # Install all the specific locale xpis if there's no generic locale xpi
90 # Example: there's no pt.xpi, so install all pt-*.xpi
91 if ! has ${X%%-*} "${LANGS[@]}"; then
92 SRC_URI="${SRC_URI}
93 linguas_${X%%-*}? ( ${FTP_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin}-${X}.xpi )"
94 IUSE="${IUSE} linguas_${X%%-*}"
95 fi
96 done
97
98 DEPEND="app-arch/unzip"
99 RDEPEND="x11-libs/libXrender
100 x11-libs/libXt
101 x11-libs/libXmu
102 >=x11-libs/gtk+-2.2:2
103 crashreporter? ( net-misc/curl ) "
104
105 S="${WORKDIR}/${MY_PN}"
106
107 # TODO: Move all the linguas crap to an eclass
108 linguas() {
109 # Generate the list of language packs called "linguas"
110 # This list is used to install the xpi language packs
111 local LINGUA
112 for LINGUA in ${LINGUAS}; do
113 if has ${LINGUA} en en_US; then
114 # For mozilla products, en and en_US are handled internally
115 continue
116 # If this language is supported by ${P},
117 elif has ${LINGUA} "${LANGS[@]//-/_}"; then
118 # Add the language to linguas, if it isn't already there
119 has ${LINGUA//_/-} "${linguas[@]}" || linguas+=(${LINGUA//_/-})
120 continue
121 # For each short LINGUA that isn't in LANGS,
122 # add *all* long LANGS to the linguas list
123 elif ! has ${LINGUA%%-*} "${LANGS[@]}"; then
124 for LANG in "${LANGS[@]}"; do
125 if [[ ${LANG} == ${LINGUA}-* ]]; then
126 has ${LANG} "${linguas[@]}" || linguas+=(${LANG})
127 continue 2
128 fi
129 done
130 fi
131 ewarn "Sorry, but ${P} does not support the ${LINGUA} locale"
132 done
133 }
134
135 src_unpack() {
136 unpack ${A}
137
138 linguas
139 for X in "${linguas[@]}"; do
140 xpi_unpack "${P/-bin}-${X}.xpi"
141 done
142 }
143
144 src_install() {
145 declare MOZILLA_FIVE_HOME="/opt/${MY_PN}"
146
147 # Install thunderbird in /opt
148 dodir ${MOZILLA_FIVE_HOME%/*}
149 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
150
151 linguas
152 for X in "${linguas[@]}"; do
153 xpi_install "${WORKDIR}/${P/-bin}-${X}"
154 done
155
156 # Create /usr/bin/thunderbird-bin
157 dodir /usr/bin/
158 cat <<EOF >"${D}"/usr/bin/${PN}
159 #!/bin/sh
160 unset LD_PRELOAD
161 LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}"
162 exec ${MOZILLA_FIVE_HOME}/thunderbird "\$@"
163 EOF
164 fperms 0755 /usr/bin/${PN}
165
166 # Install icon and .desktop for menu entry
167 doicon "${FILESDIR}"/icon/${PN}-icon.png
168 domenu "${FILESDIR}"/icon/${PN}.desktop
169
170 # revdep-rebuild entry
171 insinto /etc/revdep-rebuild
172 doins "${FILESDIR}"/10${PN}
173
174 # Enable very specific settings for thunderbird-3
175 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \
176 "${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
177 die "failed to cp thunderbird-gentoo-default-prefs.js"
178
179 ln -sfn "/usr/$(get_libdir)/nsbrowser/plugins" \
180 "${D}${MOZILLA_FIVE_HOME}/plugins" || die
181
182 pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{thunderbird-bin,thunderbird,plugin-container}
183 }
184
185 pkg_preinst() {
186 gnome2_icon_savelist
187 }
188
189 pkg_postinst() {
190 fdo-mime_desktop_database_update
191 gnome2_icon_cache_update
192 }
193
194 pkg_postrm() {
195 gnome2_icon_cache_update
196 }