Gentoo Archives: gentoo-commits

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