1 |
armin76 08/04/28 16:00:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-firefox-3.0_beta5-r2.ebuild |
5 |
Removed: mozilla-firefox-3.0_beta5-r1.ebuild |
6 |
Log: |
7 |
Fix wrapper |
8 |
(Portage version: 2.1.4.4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.399 www-client/mozilla-firefox/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.399&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.399&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?r1=1.398&r2=1.399 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v |
20 |
retrieving revision 1.398 |
21 |
retrieving revision 1.399 |
22 |
diff -u -r1.398 -r1.399 |
23 |
--- ChangeLog 26 Apr 2008 18:26:19 -0000 1.398 |
24 |
+++ ChangeLog 28 Apr 2008 16:00:21 -0000 1.399 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for www-client/mozilla-firefox |
27 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.398 2008/04/26 18:26:19 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.399 2008/04/28 16:00:21 armin76 Exp $ |
30 |
+ |
31 |
+*mozilla-firefox-3.0_beta5-r2 (28 Apr 2008) |
32 |
+ |
33 |
+ 28 Apr 2008; Raúl Porcel <armin76@g.o> |
34 |
+ -mozilla-firefox-3.0_beta5-r1.ebuild, |
35 |
+ +mozilla-firefox-3.0_beta5-r2.ebuild: |
36 |
+ Fix wrapper |
37 |
|
38 |
26 Apr 2008; Raúl Porcel <armin76@g.o> |
39 |
mozilla-firefox-2.0.0.14.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/mozilla-firefox/mozilla-firefox-3.0_beta5-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.0_beta5-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.0_beta5-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: mozilla-firefox-3.0_beta5-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.0_beta5-r2.ebuild,v 1.1 2008/04/28 16:00:21 armin76 Exp $ |
53 |
EAPI="1" |
54 |
WANT_AUTOCONF="2.1" |
55 |
|
56 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension |
57 |
PATCH="${P}-patches-0.1" |
58 |
|
59 |
LANGS="af ar be ca cs de el en-GB en-US es-AR es-ES eu fi fr fy-NL gu-IN he hu id it ja ka ko ku lt mk mn nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ro ru sk sq sv-SE tr uk zh-CN zh-TW" |
60 |
NOSHORTLANGS="en-GB es-AR pt-BR zh-CN" |
61 |
|
62 |
MY_PV=${PV/_beta/b} |
63 |
MY_P="${PN}-${MY_PV}" |
64 |
MY_PV=${PV/3.0/} |
65 |
|
66 |
DESCRIPTION="Firefox Web Browser" |
67 |
HOMEPAGE="http://www.mozilla.org/projects/firefox/" |
68 |
|
69 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
70 |
SLOT="0" |
71 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
72 |
IUSE="java mozdevelop bindist restrict-javascript +xulrunner" |
73 |
|
74 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
75 |
mirror://gentoo/${PATCH}.tar.bz2 |
76 |
!xulrunner? ( mirror://gentoo/xulrunner-1.9${MY_PV}.tar.bz2 )" |
77 |
|
78 |
# These are in |
79 |
# |
80 |
# http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/linux-i686/xpi/ |
81 |
# |
82 |
# for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done |
83 |
for X in ${LANGS} ; do |
84 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
85 |
SRC_URI="${SRC_URI} |
86 |
linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${MY_P}-xpi/${MY_P}-${X}.xpi )" |
87 |
fi |
88 |
IUSE="${IUSE} linguas_${X/-/_}" |
89 |
# english is handled internally |
90 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
91 |
if [ "${X}" != "en-US" ]; then |
92 |
SRC_URI="${SRC_URI} |
93 |
linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${MY_P}-xpi/${MY_P}-${X}.xpi )" |
94 |
fi |
95 |
IUSE="${IUSE} linguas_${X%%-*}" |
96 |
fi |
97 |
done |
98 |
|
99 |
RDEPEND="java? ( virtual/jre ) |
100 |
>=sys-devel/binutils-2.16.1 |
101 |
>=dev-libs/nss-3.12_beta3 |
102 |
>=dev-libs/nspr-4.7.1_beta2 |
103 |
>=media-libs/lcms-1.17 |
104 |
>=app-text/hunspell-1.1.9 |
105 |
>=dev-db/sqlite-3.5 |
106 |
xulrunner? ( >=net-libs/xulrunner-1.9${MY_PV} )" |
107 |
|
108 |
DEPEND="${RDEPEND} |
109 |
java? ( >=dev-java/java-config-0.2.0 )" |
110 |
|
111 |
PDEPEND="restrict-javascript? ( x11-plugins/noscript )" |
112 |
|
113 |
S="${WORKDIR}/mozilla" |
114 |
|
115 |
# Needed by src_compile() and src_install(). |
116 |
# Would do in pkg_setup but that loses the export attribute, they |
117 |
# become pure shell variables. |
118 |
export MOZ_CO_PROJECT=browser |
119 |
export BUILD_OFFICIAL=1 |
120 |
export MOZILLA_OFFICIAL=1 |
121 |
|
122 |
linguas() { |
123 |
local LANG SLANG |
124 |
for LANG in ${LINGUAS}; do |
125 |
if has ${LANG} en en_US; then |
126 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
127 |
continue |
128 |
elif has ${LANG} ${LANGS//-/_}; then |
129 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
130 |
continue |
131 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
132 |
for X in ${LANGS}; do |
133 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
134 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
135 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
136 |
continue 2 |
137 |
fi |
138 |
done |
139 |
fi |
140 |
ewarn "Sorry, but mozilla-firefox does not support the ${LANG} LINGUA" |
141 |
done |
142 |
} |
143 |
|
144 |
pkg_setup(){ |
145 |
if ! built_with_use x11-libs/cairo X; then |
146 |
eerror "Cairo is not built with X useflag." |
147 |
eerror "Please add 'X' to your USE flags, and re-emerge cairo." |
148 |
die "Cairo needs X" |
149 |
fi |
150 |
|
151 |
if ! built_with_use --missing true x11-libs/pango X; then |
152 |
eerror "Pango is not built with X useflag." |
153 |
eerror "Please add 'X' to your USE flags, and re-emerge pango." |
154 |
die "Pango needs X" |
155 |
fi |
156 |
|
157 |
if ! use bindist; then |
158 |
elog "You are enabling official branding. You may not redistribute this build" |
159 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
160 |
elog "a legal problem with Mozilla Foundation" |
161 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
162 |
|
163 |
fi |
164 |
} |
165 |
|
166 |
src_unpack() { |
167 |
! use xulrunner && unpack xulrunner-1.9${MY_PV}.tar.bz2 |
168 |
unpack ${P}.tar.bz2 ${PATCH}.tar.bz2 |
169 |
|
170 |
linguas |
171 |
for X in ${linguas}; do |
172 |
[[ ${X} != "en" ]] && xpi_unpack "${MY_P}-${X}.xpi" |
173 |
done |
174 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
175 |
einfo "Selected language packs (first will be default): ${linguas}" |
176 |
fi |
177 |
|
178 |
# Remove the patches we don't need |
179 |
use xulrunner && rm "${WORKDIR}"/patch/*noxul* || rm "${WORKDIR}"/patch/*xulonly* |
180 |
|
181 |
# Apply our patches |
182 |
cd "${S}" || die "cd failed" |
183 |
EPATCH_SUFFIX="patch" \ |
184 |
EPATCH_FORCE="yes" \ |
185 |
epatch "${WORKDIR}"/patch |
186 |
|
187 |
eautoreconf || die "failed running eautoreconf" |
188 |
} |
189 |
|
190 |
src_compile() { |
191 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
192 |
MEXTENSIONS="default,typeaheadfind" |
193 |
|
194 |
#if use xforms; then |
195 |
# MEXTENSIONS="${MEXTENSIONS},xforms" |
196 |
#fi |
197 |
#################################### |
198 |
# |
199 |
# mozconfig, CFLAGS and CXXFLAGS setup |
200 |
# |
201 |
#################################### |
202 |
|
203 |
mozconfig_init |
204 |
mozconfig_config |
205 |
|
206 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
207 |
mozconfig_annotate '' --disable-mailnews |
208 |
mozconfig_annotate 'broken' --disable-mochitest |
209 |
mozconfig_annotate 'broken' --disable-crashreporter |
210 |
mozconfig_annotate '' --enable-system-hunspell |
211 |
mozconfig_annotate '' --enable-system-sqlite |
212 |
mozconfig_annotate '' --enable-image-encoder=all |
213 |
mozconfig_annotate '' --enable-canvas |
214 |
mozconfig_annotate '' --with-system-nspr |
215 |
mozconfig_annotate '' --with-system-nss |
216 |
mozconfig_annotate '' --enable-system-lcms |
217 |
mozconfig_annotate '' --enable-oji --enable-mathml |
218 |
mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks |
219 |
|
220 |
# Other ff-specific settings |
221 |
#mozconfig_use_enable mozdevelop jsd |
222 |
#mozconfig_use_enable mozdevelop xpctools |
223 |
mozconfig_use_extension mozdevelop venkman |
224 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
225 |
if use xulrunner; then |
226 |
# Add xulrunner variable |
227 |
mozconfig_annotate '' --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-1.9 |
228 |
fi |
229 |
|
230 |
if ! use bindist; then |
231 |
mozconfig_annotate '' --enable-official-branding |
232 |
fi |
233 |
|
234 |
# Finalize and report settings |
235 |
mozconfig_final |
236 |
|
237 |
# -fstack-protector breaks us |
238 |
if gcc-version ge 4 1; then |
239 |
gcc-specs-ssp && append-flags -fno-stack-protector |
240 |
else |
241 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
242 |
fi |
243 |
filter-flags -fstack-protector -fstack-protector-all |
244 |
|
245 |
#################################### |
246 |
# |
247 |
# Configure and build |
248 |
# |
249 |
#################################### |
250 |
|
251 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
252 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
253 |
econf || die |
254 |
|
255 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
256 |
# to econf, but the quotes cause configure to fail. |
257 |
sed -i -e \ |
258 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
259 |
"${S}"/config/autoconf.mk \ |
260 |
"${S}"/toolkit/content/buildconfig.html |
261 |
|
262 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
263 |
# requirements while compiling |
264 |
edit_makefiles |
265 |
|
266 |
# Should the build use multiprocessing? Not enabled by default, as it tends to break |
267 |
[ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" |
268 |
emake ${jobs} || die |
269 |
} |
270 |
|
271 |
pkg_preinst() { |
272 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
273 |
|
274 |
einfo "Removing old installs with some really ugly code. It potentially" |
275 |
einfo "eliminates any problems during the install, however suggestions to" |
276 |
einfo "replace this are highly welcome. Send comments and suggestions to" |
277 |
einfo "mozilla@g.o." |
278 |
rm -rf "${ROOT}"${MOZILLA_FIVE_HOME} |
279 |
} |
280 |
|
281 |
src_install() { |
282 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
283 |
|
284 |
emake DESTDIR="${D}" install || die "emake install failed" |
285 |
rm "${D}"/usr/bin/firefox |
286 |
|
287 |
linguas |
288 |
for X in ${linguas}; do |
289 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_P}-${X}" |
290 |
done |
291 |
|
292 |
local LANG=${linguas%% *} |
293 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
294 |
elog "Setting default locale to ${LANG}" |
295 |
dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \ |
296 |
${MOZILLA_FIVE_HOME}/defaults/preferences/firefox.js \ |
297 |
${MOZILLA_FIVE_HOME}/defaults/preferences/firefox-l10n.js || \ |
298 |
die "sed failed to change locale" |
299 |
fi |
300 |
|
301 |
# Install icon and .desktop for menu entry |
302 |
if ! use bindist; then |
303 |
newicon "${S}"/other-licenses/branding/firefox/content/icon48.png firefox-icon.png |
304 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \ |
305 |
mozilla-firefox-3.0.desktop |
306 |
else |
307 |
newicon "${S}"/browser/base/branding/firefox/content/icon48.png firefox-icon-unbranded.png |
308 |
newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5-unbranded.desktop \ |
309 |
mozilla-firefox-3.0.desktop |
310 |
fi |
311 |
|
312 |
dodir ${MOZILLA_FIVE_HOME}/defaults/preferences |
313 |
cp "${FILESDIR}"/gentoo-default-prefs.js "${D}"${MOZILLA_FIVE_HOME}/defaults/preferences/all-gentoo.js |
314 |
|
315 |
if use xulrunner; then |
316 |
PKG_CONFIG=`which pkg-config` |
317 |
X_DATE=`date +%Y%m%d` |
318 |
XULRUNNER_VERSION=`${PKG_CONFIG} --modversion libxul` |
319 |
|
320 |
#set the application.ini |
321 |
sed -i -e "s|BuildID=.*$|BuildID=${X_DATE}GentooMozillaFirefox|" "${D}"${MOZILLA_FIVE_HOME}/application.ini |
322 |
sed -i -e "s|MinVersion=.*$|MinVersion=${XULRUNNER_VERSION}|" "${D}"${MOZILLA_FIVE_HOME}/application.ini |
323 |
sed -i -e "s|MaxVersion=.*$|MaxVersion=${XULRUNNER_VERSION}|" "${D}"${MOZILLA_FIVE_HOME}/application.ini |
324 |
# Create /usr/bin/firefox |
325 |
make_wrapper firefox "/usr/bin/xulrunner-1.9 ${MOZILLA_FIVE_HOME}/application.ini" |
326 |
else |
327 |
# Create /usr/bin/firefox |
328 |
make_wrapper firefox "${MOZILLA_FIVE_HOME}/firefox" |
329 |
fi |
330 |
} |
331 |
|
332 |
pkg_postinst() { |
333 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
334 |
|
335 |
ewarn "All the packages built against ${PN} won't compile," |
336 |
ewarn "since they should be built against net-libs/xulrunner," |
337 |
ewarn "therefore you should check if your package builds against" |
338 |
ewarn "xulrunner and if it doesn't, file a bug, thanks." |
339 |
|
340 |
# Update mimedb for the new .desktop file |
341 |
fdo-mime_desktop_database_update |
342 |
} |
343 |
|
344 |
|
345 |
|
346 |
-- |
347 |
gentoo-commits@l.g.o mailing list |