1 |
jer 07/11/18 18:06:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-9.50_beta2_p1652.ebuild |
5 |
opera-9.50_beta2_p1669.ebuild |
6 |
opera-9.50_beta2_p1662.ebuild |
7 |
Removed: opera-9.50_beta2.ebuild opera-9.50_beta4.ebuild |
8 |
opera-9.50_beta3.ebuild |
9 |
Log: |
10 |
Fix versioning scheme to match beta numbering vs build numbering. |
11 |
(Portage version: 2.1.3.19) |
12 |
|
13 |
Revision Changes Path |
14 |
1.174 www-client/opera/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.174&view=markup |
17 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.174&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.173&r2=1.174 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
23 |
retrieving revision 1.173 |
24 |
retrieving revision 1.174 |
25 |
diff -u -r1.173 -r1.174 |
26 |
--- ChangeLog 16 Nov 2007 18:25:20 -0000 1.173 |
27 |
+++ ChangeLog 18 Nov 2007 18:06:13 -0000 1.174 |
28 |
@@ -1,6 +1,16 @@ |
29 |
# ChangeLog for www-client/opera |
30 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.173 2007/11/16 18:25:20 jer Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.174 2007/11/18 18:06:13 jer Exp $ |
33 |
+ |
34 |
+*opera-9.50_beta2_p1669 (18 Nov 2007) |
35 |
+*opera-9.50_beta2_p1662 (18 Nov 2007) |
36 |
+*opera-9.50_beta2_p1652 (18 Nov 2007) |
37 |
+ |
38 |
+ 18 Nov 2007; Jeroen Roovers <jer@g.o> -opera-9.50_beta2.ebuild, |
39 |
+ -opera-9.50_beta3.ebuild, -opera-9.50_beta4.ebuild, |
40 |
+ +opera-9.50_beta2_p1652.ebuild, +opera-9.50_beta2_p1662.ebuild, |
41 |
+ +opera-9.50_beta2_p1669.ebuild: |
42 |
+ Fix versioning scheme to match beta numbering vs build numbering. |
43 |
|
44 |
*opera-9.50_beta4 (16 Nov 2007) |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
1.1 www-client/opera/opera-9.50_beta2_p1652.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_beta2_p1652.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_beta2_p1652.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: opera-9.50_beta2_p1652.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2007 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.50_beta2_p1652.ebuild,v 1.1 2007/11/18 18:06:13 jer Exp $ |
59 |
|
60 |
GCONF_DEBUG="no" |
61 |
|
62 |
inherit eutils gnome2 |
63 |
|
64 |
DESCRIPTION="Opera web browser" |
65 |
HOMEPAGE="http://www.opera.com/" |
66 |
|
67 |
SLOT="0" |
68 |
LICENSE="OPERA-9.0" |
69 |
KEYWORDS="~ppc ~x86 ~x86-fbsd" |
70 |
|
71 |
IUSE="qt-static spell gnome elibc_FreeBSD" |
72 |
RESTRICT="strip mirror" |
73 |
|
74 |
O_LNG="" |
75 |
O_SUFF="1652" |
76 |
O_VER="9.50-20071102" |
77 |
|
78 |
O_URI="http://snapshot.opera.com/unix/snapshot-${O_SUFF}/" |
79 |
|
80 |
SRC_URI=" |
81 |
ppc? ( ${O_URI}ppc-linux/${PN}-${O_VER}.6-shared-qt.ppc${O_LNG}-${O_SUFF}.tar.bz2 ) |
82 |
x86? ( qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.10-static-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) |
83 |
!qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.6-shared-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) ) |
84 |
x86-fbsd? ( qt-static? ( ${O_URI}intel-freebsd/${PN}-${O_VER}.1-static-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) |
85 |
!qt-static? ( ${O_URI}intel-freebsd/${PN}-${O_VER}.4-shared-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) ) |
86 |
" |
87 |
|
88 |
DEPEND=">=sys-apps/sed-4" |
89 |
|
90 |
RDEPEND="media-libs/libexif |
91 |
media-libs/jpeg |
92 |
>=media-libs/fontconfig-2.1.94-r1 |
93 |
x11-libs/libXrandr |
94 |
x11-libs/libXp |
95 |
x11-libs/libXmu |
96 |
x11-libs/libXi |
97 |
x11-libs/libXft |
98 |
x11-libs/libXext |
99 |
x11-libs/libXcursor |
100 |
x11-libs/libX11 |
101 |
x11-libs/libSM |
102 |
x11-libs/libICE |
103 |
!qt-static? ( =x11-libs/qt-3* ) |
104 |
ppc? ( =x11-libs/qt-3* ) |
105 |
spell? ( app-text/aspell ) |
106 |
x86-fbsd? ( =virtual/libstdc++-3* )" |
107 |
|
108 |
S="${WORKDIR}/${A/.tar.bz2/}" |
109 |
|
110 |
src_unpack() { |
111 |
unpack ${A} |
112 |
cd "${S}" |
113 |
|
114 |
epatch "${FILESDIR}/${PN}-9.00-install.patch" |
115 |
|
116 |
# bug #181300: |
117 |
use elibc_FreeBSD || epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" |
118 |
use elibc_FreeBSD && epatch "${FILESDIR}/${PN}-9.50-pluginpath-fbsd.patch" |
119 |
|
120 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
121 |
-e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ |
122 |
-e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ |
123 |
-e "s:/usr/share/icons:${D}/usr/share/icons:g" \ |
124 |
-e "s:/etc/X11:${D}/etc/X11:g" \ |
125 |
-e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \ |
126 |
-e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \ |
127 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
128 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
129 |
-e 's:read str_answer:return 0:' \ |
130 |
-e "s:/opt/kde:${D}/usr/kde:" \ |
131 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
132 |
install.sh || die "sed failed" |
133 |
|
134 |
} |
135 |
|
136 |
src_compile() { |
137 |
# This workaround is sadly needed because gnome2.eclass doesn't check |
138 |
# whether a configure script or Makefile exists. |
139 |
true |
140 |
} |
141 |
|
142 |
src_install() { |
143 |
# Prepare installation directories for Opera's installer script. |
144 |
dodir /etc |
145 |
|
146 |
# Opera's native installer. |
147 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
148 |
|
149 |
einfo "It is safe to ignore warnings about failed checksums" |
150 |
einfo "and about files that would be ignored ..." |
151 |
einfo "Completing the installation where install.sh abandoned us ..." |
152 |
|
153 |
# java workaround |
154 |
sed -i -e 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' "${D}"/opt/opera/bin/opera |
155 |
|
156 |
dosed /opt/opera/bin/opera |
157 |
dosed /opt/opera/share/opera/java/opera.policy |
158 |
|
159 |
# Install the icons |
160 |
insinto /usr/share/pixmaps |
161 |
doins usr/share/pixmaps/opera.xpm |
162 |
|
163 |
local res |
164 |
for res in 16x16 22x22 32x32 48x48 ; do |
165 |
insinto /usr/share/icons/hicolor/${res}/apps |
166 |
doins usr/share/icons/hicolor/${res}/apps/opera.png |
167 |
done |
168 |
|
169 |
# Install the menu entry |
170 |
insinto /usr/share/applications |
171 |
doins "${FILESDIR}"/opera.desktop |
172 |
|
173 |
# Install a symlink /usr/bin/opera |
174 |
dodir /usr/bin |
175 |
dosym /opt/opera/bin/opera /usr/bin/opera |
176 |
|
177 |
# fix plugin path |
178 |
echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc |
179 |
|
180 |
# enable spellcheck |
181 |
if use spell; then |
182 |
if use qt-static; then |
183 |
DIR=$O_VER.1 |
184 |
else |
185 |
use sparc && DIR=$O_VER.2 || DIR=$O_VER.5 |
186 |
fi |
187 |
echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini |
188 |
fi |
189 |
|
190 |
dodir /etc/revdep-rebuild |
191 |
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera |
192 |
|
193 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
194 |
if use elibc_FreeBSD; then |
195 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
196 |
while read i; do |
197 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
198 |
then |
199 |
export SANITY_CHECK_LIBZ_FAILED=1 |
200 |
break |
201 |
fi |
202 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
203 |
done |
204 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
205 |
fi |
206 |
|
207 |
# symlink to libflash-player.so: |
208 |
dosym /opt/netscape/plugins/libflashplayer.so \ |
209 |
/opt/opera/lib/opera/plugins/libflashplayer.so |
210 |
|
211 |
# Add the Opera man dir to MANPATH: |
212 |
insinto /etc/env.d |
213 |
echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera |
214 |
} |
215 |
|
216 |
pkg_postinst() { |
217 |
use gnome && gnome2_pkg_postinst |
218 |
|
219 |
elog "For localized language files take a look at:" |
220 |
elog " http://www.opera.com/download/languagefiles/index.dml" |
221 |
elog |
222 |
elog "To use the spellchecker (USE=spell) for non-English simply do" |
223 |
elog "$ emerge app-dicts/aspell-[your language]." |
224 |
|
225 |
if use elibc_FreeBSD; then |
226 |
elog |
227 |
elog "To improve shared memory usage please set:" |
228 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
229 |
fi |
230 |
|
231 |
elog "The Opera betas have several issues with plugins, notably" |
232 |
elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162" |
233 |
} |
234 |
|
235 |
pkg_postrm() { |
236 |
use gnome && gnome2_pkg_postrm |
237 |
} |
238 |
|
239 |
|
240 |
|
241 |
1.1 www-client/opera/opera-9.50_beta2_p1669.ebuild |
242 |
|
243 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_beta2_p1669.ebuild?rev=1.1&view=markup |
244 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_beta2_p1669.ebuild?rev=1.1&content-type=text/plain |
245 |
|
246 |
Index: opera-9.50_beta2_p1669.ebuild |
247 |
=================================================================== |
248 |
# Copyright 1999-2007 Gentoo Foundation |
249 |
# Distributed under the terms of the GNU General Public License v2 |
250 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.50_beta2_p1669.ebuild,v 1.1 2007/11/18 18:06:13 jer Exp $ |
251 |
|
252 |
GCONF_DEBUG="no" |
253 |
|
254 |
inherit eutils gnome2 |
255 |
|
256 |
DESCRIPTION="Opera web browser" |
257 |
HOMEPAGE="http://www.opera.com/" |
258 |
|
259 |
SLOT="0" |
260 |
LICENSE="OPERA-9.0" |
261 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
262 |
|
263 |
IUSE="qt-static spell gnome elibc_FreeBSD" |
264 |
RESTRICT="strip mirror" |
265 |
|
266 |
O_LNG="" |
267 |
O_SUFF="1669" |
268 |
O_VER="9.50-20071115" |
269 |
|
270 |
O_URI="http://snapshot.opera.com/unix/snapshot-${O_SUFF}/" |
271 |
|
272 |
SRC_URI=" |
273 |
amd64? ( ${O_URI}x86_64-linux/${PN}-${O_VER}.2-shared-qt.x86_64${O_LNG}-${O_SUFF}.tar.bz2 ) |
274 |
ppc? ( ${O_URI}ppc-linux/${PN}-${O_VER}.6-shared-qt.ppc${O_LNG}-${O_SUFF}.tar.bz2 ) |
275 |
x86? ( qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.10-static-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) |
276 |
!qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.6-shared-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) ) |
277 |
x86-fbsd? ( qt-static? ( ${O_URI}intel-freebsd/${PN}-${O_VER}.5-static-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) |
278 |
!qt-static? ( ${O_URI}intel-freebsd/${PN}-${O_VER}.4-shared-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) ) |
279 |
" |
280 |
|
281 |
DEPEND=">=sys-apps/sed-4" |
282 |
|
283 |
RDEPEND="media-libs/libexif |
284 |
media-libs/jpeg |
285 |
>=media-libs/fontconfig-2.1.94-r1 |
286 |
x11-libs/libXrandr |
287 |
x11-libs/libXp |
288 |
x11-libs/libXmu |
289 |
x11-libs/libXi |
290 |
x11-libs/libXft |
291 |
x11-libs/libXext |
292 |
x11-libs/libXcursor |
293 |
x11-libs/libX11 |
294 |
x11-libs/libSM |
295 |
x11-libs/libICE |
296 |
!qt-static? ( =x11-libs/qt-3* ) |
297 |
amd64? ( =x11-libs/qt-3* ) |
298 |
ppc? ( =x11-libs/qt-3* ) |
299 |
spell? ( app-text/aspell ) |
300 |
x86-fbsd? ( =virtual/libstdc++-3* )" |
301 |
|
302 |
S="${WORKDIR}/${A/.tar.bz2/}" |
303 |
|
304 |
src_unpack() { |
305 |
unpack ${A} |
306 |
cd "${S}" |
307 |
|
308 |
epatch "${FILESDIR}/${PN}-9.00-install.patch" |
309 |
|
310 |
# bug #181300: |
311 |
use elibc_FreeBSD || epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" |
312 |
use elibc_FreeBSD && epatch "${FILESDIR}/${PN}-9.50-pluginpath-fbsd.patch" |
313 |
|
314 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
315 |
-e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ |
316 |
-e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ |
317 |
-e "s:/usr/share/icons:${D}/usr/share/icons:g" \ |
318 |
-e "s:/etc/X11:${D}/etc/X11:g" \ |
319 |
-e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \ |
320 |
-e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \ |
321 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
322 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
323 |
-e 's:read str_answer:return 0:' \ |
324 |
-e "s:/opt/kde:${D}/usr/kde:" \ |
325 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
326 |
install.sh || die "sed failed" |
327 |
|
328 |
} |
329 |
|
330 |
src_compile() { |
331 |
# This workaround is sadly needed because gnome2.eclass doesn't check |
332 |
# whether a configure script or Makefile exists. |
333 |
true |
334 |
} |
335 |
|
336 |
src_install() { |
337 |
# Prepare installation directories for Opera's installer script. |
338 |
dodir /etc |
339 |
|
340 |
# Opera's native installer. |
341 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
342 |
|
343 |
einfo "It is safe to ignore warnings about failed checksums" |
344 |
einfo "and about files that would be ignored ..." |
345 |
einfo "Completing the installation where install.sh abandoned us ..." |
346 |
|
347 |
# java workaround |
348 |
sed -i -e 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' "${D}"/opt/opera/bin/opera |
349 |
|
350 |
dosed /opt/opera/bin/opera |
351 |
dosed /opt/opera/share/opera/java/opera.policy |
352 |
|
353 |
# Install the icons |
354 |
insinto /usr/share/pixmaps |
355 |
doins usr/share/pixmaps/opera.xpm |
356 |
|
357 |
local res |
358 |
for res in 16x16 22x22 32x32 48x48 ; do |
359 |
insinto /usr/share/icons/hicolor/${res}/apps |
360 |
doins usr/share/icons/hicolor/${res}/apps/opera.png |
361 |
done |
362 |
|
363 |
# Install the menu entry |
364 |
insinto /usr/share/applications |
365 |
doins "${FILESDIR}"/opera.desktop |
366 |
|
367 |
# Install a symlink /usr/bin/opera |
368 |
dodir /usr/bin |
369 |
dosym /opt/opera/bin/opera /usr/bin/opera |
370 |
|
371 |
# fix plugin path |
372 |
echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc |
373 |
|
374 |
# enable spellcheck |
375 |
if use spell; then |
376 |
if use qt-static; then |
377 |
DIR=$O_VER.1 |
378 |
else |
379 |
use sparc && DIR=$O_VER.2 || DIR=$O_VER.5 |
380 |
fi |
381 |
echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini |
382 |
fi |
383 |
|
384 |
dodir /etc/revdep-rebuild |
385 |
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera |
386 |
|
387 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
388 |
if use elibc_FreeBSD; then |
389 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
390 |
while read i; do |
391 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
392 |
then |
393 |
export SANITY_CHECK_LIBZ_FAILED=1 |
394 |
break |
395 |
fi |
396 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
397 |
done |
398 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
399 |
fi |
400 |
|
401 |
# symlink to libflash-player.so: |
402 |
dosym /opt/netscape/plugins/libflashplayer.so \ |
403 |
/opt/opera/lib/opera/plugins/libflashplayer.so |
404 |
|
405 |
# Add the Opera man dir to MANPATH: |
406 |
insinto /etc/env.d |
407 |
echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera |
408 |
} |
409 |
|
410 |
pkg_postinst() { |
411 |
use gnome && gnome2_pkg_postinst |
412 |
|
413 |
elog "For localized language files take a look at:" |
414 |
elog " http://www.opera.com/download/languagefiles/index.dml" |
415 |
elog |
416 |
elog "To use the spellchecker (USE=spell) for non-English simply do" |
417 |
elog "$ emerge app-dicts/aspell-[your language]." |
418 |
|
419 |
if use elibc_FreeBSD; then |
420 |
elog |
421 |
elog "To improve shared memory usage please set:" |
422 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
423 |
fi |
424 |
|
425 |
elog "The Opera betas have several issues with plugins, notably" |
426 |
elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162" |
427 |
} |
428 |
|
429 |
pkg_postrm() { |
430 |
use gnome && gnome2_pkg_postrm |
431 |
} |
432 |
|
433 |
|
434 |
|
435 |
1.1 www-client/opera/opera-9.50_beta2_p1662.ebuild |
436 |
|
437 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_beta2_p1662.ebuild?rev=1.1&view=markup |
438 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_beta2_p1662.ebuild?rev=1.1&content-type=text/plain |
439 |
|
440 |
Index: opera-9.50_beta2_p1662.ebuild |
441 |
=================================================================== |
442 |
# Copyright 1999-2007 Gentoo Foundation |
443 |
# Distributed under the terms of the GNU General Public License v2 |
444 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.50_beta2_p1662.ebuild,v 1.1 2007/11/18 18:06:13 jer Exp $ |
445 |
|
446 |
GCONF_DEBUG="no" |
447 |
|
448 |
inherit eutils gnome2 |
449 |
|
450 |
DESCRIPTION="Opera web browser" |
451 |
HOMEPAGE="http://www.opera.com/" |
452 |
|
453 |
SLOT="0" |
454 |
LICENSE="OPERA-9.0" |
455 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
456 |
|
457 |
IUSE="qt-static spell gnome elibc_FreeBSD" |
458 |
RESTRICT="strip mirror" |
459 |
|
460 |
O_LNG="" |
461 |
O_SUFF="1662" |
462 |
O_VER="9.50-20071109" |
463 |
|
464 |
O_URI="http://snapshot.opera.com/unix/snapshot-${O_SUFF}/" |
465 |
|
466 |
SRC_URI=" |
467 |
amd64? ( ${O_URI}x86_64-linux/${PN}-${O_VER}.2-shared-qt.x86_64${O_LNG}-${O_SUFF}.tar.bz2 ) |
468 |
ppc? ( ${O_URI}ppc-linux/${PN}-${O_VER}.6-shared-qt.ppc${O_LNG}-${O_SUFF}.tar.bz2 ) |
469 |
x86? ( qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.10-static-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) |
470 |
!qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.6-shared-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) ) |
471 |
x86-fbsd? ( qt-static? ( ${O_URI}intel-freebsd/${PN}-${O_VER}.5-static-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) |
472 |
!qt-static? ( ${O_URI}intel-freebsd/${PN}-${O_VER}.4-shared-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) ) |
473 |
" |
474 |
|
475 |
DEPEND=">=sys-apps/sed-4" |
476 |
|
477 |
RDEPEND="media-libs/libexif |
478 |
media-libs/jpeg |
479 |
>=media-libs/fontconfig-2.1.94-r1 |
480 |
x11-libs/libXrandr |
481 |
x11-libs/libXp |
482 |
x11-libs/libXmu |
483 |
x11-libs/libXi |
484 |
x11-libs/libXft |
485 |
x11-libs/libXext |
486 |
x11-libs/libXcursor |
487 |
x11-libs/libX11 |
488 |
x11-libs/libSM |
489 |
x11-libs/libICE |
490 |
!qt-static? ( =x11-libs/qt-3* ) |
491 |
amd64? ( =x11-libs/qt-3* ) |
492 |
ppc? ( =x11-libs/qt-3* ) |
493 |
spell? ( app-text/aspell ) |
494 |
x86-fbsd? ( =virtual/libstdc++-3* )" |
495 |
|
496 |
S="${WORKDIR}/${A/.tar.bz2/}" |
497 |
|
498 |
src_unpack() { |
499 |
unpack ${A} |
500 |
cd "${S}" |
501 |
|
502 |
epatch "${FILESDIR}/${PN}-9.00-install.patch" |
503 |
|
504 |
# bug #181300: |
505 |
use elibc_FreeBSD || epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" |
506 |
use elibc_FreeBSD && epatch "${FILESDIR}/${PN}-9.50-pluginpath-fbsd.patch" |
507 |
|
508 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
509 |
-e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ |
510 |
-e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ |
511 |
-e "s:/usr/share/icons:${D}/usr/share/icons:g" \ |
512 |
-e "s:/etc/X11:${D}/etc/X11:g" \ |
513 |
-e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \ |
514 |
-e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \ |
515 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
516 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
517 |
-e 's:read str_answer:return 0:' \ |
518 |
-e "s:/opt/kde:${D}/usr/kde:" \ |
519 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
520 |
install.sh || die "sed failed" |
521 |
|
522 |
} |
523 |
|
524 |
src_compile() { |
525 |
# This workaround is sadly needed because gnome2.eclass doesn't check |
526 |
# whether a configure script or Makefile exists. |
527 |
true |
528 |
} |
529 |
|
530 |
src_install() { |
531 |
# Prepare installation directories for Opera's installer script. |
532 |
dodir /etc |
533 |
|
534 |
# Opera's native installer. |
535 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
536 |
|
537 |
einfo "It is safe to ignore warnings about failed checksums" |
538 |
einfo "and about files that would be ignored ..." |
539 |
einfo "Completing the installation where install.sh abandoned us ..." |
540 |
|
541 |
# java workaround |
542 |
sed -i -e 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' "${D}"/opt/opera/bin/opera |
543 |
|
544 |
dosed /opt/opera/bin/opera |
545 |
dosed /opt/opera/share/opera/java/opera.policy |
546 |
|
547 |
# Install the icons |
548 |
insinto /usr/share/pixmaps |
549 |
doins usr/share/pixmaps/opera.xpm |
550 |
|
551 |
local res |
552 |
for res in 16x16 22x22 32x32 48x48 ; do |
553 |
insinto /usr/share/icons/hicolor/${res}/apps |
554 |
doins usr/share/icons/hicolor/${res}/apps/opera.png |
555 |
done |
556 |
|
557 |
# Install the menu entry |
558 |
insinto /usr/share/applications |
559 |
doins "${FILESDIR}"/opera.desktop |
560 |
|
561 |
# Install a symlink /usr/bin/opera |
562 |
dodir /usr/bin |
563 |
dosym /opt/opera/bin/opera /usr/bin/opera |
564 |
|
565 |
# fix plugin path |
566 |
echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc |
567 |
|
568 |
# enable spellcheck |
569 |
if use spell; then |
570 |
if use qt-static; then |
571 |
DIR=$O_VER.1 |
572 |
else |
573 |
use sparc && DIR=$O_VER.2 || DIR=$O_VER.5 |
574 |
fi |
575 |
echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini |
576 |
fi |
577 |
|
578 |
dodir /etc/revdep-rebuild |
579 |
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera |
580 |
|
581 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
582 |
if use elibc_FreeBSD; then |
583 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
584 |
while read i; do |
585 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
586 |
then |
587 |
export SANITY_CHECK_LIBZ_FAILED=1 |
588 |
break |
589 |
fi |
590 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
591 |
done |
592 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
593 |
fi |
594 |
|
595 |
# symlink to libflash-player.so: |
596 |
dosym /opt/netscape/plugins/libflashplayer.so \ |
597 |
/opt/opera/lib/opera/plugins/libflashplayer.so |
598 |
|
599 |
# Add the Opera man dir to MANPATH: |
600 |
insinto /etc/env.d |
601 |
echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera |
602 |
} |
603 |
|
604 |
pkg_postinst() { |
605 |
use gnome && gnome2_pkg_postinst |
606 |
|
607 |
elog "For localized language files take a look at:" |
608 |
elog " http://www.opera.com/download/languagefiles/index.dml" |
609 |
elog |
610 |
elog "To use the spellchecker (USE=spell) for non-English simply do" |
611 |
elog "$ emerge app-dicts/aspell-[your language]." |
612 |
|
613 |
if use elibc_FreeBSD; then |
614 |
elog |
615 |
elog "To improve shared memory usage please set:" |
616 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
617 |
fi |
618 |
|
619 |
elog "The Opera betas have several issues with plugins, notably" |
620 |
elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162" |
621 |
} |
622 |
|
623 |
pkg_postrm() { |
624 |
use gnome && gnome2_pkg_postrm |
625 |
} |
626 |
|
627 |
|
628 |
|
629 |
-- |
630 |
gentoo-commits@g.o mailing list |