1 |
jer 08/10/06 16:58:28 |
2 |
|
3 |
Modified: opera-9.60_pre2440.ebuild ChangeLog |
4 |
Added: opera-9.60_pre2444.ebuild |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2008/10/04/opera-9-6-rc-2>. Remove sed scripts and improve gentoo patch thanks to Pacho Ramos (bug #239365). |
7 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r7-JeR i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 www-client/opera/opera-9.60_pre2440.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.60_pre2440.ebuild?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.60_pre2440.ebuild?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.60_pre2440.ebuild?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: opera-9.60_pre2440.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.60_pre2440.ebuild,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- opera-9.60_pre2440.ebuild 2 Oct 2008 02:59:20 -0000 1.1 |
23 |
+++ opera-9.60_pre2440.ebuild 6 Oct 2008 16:58:28 -0000 1.2 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2008 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.60_pre2440.ebuild,v 1.1 2008/10/02 02:59:20 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.60_pre2440.ebuild,v 1.2 2008/10/06 16:58:28 jer Exp $ |
29 |
|
30 |
GCONF_DEBUG="no" |
31 |
|
32 |
@@ -114,18 +114,24 @@ |
33 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" |
34 |
fi |
35 |
|
36 |
- sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
37 |
- -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ |
38 |
- -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ |
39 |
- -e "s:/usr/share/icons:${D}/usr/share/icons:g" \ |
40 |
- -e "s:/etc/X11:${D}/etc/X11:g" \ |
41 |
- -e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \ |
42 |
- -e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \ |
43 |
- -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
44 |
- -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
45 |
- -e 's:read str_answer:return 0:' \ |
46 |
- -e "s:/opt/kde:${D}/usr/kde:" \ |
47 |
+# sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
48 |
+# -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ |
49 |
+# -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ |
50 |
+# -e "s:/usr/share/icons:${D}/usr/share/icons:g" \ |
51 |
+# -e "s:/etc/X11:${D}/etc/X11:g" \ |
52 |
+# -e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \ |
53 |
+# -e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \ |
54 |
+# -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
55 |
+# -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
56 |
+# -e 's:read str_answer:return 0:' \ |
57 |
+# -e "s:/opt/kde:${D}/usr/kde:" \ |
58 |
+# -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
59 |
+# install.sh || die "sed failed" |
60 |
+ |
61 |
+ sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
62 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
63 |
+ -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
64 |
+ -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
65 |
install.sh || die "sed failed" |
66 |
|
67 |
} |
68 |
@@ -155,17 +161,20 @@ |
69 |
dosed /opt/opera/share/opera/java/opera.policy |
70 |
|
71 |
# Install the icons |
72 |
- insinto /usr/share/pixmaps |
73 |
- doins usr/share/pixmaps/opera.xpm |
74 |
+# insinto /usr/share/pixmaps |
75 |
+# doins usr/share/pixmaps/opera.xpm |
76 |
|
77 |
- local res |
78 |
- for res in 16x16 22x22 32x32 48x48 ; do |
79 |
- insinto /usr/share/icons/hicolor/${res}/apps |
80 |
- doins usr/share/icons/hicolor/${res}/apps/opera.png |
81 |
- done |
82 |
+# local res |
83 |
+# for res in 16x16 22x22 32x32 48x48 ; do |
84 |
+# insinto /usr/share/icons/hicolor/${res}/apps |
85 |
+# doins usr/share/icons/hicolor/${res}/apps/opera.png |
86 |
+# done |
87 |
|
88 |
# Install the menu entry |
89 |
- make_desktop_entry opera Opera /usr/share/pixmaps/opera.xpm 'Network;WebBrowser;Email;FileTransfer;IRCClient' |
90 |
+# make_desktop_entry opera Opera /usr/share/pixmaps/opera.xpm 'Network;WebBrowser;Email;FileTransfer;IRCClient' |
91 |
+ |
92 |
+ # Adapt desktop file to Gnome when needed |
93 |
+ use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop |
94 |
|
95 |
# Install a symlink /usr/bin/opera |
96 |
dodir /usr/bin |
97 |
|
98 |
|
99 |
|
100 |
1.289 www-client/opera/ChangeLog |
101 |
|
102 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.289&view=markup |
103 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.289&content-type=text/plain |
104 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.288&r2=1.289 |
105 |
|
106 |
Index: ChangeLog |
107 |
=================================================================== |
108 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
109 |
retrieving revision 1.288 |
110 |
retrieving revision 1.289 |
111 |
diff -u -r1.288 -r1.289 |
112 |
--- ChangeLog 2 Oct 2008 03:02:30 -0000 1.288 |
113 |
+++ ChangeLog 6 Oct 2008 16:58:28 -0000 1.289 |
114 |
@@ -1,6 +1,14 @@ |
115 |
# ChangeLog for www-client/opera |
116 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
117 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.288 2008/10/02 03:02:30 jer Exp $ |
118 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.289 2008/10/06 16:58:28 jer Exp $ |
119 |
+ |
120 |
+*opera-9.60_pre2444 (06 Oct 2008) |
121 |
+ |
122 |
+ 06 Oct 2008; Jeroen Roovers <jer@g.o> files/opera-gentoo.patch, |
123 |
+ opera-9.60_pre2440.ebuild, +opera-9.60_pre2444.ebuild: |
124 |
+ Version bump |
125 |
+ <http://my.opera.com/desktopteam/blog/2008/10/04/opera-9-6-rc-2>. Remove |
126 |
+ sed scripts and improve gentoo patch thanks to Pacho Ramos (bug #239365). |
127 |
|
128 |
02 Oct 2008; Jeroen Roovers <jer@g.o> -opera-9.60_pre2405.ebuild, |
129 |
-opera-9.60_pre2410.ebuild, -opera-9.60_pre2415.ebuild: |
130 |
|
131 |
|
132 |
|
133 |
1.1 www-client/opera/opera-9.60_pre2444.ebuild |
134 |
|
135 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.60_pre2444.ebuild?rev=1.1&view=markup |
136 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.60_pre2444.ebuild?rev=1.1&content-type=text/plain |
137 |
|
138 |
Index: opera-9.60_pre2444.ebuild |
139 |
=================================================================== |
140 |
# Copyright 1999-2008 Gentoo Foundation |
141 |
# Distributed under the terms of the GNU General Public License v2 |
142 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.60_pre2444.ebuild,v 1.1 2008/10/06 16:58:28 jer Exp $ |
143 |
|
144 |
GCONF_DEBUG="no" |
145 |
|
146 |
inherit eutils gnome2 |
147 |
|
148 |
DESCRIPTION="A standards-compliant graphical Web browser" |
149 |
HOMEPAGE="http://www.opera.com/" |
150 |
|
151 |
SLOT="0" |
152 |
LICENSE="OPERA-9.0" |
153 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
154 |
|
155 |
RESTRICT="mirror strip test" |
156 |
|
157 |
IUSE="elibc_FreeBSD gnome ia32 qt-static qt3-static spell" |
158 |
MY_LINGUAS="be bg cs da de el en en-GB es-ES es-LA fi fr fr-CA fy hi hr hu id it |
159 |
ja ka ko lt mk nb nl nn pl pt pt-BR ru sv tr uk zh-CN zh-TW" |
160 |
|
161 |
for MY_LINGUA in ${MY_LINGUAS}; do |
162 |
IUSE="${IUSE} linguas_${MY_LINGUA/-/_}" |
163 |
done |
164 |
|
165 |
O_SUFF="2444" |
166 |
O_P="${PN}-9.60-${O_SUFF}" |
167 |
O_URI="http://snapshot.opera.com/unix/snapshot-${O_SUFF}/" |
168 |
|
169 |
SRC_URI=" |
170 |
x86-fbsd? ( ${O_URI}intel-freebsd/${O_P}.freebsd5-shared-qt3.i386.tar.bz2 ) |
171 |
ppc? ( ${O_URI}ppc-linux/${O_P}.gcc4-shared-qt3.ppc.tar.bz2 ) |
172 |
qt-static? ( |
173 |
qt3-static? ( |
174 |
amd64? ( |
175 |
ia32? ( ${O_URI}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 ) |
176 |
!ia32? ( ${O_URI}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
177 |
) |
178 |
x86? ( ${O_URI}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 ) |
179 |
) |
180 |
!qt3-static? ( |
181 |
amd64? ( |
182 |
ia32? ( ${O_URI}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
183 |
!ia32? ( ${O_URI}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
184 |
) |
185 |
x86? ( ${O_URI}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
186 |
) |
187 |
) |
188 |
!qt-static? ( |
189 |
qt3-static? ( |
190 |
amd64? ( |
191 |
ia32? ( ${O_URI}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
192 |
!ia32? ( ${O_URI}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
193 |
) |
194 |
x86? ( ${O_URI}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
195 |
) |
196 |
!qt3-static? ( |
197 |
amd64? ( |
198 |
ia32? ( ${O_URI}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
199 |
!ia32? ( ${O_URI}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
200 |
) |
201 |
x86? ( ${O_URI}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
202 |
) |
203 |
) |
204 |
" |
205 |
|
206 |
DEPEND=">=sys-apps/sed-4" |
207 |
|
208 |
RDEPEND="media-libs/libexif |
209 |
media-libs/jpeg |
210 |
>=media-libs/fontconfig-2.1.94-r1 |
211 |
x11-libs/libXrandr |
212 |
x11-libs/libXp |
213 |
x11-libs/libXmu |
214 |
x11-libs/libXi |
215 |
x11-libs/libXft |
216 |
x11-libs/libXext |
217 |
x11-libs/libXcursor |
218 |
x11-libs/libX11 |
219 |
x11-libs/libSM |
220 |
x11-libs/libICE |
221 |
x86? ( !qt-static? ( !qt3-static? ( =x11-libs/qt-3* ) ) ) |
222 |
amd64? ( |
223 |
ia32? ( app-emulation/emul-linux-x86-qtlibs ) |
224 |
!ia32? ( =x11-libs/qt-3* ) |
225 |
) |
226 |
ppc? ( =x11-libs/qt-3* ) |
227 |
spell? ( app-text/aspell ) |
228 |
x86-fbsd? ( |
229 |
=virtual/libstdc++-3* |
230 |
!qt-static? ( !qt3-static? ( =x11-libs/qt-3* ) ) |
231 |
) |
232 |
" |
233 |
|
234 |
opera_cd() { |
235 |
cd "${WORKDIR}"/${O_P}* || die "failed to enter work directory" |
236 |
S="$(pwd)" |
237 |
einfo "Working in ${S}" |
238 |
} |
239 |
|
240 |
src_unpack() { |
241 |
unpack ${A} |
242 |
opera_cd |
243 |
|
244 |
#epatch "${FILESDIR}/${PN}-9.00-install.patch" |
245 |
epatch "${FILESDIR}/${PN}-gentoo.patch" |
246 |
epatch "${FILESDIR}/${PN}-simplify-desktop.patch" |
247 |
epatch "${FILESDIR}/${PN}-freedesktop.patch" |
248 |
|
249 |
# bug #181300: |
250 |
if use elibc_FreeBSD; then |
251 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath-fbsd.patch" |
252 |
else |
253 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" |
254 |
fi |
255 |
|
256 |
# sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
257 |
# -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ |
258 |
# -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ |
259 |
# -e "s:/usr/share/icons:${D}/usr/share/icons:g" \ |
260 |
# -e "s:/etc/X11:${D}/etc/X11:g" \ |
261 |
# -e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \ |
262 |
# -e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \ |
263 |
# -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
264 |
# -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
265 |
# -e 's:read str_answer:return 0:' \ |
266 |
# -e "s:/opt/kde:${D}/usr/kde:" \ |
267 |
# -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
268 |
# install.sh || die "sed failed" |
269 |
|
270 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
271 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
272 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
273 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
274 |
install.sh || die "sed failed" |
275 |
|
276 |
} |
277 |
|
278 |
src_compile() { |
279 |
# This workaround is sadly needed because gnome2.eclass doesn't check |
280 |
# whether a configure script or Makefile exists. |
281 |
true |
282 |
} |
283 |
|
284 |
src_install() { |
285 |
opera_cd |
286 |
# Prepare installation directories for Opera's installer script. |
287 |
dodir /etc |
288 |
|
289 |
# Opera's native installer. |
290 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
291 |
|
292 |
einfo "It is safe to ignore warnings about failed checksums" |
293 |
einfo "and about files that would be ignored ..." |
294 |
einfo "Completing the installation where install.sh abandoned us ..." |
295 |
|
296 |
# java workaround |
297 |
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 |
298 |
|
299 |
dosed /opt/opera/bin/opera |
300 |
dosed /opt/opera/share/opera/java/opera.policy |
301 |
|
302 |
# Install the icons |
303 |
# insinto /usr/share/pixmaps |
304 |
# doins usr/share/pixmaps/opera.xpm |
305 |
|
306 |
# local res |
307 |
# for res in 16x16 22x22 32x32 48x48 ; do |
308 |
# insinto /usr/share/icons/hicolor/${res}/apps |
309 |
# doins usr/share/icons/hicolor/${res}/apps/opera.png |
310 |
# done |
311 |
|
312 |
# Install the menu entry |
313 |
# make_desktop_entry opera Opera /usr/share/pixmaps/opera.xpm 'Network;WebBrowser;Email;FileTransfer;IRCClient' |
314 |
|
315 |
# Adapt desktop file to Gnome when needed |
316 |
use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop |
317 |
|
318 |
# Install a symlink /usr/bin/opera |
319 |
dodir /usr/bin |
320 |
dosym /opt/opera/bin/opera /usr/bin/opera |
321 |
|
322 |
# fix plugin path |
323 |
echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc |
324 |
|
325 |
# enable spellcheck |
326 |
if use spell; then |
327 |
if use qt-static; then |
328 |
DIR=${P}.1 |
329 |
else |
330 |
use sparc && DIR=${P}.2 || DIR=${P}.5 |
331 |
fi |
332 |
echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini |
333 |
fi |
334 |
|
335 |
dodir /etc/revdep-rebuild |
336 |
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera |
337 |
|
338 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
339 |
if use elibc_FreeBSD; then |
340 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
341 |
while read i; do |
342 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
343 |
then |
344 |
export SANITY_CHECK_LIBZ_FAILED=1 |
345 |
break |
346 |
fi |
347 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
348 |
done |
349 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
350 |
fi |
351 |
|
352 |
# Add the Opera man dir to MANPATH: |
353 |
insinto /etc/env.d |
354 |
echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera |
355 |
|
356 |
# Remove unwanted LINGUAS: |
357 |
local LINGUA |
358 |
local LNGDIR="${D}/opt/opera/share/opera/locale" |
359 |
einfo "Keeping these locales: ${LINGUAS}." |
360 |
for LINGUA in ${MY_LINGUAS}; do |
361 |
if ! use linguas_${LINGUA/-/_}; then |
362 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
363 |
rm -r "${LINGUA}" |
364 |
fi |
365 |
done |
366 |
} |
367 |
|
368 |
pkg_postinst() { |
369 |
use gnome && gnome2_pkg_postinst |
370 |
|
371 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
372 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
373 |
elog "file chooser at /opt/opera/share/opera/locale/, then enter the" |
374 |
elog "directory for the language you want and [Open] the .lng file." |
375 |
elog |
376 |
elog "To use the spellchecker (USE=spell) for non-English simply do" |
377 |
elog "$ emerge app-dicts/aspell-[your language]." |
378 |
|
379 |
if use elibc_FreeBSD; then |
380 |
elog |
381 |
elog "To improve shared memory usage please set:" |
382 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
383 |
fi |
384 |
|
385 |
elog "The Opera betas may still have issues with plugins, notably" |
386 |
elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162" |
387 |
} |
388 |
|
389 |
pkg_postrm() { |
390 |
use gnome && gnome2_pkg_postrm |
391 |
} |