Gentoo Archives: gentoo-commits

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