1 |
jdhore 12/10/29 16:02:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: firefox-bin-16.0.2.ebuild |
5 |
Removed: firefox-bin-16.0.1.ebuild |
6 |
Log: |
7 |
non-ESR version bump |
8 |
|
9 |
(Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key 23E9E900) |
10 |
|
11 |
Revision Changes Path |
12 |
1.122 www-client/firefox-bin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.122&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.122&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?r1=1.121&r2=1.122 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v |
21 |
retrieving revision 1.121 |
22 |
retrieving revision 1.122 |
23 |
diff -u -r1.121 -r1.122 |
24 |
--- ChangeLog 23 Oct 2012 15:56:53 -0000 1.121 |
25 |
+++ ChangeLog 29 Oct 2012 16:02:54 -0000 1.122 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-client/firefox-bin |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.121 2012/10/23 15:56:53 ago Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.122 2012/10/29 16:02:54 jdhore Exp $ |
31 |
+ |
32 |
+*firefox-bin-16.0.2 (29 Oct 2012) |
33 |
+ |
34 |
+ 29 Oct 2012; Jeff Horelick <jdhore@g.o> +firefox-bin-16.0.2.ebuild, |
35 |
+ -firefox-bin-16.0.1.ebuild: |
36 |
+ non-ESR version bump |
37 |
|
38 |
23 Oct 2012; <ago@g.o> firefox-bin-10.0.9.ebuild: |
39 |
Stable for amd64, wrt bug #437780 |
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/firefox-bin/firefox-bin-16.0.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-16.0.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-16.0.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: firefox-bin-16.0.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-16.0.2.ebuild,v 1.1 2012/10/29 16:02:54 jdhore Exp $ |
53 |
|
54 |
EAPI="4" |
55 |
|
56 |
# Can be updated using scripts/get_langs.sh from mozilla overlay |
57 |
MOZ_LANGS=(af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en |
58 |
en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl |
59 |
gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO |
60 |
nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK |
61 |
te th tr uk vi zh-CN zh-TW zu) |
62 |
|
63 |
# Convert the ebuild version to the upstream mozilla version, used by mozlinguas |
64 |
MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI |
65 |
MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI |
66 |
MOZ_PN="${PN/-bin}" |
67 |
MOZ_P="${MOZ_PN}-${MOZ_PV}" |
68 |
|
69 |
# Upstream ftp release URI that's used by mozlinguas.eclass |
70 |
# We don't use the http mirror because it deletes old tarballs. |
71 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" |
72 |
|
73 |
inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins |
74 |
|
75 |
DESCRIPTION="Firefox Web Browser" |
76 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases" |
77 |
SRC_URI="${SRC_URI} |
78 |
amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
79 |
x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" |
80 |
HOMEPAGE="http://www.mozilla.com/firefox" |
81 |
RESTRICT="strip mirror binchecks" |
82 |
|
83 |
KEYWORDS="-* ~amd64 ~x86" |
84 |
SLOT="0" |
85 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
86 |
IUSE="startup-notification" |
87 |
|
88 |
DEPEND="app-arch/unzip" |
89 |
RDEPEND="dev-libs/dbus-glib |
90 |
virtual/freedesktop-icon-theme |
91 |
x11-libs/libXrender |
92 |
x11-libs/libXt |
93 |
x11-libs/libXmu |
94 |
|
95 |
>=x11-libs/gtk+-2.2:2 |
96 |
>=media-libs/alsa-lib-1.0.16 |
97 |
" |
98 |
|
99 |
S="${WORKDIR}/${MOZ_PN}" |
100 |
|
101 |
src_unpack() { |
102 |
unpack ${A} |
103 |
|
104 |
# Unpack language packs |
105 |
mozlinguas_src_unpack |
106 |
} |
107 |
|
108 |
src_install() { |
109 |
declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN} |
110 |
|
111 |
# Install icon and .desktop for menu entry |
112 |
newicon "${S}"/chrome/icons/default/default48.png ${PN}-icon.png |
113 |
domenu "${FILESDIR}"/${PN}.desktop |
114 |
|
115 |
# Add StartupNotify=true bug 237317 |
116 |
if use startup-notification; then |
117 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop |
118 |
fi |
119 |
|
120 |
# Install firefox in /opt |
121 |
dodir ${MOZILLA_FIVE_HOME%/*} |
122 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die |
123 |
|
124 |
# Fix prefs that make no sense for a system-wide install |
125 |
insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ |
126 |
doins "${FILESDIR}"/${PN}-prefs.js || die |
127 |
|
128 |
# Install language packs |
129 |
mozlinguas_src_install |
130 |
|
131 |
local LANG=${linguas%% *} |
132 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
133 |
elog "Setting default locale to ${LANG}" |
134 |
echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ |
135 |
>> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ |
136 |
die "sed failed to change locale" |
137 |
fi |
138 |
|
139 |
# Create /usr/bin/firefox-bin |
140 |
dodir /usr/bin/ |
141 |
cat <<-EOF >"${D}"/usr/bin/${PN} |
142 |
#!/bin/sh |
143 |
unset LD_PRELOAD |
144 |
LD_LIBRARY_PATH="/opt/firefox/" |
145 |
GTK_PATH=/usr/lib/gtk-2.0/ |
146 |
exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" |
147 |
EOF |
148 |
fperms 0755 /usr/bin/${PN} |
149 |
|
150 |
# revdep-rebuild entry |
151 |
insinto /etc/revdep-rebuild |
152 |
doins "${FILESDIR}"/10${PN} || die |
153 |
|
154 |
# Plugins dir |
155 |
share_plugins_dir |
156 |
|
157 |
# Required in order to use plugins and even run firefox on hardened. |
158 |
pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} |
159 |
} |
160 |
|
161 |
pkg_preinst() { |
162 |
gnome2_icon_savelist |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ |
167 |
|| ! has_version 'net-misc/curl'; then |
168 |
einfo |
169 |
einfo "For using the crashreporter, you need gnome-base/gconf," |
170 |
einfo "gnome-base/orbit and net-misc/curl emerged." |
171 |
einfo |
172 |
fi |
173 |
# Drop requirement of curl not built with nss as it's not necessary anymore |
174 |
#if has_version 'net-misc/curl[nss]'; then |
175 |
# einfo |
176 |
# einfo "Crashreporter won't be able to send reports" |
177 |
# einfo "if you have curl emerged with the nss USE-flag" |
178 |
# einfo |
179 |
#fi |
180 |
|
181 |
# Update mimedb for the new .desktop file |
182 |
fdo-mime_desktop_database_update |
183 |
gnome2_icon_cache_update |
184 |
} |
185 |
|
186 |
pkg_postrm() { |
187 |
gnome2_icon_cache_update |
188 |
} |