Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/opera-next: ChangeLog opera-next-12.00.1289.ebuild opera-next-12.00.1291.ebuild opera-next-12.00.1256.ebuild
Date: Wed, 08 Feb 2012 14:06:12
Message-Id: 20120208140558.7E2E82004B@flycatcher.gentoo.org
1 jer 12/02/08 14:05:58
2
3 Modified: ChangeLog
4 Added: opera-next-12.00.1289.ebuild
5 opera-next-12.00.1291.ebuild
6 Removed: opera-next-12.00.1256.ebuild
7 Log:
8 http://my.opera.com/desktopteam/blog/2012/02/08/addressfield-ui
9
10 (Portage version: 2.2.0_alpha85/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.62 www-client/opera-next/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?rev=1.62&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?rev=1.62&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?r1=1.61&r2=1.62
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v
22 retrieving revision 1.61
23 retrieving revision 1.62
24 diff -u -r1.61 -r1.62
25 --- ChangeLog 1 Feb 2012 17:20:59 -0000 1.61
26 +++ ChangeLog 8 Feb 2012 14:05:58 -0000 1.62
27 @@ -1,6 +1,13 @@
28 # ChangeLog for www-client/opera-next
29 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.61 2012/02/01 17:20:59 jer Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.62 2012/02/08 14:05:58 jer Exp $
32 +
33 +*opera-next-12.00.1291 (08 Feb 2012)
34 +*opera-next-12.00.1289 (08 Feb 2012)
35 +
36 + 08 Feb 2012; Jeroen Roovers <jer@g.o> -opera-next-12.00.1256.ebuild,
37 + +opera-next-12.00.1289.ebuild, +opera-next-12.00.1291.ebuild:
38 + http://my.opera.com/desktopteam/blog/2012/02/08/addressfield-ui
39
40 *opera-next-12.00.1272 (01 Feb 2012)
41
42
43
44
45 1.1 www-client/opera-next/opera-next-12.00.1289.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-12.00.1289.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-12.00.1289.ebuild?rev=1.1&content-type=text/plain
49
50 Index: opera-next-12.00.1289.ebuild
51 ===================================================================
52 # Copyright 1999-2012 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/opera-next-12.00.1289.ebuild,v 1.1 2012/02/08 14:05:58 jer Exp $
55
56 EAPI="4"
57
58 inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator
59
60 DESCRIPTION="A fast and secure web browser and Internet suite"
61 HOMEPAGE="http://www.opera.com/"
62
63 SLOT="0"
64 LICENSE="OPERA-11 LGPL-2 LGPL-3"
65 KEYWORDS="~x86 ~x86-fbsd"
66 IUSE="elibc_FreeBSD gtk gtk3 kde +gstreamer"
67
68 O_V="$(get_version_component_range 1-2)" # Major version, i.e. 11.00
69 O_B="$(get_version_component_range 3)" # Build version, i.e. 1156
70
71 O_D="vostok_${O_V}-${O_B}"
72 O_P="${PN}-${O_V}-${O_B}"
73 O_U="http://snapshot.opera.com/unix/"
74
75 SRC_URI="
76 x86? ( ${O_U}${O_D}/${O_P}.i386.linux.tar.xz )
77 x86-fbsd? ( ${O_U}${O_D}/${O_P}.i386.freebsd.tar.xz )
78 "
79
80 OPREFIX="/usr/$(get_libdir)"
81
82 QA_DT_HASH="${OPREFIX}/${PN}/.*"
83 QA_PRESTRIPPED="${OPREFIX}/${PN}/.*"
84
85 O_LINGUAS="af az be bg bn cs da de el en-GB es-ES es-LA et fi fr fr-CA fy gd hi
86 hr hu id it ja ka ko lt me mk ms nb nl nn pa pl pt pt-BR ro ru sk sr sv sw ta te
87 th tl tr uk uz vi zh-CN zh-TW zu"
88
89 for O_LINGUA in ${O_LINGUAS}; do
90 IUSE="${IUSE} linguas_${O_LINGUA/-/_}"
91 done
92
93 DEPEND="
94 >=sys-apps/sed-4
95 app-arch/xz-utils
96 "
97 GTKRDEPEND="
98 dev-libs/atk
99 dev-libs/glib:2
100 x11-libs/cairo
101 x11-libs/gdk-pixbuf
102 gtk? ( x11-libs/gtk+:2 )
103 gtk3? ( x11-libs/gtk+:3 )
104 x11-libs/pango
105 x11-libs/pixman
106 "
107 KDERDEPEND="
108 kde-base/kdelibs
109 x11-libs/qt-core
110 x11-libs/qt-gui
111 "
112 GSTRDEPEND="
113 dev-libs/glib:2
114 dev-libs/libxml2
115 media-libs/gst-plugins-base
116 media-libs/gstreamer
117 media-plugins/gst-plugins-meta
118 "
119 RDEPEND="
120 media-libs/fontconfig
121 media-libs/freetype
122 sys-apps/util-linux
123 sys-libs/zlib
124 virtual/opengl
125 x11-libs/libICE
126 x11-libs/libSM
127 x11-libs/libX11
128 x11-libs/libXext
129 x11-libs/libXft
130 x11-libs/libXrender
131 x11-libs/libXt
132 gtk? ( ${GTKRDEPEND} )
133 gtk3? ( ${GTKRDEPEND} )
134 kde? ( ${KDERDEPEND} )
135 gstreamer? ( ${GSTRDEPEND} )
136 "
137 src_unpack() {
138 unpack ${A}
139 mv -v ${PN}* "${S}" || die
140 }
141
142 src_prepare() {
143 local LNGDIR="share/${PN}/locale"
144
145 # Count linguas
146 count() { echo ${#}; }
147 local lingua_count=$(count ${O_LINGUAS} en)
148 local locale_count=$(count ${LNGDIR}/*)
149 [[ ${lingua_count} = ${locale_count} ]] \
150 || die "Number of LINGUAS does not match number of locales"
151 unset count
152
153 # Remove unwanted linguas
154 einfo "Keeping these locales (linguas): ${LINGUAS}."
155 for LINGUA in ${O_LINGUAS}; do
156 if ! use linguas_${LINGUA/-/_}; then
157 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
158 rm -r "${LINGUA}" || die "The list of linguas needs to be fixed"
159 fi
160 done
161
162 # Remove doc directory but keep the LICENSE under another name (bug #315473)
163 mv share/doc/${PN}/LICENSE share/${PN}/defaults/license.txt
164 rm -rf share/doc
165 for locale in share/${PN}/locale/*; do
166 rm -f "${locale}/license.txt"
167 ln -sn /usr/share/${PN}/defaults/license.txt "${locale}/license.txt" \
168 || die
169 done
170
171 # Remove package directory
172 rm -rf share/${PN}/package
173
174 # Optional libraries
175 if ! use gtk; then
176 rm lib/${PN}/liboperagtk2.so || die
177 fi
178 if ! use gtk3; then
179 rm lib/${PN}/liboperagtk3.so || die
180 fi
181 if ! use kde; then
182 rm lib/${PN}/liboperakde4.so || die
183 fi
184 if ! use gstreamer; then
185 rm -r lib/${PN}/gstreamer || die
186 fi
187
188 # Unzip the man pages before sedding
189 gunzip share/man/man1/* || die
190
191 # Replace PREFIX, SUFFIX and PN in various files
192 sed -i \
193 -e "s:@@{PREFIX}:/usr:g" \
194 -e "s:@@{SUFFIX}::g" \
195 -e "s:@@{_SUFFIX}::g" \
196 -e "s:@@{USUFFIX}::g" \
197 -e "s:opera:${PN}:g" \
198 share/man/man1/* \
199 share/applications/${PN}-*.desktop \
200 || die
201
202 # Replace "Opera" with "Opera Next"
203 if [[ ${PN} = opera-next ]]; then
204 sed -i share/applications/${PN}-*.desktop \
205 -e "/^Name=Opera\|^ Next/s:Opera:& Next:" || die
206 fi
207
208 # Create /usr/bin/opera wrapper
209 echo '#!/bin/sh' > ${PN}
210 echo 'export OPERA_DIR="/usr/share/'"${PN}"'"' >> ${PN}
211 echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \
212 >> ${PN}
213 echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN}
214
215 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
216 if use elibc_FreeBSD; then
217 scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \
218 while read i; do
219 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
220 then
221 export SANITY_CHECK_LIBZ_FAILED=1
222 break
223 fi
224 sed -i \
225 "$i" \
226 -e 's/libz\.so\.3/libz.so.1/g'
227 done
228 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die
229 fi
230 }
231
232 src_install() {
233 # We install into usr instead of opt as Opera does not support the latter
234 dodir /usr
235 mv lib/ "${D}/${OPREFIX}" || die
236 mv share/ "${D}/usr/" || die
237
238 # Install startup scripts
239 dobin ${PN}
240
241 # Stop revdep-rebuild from checking opera binaries
242 dodir /etc/revdep-rebuild
243 echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" \
244 > "${D}"/etc/revdep-rebuild/90${PN}
245
246 # Set PaX markings for hardened/PaX (bug #344267)
247 pax-mark m \
248 "${D}/${OPREFIX}/${PN}/${PN}" \
249 "${D}/${OPREFIX}/${PN}/operaplugincleaner" \
250 "${D}/${OPREFIX}/${PN}/operapluginwrapper"
251 }
252
253 pkg_preinst() {
254 gnome2_icon_savelist
255 }
256
257 pkg_postinst() {
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 }
274
275
276
277 1.1 www-client/opera-next/opera-next-12.00.1291.ebuild
278
279 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-12.00.1291.ebuild?rev=1.1&view=markup
280 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-12.00.1291.ebuild?rev=1.1&content-type=text/plain
281
282 Index: opera-next-12.00.1291.ebuild
283 ===================================================================
284 # Copyright 1999-2012 Gentoo Foundation
285 # Distributed under the terms of the GNU General Public License v2
286 # $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/opera-next-12.00.1291.ebuild,v 1.1 2012/02/08 14:05:58 jer Exp $
287
288 EAPI="4"
289
290 inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator
291
292 DESCRIPTION="A fast and secure web browser and Internet suite"
293 HOMEPAGE="http://www.opera.com/"
294
295 SLOT="0"
296 LICENSE="OPERA-11 LGPL-2 LGPL-3"
297 KEYWORDS="~amd64"
298 IUSE="elibc_FreeBSD gtk gtk3 kde +gstreamer"
299
300 O_V="$(get_version_component_range 1-2)" # Major version, i.e. 11.00
301 O_B="$(get_version_component_range 3)" # Build version, i.e. 1156
302
303 O_D="vostok_${O_V}-1289"
304 O_P="${PN}-${O_V}-${O_B}"
305 O_U="http://snapshot.opera.com/unix/"
306
307 SRC_URI="
308 amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz )
309 "
310
311 OPREFIX="/usr/$(get_libdir)"
312
313 QA_DT_HASH="${OPREFIX}/${PN}/.*"
314 QA_PRESTRIPPED="${OPREFIX}/${PN}/.*"
315
316 O_LINGUAS="af az be bg bn cs da de el en-GB es-ES es-LA et fi fr fr-CA fy gd hi
317 hr hu id it ja ka ko lt me mk ms nb nl nn pa pl pt pt-BR ro ru sk sr sv sw ta te
318 th tl tr uk uz vi zh-CN zh-TW zu"
319
320 for O_LINGUA in ${O_LINGUAS}; do
321 IUSE="${IUSE} linguas_${O_LINGUA/-/_}"
322 done
323
324 DEPEND="
325 >=sys-apps/sed-4
326 app-arch/xz-utils
327 "
328 GTKRDEPEND="
329 dev-libs/atk
330 dev-libs/glib:2
331 x11-libs/cairo
332 x11-libs/gdk-pixbuf
333 gtk? ( x11-libs/gtk+:2 )
334 gtk3? ( x11-libs/gtk+:3 )
335 x11-libs/pango
336 x11-libs/pixman
337 "
338 KDERDEPEND="
339 kde-base/kdelibs
340 x11-libs/qt-core
341 x11-libs/qt-gui
342 "
343 GSTRDEPEND="
344 dev-libs/glib:2
345 dev-libs/libxml2
346 media-libs/gst-plugins-base
347 media-libs/gstreamer
348 media-plugins/gst-plugins-meta
349 "
350 RDEPEND="
351 media-libs/fontconfig
352 media-libs/freetype
353 sys-apps/util-linux
354 sys-libs/zlib
355 virtual/opengl
356 x11-libs/libICE
357 x11-libs/libSM
358 x11-libs/libX11
359 x11-libs/libXext
360 x11-libs/libXft
361 x11-libs/libXrender
362 x11-libs/libXt
363 gtk? ( ${GTKRDEPEND} )
364 gtk3? ( ${GTKRDEPEND} )
365 kde? ( ${KDERDEPEND} )
366 gstreamer? ( ${GSTRDEPEND} )
367 "
368 src_unpack() {
369 unpack ${A}
370 mv -v ${PN}* "${S}" || die
371 }
372
373 src_prepare() {
374 local LNGDIR="share/${PN}/locale"
375
376 # Count linguas
377 count() { echo ${#}; }
378 local lingua_count=$(count ${O_LINGUAS} en)
379 local locale_count=$(count ${LNGDIR}/*)
380 [[ ${lingua_count} = ${locale_count} ]] \
381 || die "Number of LINGUAS does not match number of locales"
382 unset count
383
384 # Remove unwanted linguas
385 einfo "Keeping these locales (linguas): ${LINGUAS}."
386 for LINGUA in ${O_LINGUAS}; do
387 if ! use linguas_${LINGUA/-/_}; then
388 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
389 rm -r "${LINGUA}" || die "The list of linguas needs to be fixed"
390 fi
391 done
392
393 # Remove doc directory but keep the LICENSE under another name (bug #315473)
394 mv share/doc/${PN}/LICENSE share/${PN}/defaults/license.txt
395 rm -rf share/doc
396 for locale in share/${PN}/locale/*; do
397 rm -f "${locale}/license.txt"
398 ln -sn /usr/share/${PN}/defaults/license.txt "${locale}/license.txt" \
399 || die
400 done
401
402 # Remove package directory
403 rm -rf share/${PN}/package
404
405 # Optional libraries
406 if ! use gtk; then
407 rm lib/${PN}/liboperagtk2.so || die
408 fi
409 if ! use gtk3; then
410 rm lib/${PN}/liboperagtk3.so || die
411 fi
412 if ! use kde; then
413 rm lib/${PN}/liboperakde4.so || die
414 fi
415 if ! use gstreamer; then
416 rm -r lib/${PN}/gstreamer || die
417 fi
418
419 # Unzip the man pages before sedding
420 gunzip share/man/man1/* || die
421
422 # Replace PREFIX, SUFFIX and PN in various files
423 sed -i \
424 -e "s:@@{PREFIX}:/usr:g" \
425 -e "s:@@{SUFFIX}::g" \
426 -e "s:@@{_SUFFIX}::g" \
427 -e "s:@@{USUFFIX}::g" \
428 -e "s:opera:${PN}:g" \
429 share/man/man1/* \
430 share/applications/${PN}-*.desktop \
431 || die
432
433 # Replace "Opera" with "Opera Next"
434 if [[ ${PN} = opera-next ]]; then
435 sed -i share/applications/${PN}-*.desktop \
436 -e "/^Name=Opera\|^ Next/s:Opera:& Next:" || die
437 fi
438
439 # Create /usr/bin/opera wrapper
440 echo '#!/bin/sh' > ${PN}
441 echo 'export OPERA_DIR="/usr/share/'"${PN}"'"' >> ${PN}
442 echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \
443 >> ${PN}
444 echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN}
445
446 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
447 if use elibc_FreeBSD; then
448 scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \
449 while read i; do
450 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
451 then
452 export SANITY_CHECK_LIBZ_FAILED=1
453 break
454 fi
455 sed -i \
456 "$i" \
457 -e 's/libz\.so\.3/libz.so.1/g'
458 done
459 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die
460 fi
461 }
462
463 src_install() {
464 # We install into usr instead of opt as Opera does not support the latter
465 dodir /usr
466 mv lib/ "${D}/${OPREFIX}" || die
467 mv share/ "${D}/usr/" || die
468
469 # Install startup scripts
470 dobin ${PN}
471
472 # Stop revdep-rebuild from checking opera binaries
473 dodir /etc/revdep-rebuild
474 echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" \
475 > "${D}"/etc/revdep-rebuild/90${PN}
476
477 # Set PaX markings for hardened/PaX (bug #344267)
478 pax-mark m \
479 "${D}/${OPREFIX}/${PN}/${PN}" \
480 "${D}/${OPREFIX}/${PN}/operaplugincleaner" \
481 "${D}/${OPREFIX}/${PN}/operapluginwrapper"
482 }
483
484 pkg_preinst() {
485 gnome2_icon_savelist
486 }
487
488 pkg_postinst() {
489 if use elibc_FreeBSD; then
490 elog
491 elog "To improve shared memory usage please set:"
492 elog "$ sysctl kern.ipc.shm_allow_removed=1"
493 fi
494
495 # Update desktop file database and gtk icon cache (bug #334993)
496 gnome2_icon_cache_update
497 fdo-mime_desktop_database_update
498 }
499
500 pkg_postrm() {
501 # Update desktop file database and gtk icon cache (bug #334993)
502 gnome2_icon_cache_update
503 fdo-mime_desktop_database_update
504 }