1 |
jer 11/03/29 14:03:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-11.10.2067.ebuild |
5 |
Removed: opera-11.10.2053.ebuild opera-11.10.2064.ebuild |
6 |
Log: |
7 |
http://my.opera.com/desktopteam/blog/2011/03/29/more-crash-fixes |
8 |
|
9 |
(Portage version: 2.2.0_alpha29/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.614 www-client/opera/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.614&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.614&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?r1=1.613&r2=1.614 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
21 |
retrieving revision 1.613 |
22 |
retrieving revision 1.614 |
23 |
diff -u -r1.613 -r1.614 |
24 |
--- ChangeLog 25 Mar 2011 17:25:54 -0000 1.613 |
25 |
+++ ChangeLog 29 Mar 2011 14:03:55 -0000 1.614 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-client/opera |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.613 2011/03/25 17:25:54 jer Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.614 2011/03/29 14:03:55 jer Exp $ |
31 |
+ |
32 |
+*opera-11.10.2067 (29 Mar 2011) |
33 |
+ |
34 |
+ 29 Mar 2011; Jeroen Roovers <jer@g.o> -opera-11.10.2053.ebuild, |
35 |
+ -opera-11.10.2064.ebuild, +opera-11.10.2067.ebuild: |
36 |
+ http://my.opera.com/desktopteam/blog/2011/03/29/more-crash-fixes |
37 |
|
38 |
*opera-11.10.2064 (25 Mar 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/opera/opera-11.10.2067.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-11.10.2067.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-11.10.2067.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: opera-11.10.2067.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-11.10.2067.ebuild,v 1.1 2011/03/29 14:03:55 jer Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
|
56 |
inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator |
57 |
|
58 |
DESCRIPTION="A fast and secure web browser and Internet suite" |
59 |
HOMEPAGE="http://www.opera.com/" |
60 |
|
61 |
SLOT="0" |
62 |
LICENSE="OPERA-11 LGPL-2 LGPL-3" |
63 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
64 |
IUSE="elibc_FreeBSD gtk kde +gstreamer" |
65 |
|
66 |
RESTRICT="test" |
67 |
|
68 |
# http://snapshot.opera.com/unix/minor_11.01-1160/opera-11.01-1160.i386.linux.tar.xz |
69 |
O_V="$(get_version_component_range 1-2)" # Major version, i.e. 11.00 |
70 |
O_B="$(get_version_component_range 3)" # Build version, i.e. 1156 |
71 |
|
72 |
O_D="1337_${O_V}-${O_B}" |
73 |
O_P="${PN}-${O_V}-${O_B}" |
74 |
O_U="http://snapshot.opera.com/unix/" |
75 |
|
76 |
SRC_URI=" |
77 |
amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz ) |
78 |
x86? ( ${O_U}${O_D}/${O_P}.i386.linux.tar.xz ) |
79 |
x86-fbsd? ( ${O_U}${O_D}/${O_P}.i386.freebsd.tar.xz ) |
80 |
" |
81 |
|
82 |
OPREFIX="/usr/$(get_libdir)" |
83 |
|
84 |
QA_DT_HASH="${OPREFIX}/${PN}/.*" |
85 |
QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" |
86 |
|
87 |
O_LINGUAS=" |
88 |
be bg cs da de el en-GB es-ES es-LA et fi fr fr-CA fy gd hi hr hu id it ja |
89 |
ka ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk vi zh-CN zh-TW |
90 |
" |
91 |
|
92 |
for O_LINGUA in ${O_LINGUAS}; do |
93 |
IUSE="${IUSE} linguas_${O_LINGUA/-/_}" |
94 |
done |
95 |
|
96 |
DEPEND=" |
97 |
>=sys-apps/sed-4 |
98 |
app-arch/xz-utils |
99 |
" |
100 |
GTKRDEPEND=" |
101 |
dev-libs/atk |
102 |
dev-libs/glib:2 |
103 |
x11-libs/cairo |
104 |
x11-libs/gdk-pixbuf |
105 |
x11-libs/gtk+:2 |
106 |
x11-libs/pango |
107 |
x11-libs/pixman |
108 |
" |
109 |
KDERDEPEND=" |
110 |
kde-base/kdelibs |
111 |
x11-libs/qt-core |
112 |
x11-libs/qt-gui |
113 |
" |
114 |
GSTRDEPEND=" |
115 |
dev-libs/glib |
116 |
dev-libs/libxml2 |
117 |
media-plugins/gst-plugins-meta |
118 |
media-libs/gstreamer |
119 |
" |
120 |
RDEPEND=" |
121 |
media-libs/fontconfig |
122 |
media-libs/freetype |
123 |
sys-apps/util-linux |
124 |
sys-libs/zlib |
125 |
virtual/opengl |
126 |
x11-libs/libICE |
127 |
x11-libs/libSM |
128 |
x11-libs/libX11 |
129 |
x11-libs/libXext |
130 |
x11-libs/libXft |
131 |
x11-libs/libXrender |
132 |
gtk? ( ${GTKRDEPEND} ) |
133 |
kde? ( ${KDERDEPEND} ) |
134 |
gstreamer? ( ${GSTRDEPEND} ) |
135 |
" |
136 |
|
137 |
pkg_setup() { |
138 |
echo -e \ |
139 |
" ${GOOD}****************************************************${NORMAL}" |
140 |
elog "If you seek support, please file a bug report at" |
141 |
elog "https://bugs.gentoo.org and post the output of" |
142 |
elog " \`emerge --info =${CATEGORY}/${P}'" |
143 |
echo -e \ |
144 |
" ${GOOD}****************************************************${NORMAL}" |
145 |
} |
146 |
|
147 |
src_unpack() { |
148 |
unpack ${A} |
149 |
mv -v ${PN}* "${S}" || die |
150 |
} |
151 |
|
152 |
src_prepare() { |
153 |
# Remove unwanted linguas |
154 |
LNGDIR="share/${PN}/locale" |
155 |
einfo "Keeping these locales (linguas): ${LINGUAS}." |
156 |
for LINGUA in ${O_LINGUAS}; do |
157 |
if ! use linguas_${LINGUA/-/_}; then |
158 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
159 |
rm -r "${LINGUA}" |
160 |
fi |
161 |
done |
162 |
|
163 |
# Remove doc directory but keep the LICENSE under another name (bug #315473) |
164 |
mv share/doc/opera/LICENSE share/opera/defaults/license.txt |
165 |
rm -rf share/doc |
166 |
for locale in share/opera/locale/*; do |
167 |
rm -f "${locale}/license.txt" |
168 |
ln -sn /usr/share/opera/defaults/license.txt "${locale}/license.txt" \ |
169 |
|| die "ln -sn license.txt" |
170 |
done |
171 |
|
172 |
# Remove package directory |
173 |
rm -rf share/opera/package |
174 |
|
175 |
# Leave libopera*.so only if the user chooses |
176 |
if ! use gtk; then |
177 |
rm lib/opera/liboperagtk.so || die "rm liboperagtk.so failed" |
178 |
fi |
179 |
if ! use kde; then |
180 |
rm lib/opera/liboperakde4.so || die "rm liboperakde4.so failed" |
181 |
fi |
182 |
|
183 |
# Unzip the man pages before sedding |
184 |
gunzip share/man/man1/* || die "gunzip failed" |
185 |
|
186 |
# Replace PREFIX and SUFFIX in various files |
187 |
sed -i \ |
188 |
-e "s:@@{PREFIX}:/usr:g" \ |
189 |
-e "s:@@{SUFFIX}::g" \ |
190 |
-e "s:@@{_SUFFIX}::g" \ |
191 |
-e "s:@@{USUFFIX}::g" \ |
192 |
share/mime/packages/opera-widget.xml \ |
193 |
share/man/man1/* \ |
194 |
share/applications/opera-browser.desktop \ |
195 |
share/applications/opera-widget-manager.desktop \ |
196 |
|| die "sed failed" |
197 |
|
198 |
# Create /usr/bin/opera wrapper |
199 |
echo '#!/bin/sh' > opera |
200 |
echo 'export OPERA_DIR=/usr/share/opera' >> opera |
201 |
echo 'exec '"${OPREFIX}"'/opera/opera "$@"' >> opera |
202 |
|
203 |
# Fix libdir in defaults/pluginpath.ini |
204 |
sed -i \ |
205 |
share/opera/defaults/pluginpath.ini \ |
206 |
-e "s|/usr/lib32|${OPREFIX}|g" \ |
207 |
-e '/netscape/{s|[0-1]|2|g}' \ |
208 |
|| die "sed pluginpath.ini failed" |
209 |
|
210 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
211 |
if use elibc_FreeBSD; then |
212 |
scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \ |
213 |
while read i; do |
214 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
215 |
then |
216 |
export SANITY_CHECK_LIBZ_FAILED=1 |
217 |
break |
218 |
fi |
219 |
sed -i \ |
220 |
"$i" \ |
221 |
-e 's/libz\.so\.3/libz.so.1/g' |
222 |
done |
223 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] \ |
224 |
&& die "failed to change libz.so.3 to libz.so.1" |
225 |
fi |
226 |
} |
227 |
|
228 |
src_install() { |
229 |
# We install into usr instead of opt as Opera does not support the latter |
230 |
dodir /usr |
231 |
mv lib/ "${D}/${OPREFIX}" || die "mv lib/ failed" |
232 |
mv share/ "${D}/usr/" || die "mv share/ failed" |
233 |
|
234 |
# Install startup scripts |
235 |
dobin ${PN} ${PN}-widget-manager || die "dobin failed" |
236 |
|
237 |
# Stop revdep-rebuild from checking opera binaries |
238 |
dodir /etc/revdep-rebuild |
239 |
echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera |
240 |
|
241 |
# Set PaX markings for hardened/PaX (bug #344267) |
242 |
pax-mark m \ |
243 |
"${D}/${OPREFIX}/opera/opera" \ |
244 |
"${D}/${OPREFIX}/opera/operaplugincleaner" \ |
245 |
"${D}/${OPREFIX}/opera/operapluginwrapper" |
246 |
} |
247 |
|
248 |
pkg_preinst() { |
249 |
gnome2_icon_savelist |
250 |
} |
251 |
|
252 |
pkg_postinst() { |
253 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
254 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
255 |
elog "file chooser at /usr/share/opera/locale/, then enter the" |
256 |
elog "directory for the language you want and [Open] the .lng file." |
257 |
|
258 |
if use elibc_FreeBSD; then |
259 |
elog |
260 |
elog "To improve shared memory usage please set:" |
261 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
262 |
fi |
263 |
|
264 |
# Update desktop file database and gtk icon cache (bug #334993) |
265 |
gnome2_icon_cache_update |
266 |
fdo-mime_desktop_database_update |
267 |
} |
268 |
|
269 |
pkg_postrm() { |
270 |
# Update desktop file database and gtk icon cache (bug #334993) |
271 |
gnome2_icon_cache_update |
272 |
fdo-mime_desktop_database_update |
273 |
} |