diff options
author | Jeroen Roovers <jer@gentoo.org> | 2011-06-26 10:25:49 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2011-06-26 10:25:49 +0000 |
commit | 7ac811b331d0e0ca579e79880dbad540fc5665b8 (patch) | |
tree | 99e2ca9a21c1adbe76d8c75211b5266d1d6d43bd /www-client/opera | |
parent | Straight out QA issues (diff) | |
download | historical-7ac811b331d0e0ca579e79880dbad540fc5665b8.tar.gz historical-7ac811b331d0e0ca579e79880dbad540fc5665b8.tar.bz2 historical-7ac811b331d0e0ca579e79880dbad540fc5665b8.zip |
http://my.opera.com/desktopteam/blog/2011/06/26/swordfish-release-candidate-4
Package-Manager: portage-2.2.0_alpha41/cvs/Linux i686
Diffstat (limited to 'www-client/opera')
-rw-r--r-- | www-client/opera/ChangeLog | 7 | ||||
-rw-r--r-- | www-client/opera/Manifest | 12 | ||||
-rw-r--r-- | www-client/opera/opera-11.50.1073.ebuild | 231 |
3 files changed, 245 insertions, 5 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index dd4f42f31a72..44341da68007 100644 --- a/www-client/opera/ChangeLog +++ b/www-client/opera/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-client/opera # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.637 2011/06/25 13:45:18 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.638 2011/06/26 10:25:49 jer Exp $ + +*opera-11.50.1073 (26 Jun 2011) + + 26 Jun 2011; Jeroen Roovers <jer@gentoo.org> +opera-11.50.1073.ebuild: + http://my.opera.com/desktopteam/blog/2011/06/26/swordfish-release-candidate-4 *opera-11.50.1071 (25 Jun 2011) diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index 912757aa9b7a..2e146535e047 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -16,17 +16,21 @@ DIST opera-11.50-1068.x86_64.linux.tar.xz 11657832 RMD160 182a317ba16edf39115a76 DIST opera-11.50-1071.i386.freebsd.tar.xz 11144332 RMD160 b04e0003c8c1b9b4d4f52e825addebaa83736a09 SHA1 fe2aaf3e2b9a8bcfe3c75848bc68b626726da4ff SHA256 29baad96bbb5828bcd39869aaeeb61140d95002ca9f8532951f404b31250e744 DIST opera-11.50-1071.i386.linux.tar.xz 11063700 RMD160 b965dbb088dcf358c8a3ca72dc134a3cd2fd1d35 SHA1 2326a7fbc88d167530788cf54ac16a1cfb044a29 SHA256 392bf02b5fe79bb94fb6a90fede71233da806d70fa2591ea3683a32416b5d506 DIST opera-11.50-1071.x86_64.linux.tar.xz 11830256 RMD160 02ba4ac9ad4cf1430f561fb4b065b63f26654079 SHA1 46ff623db6033da316a616a004f983ad91f0bff3 SHA256 fb18de73391932e6eaaf2851eb535cbc37ac62df0674d1ce7afab014c7451454 +DIST opera-11.50-1073.i386.freebsd.tar.xz 11139244 RMD160 d1978fce6e17b9d8b5bb760010d20ff5d1a698f7 SHA1 409a303c04d0758bc3fa85901b09f99624d4169b SHA256 64b8021d1486c2a1dbafbef6f5fe309cd83db6f7e0308de1da1069042126a3f4 +DIST opera-11.50-1073.i386.linux.tar.xz 11070816 RMD160 3a3f140b3f964a3832d89cfaf9ae47a24beb28e2 SHA1 9a10d9ad65beeb7a4229cec81bd0f9a5d5353385 SHA256 2e7b318792706ca0c0028e1f67e0d860f677704635e16dff35399efd77e15130 +DIST opera-11.50-1073.x86_64.linux.tar.xz 11831096 RMD160 cd0990ad73817825124356ef6986ccf7fe96e31f SHA1 0e758ce5ddec4bb63f1e3ec02b39aafd073b913f SHA256 6656165a88888267cde70370ddf2cabdfdb1f5e7812beccffa6141d59f833c12 EBUILD opera-11.11.2109.ebuild 5982 RMD160 fa51701f78d7626f86aa6d2d4f6cf6053c575097 SHA1 1a21b68af084e24f601738adff9a2d5a0265880e SHA256 feec3fd2a5eacd098500de16febd5206aaeb8ffa8e4ad93b4d5a483848516e77 EBUILD opera-11.50.1027.ebuild 6292 RMD160 91b303df1138fb5d9832e5341ec81102cd44be35 SHA1 024656238e0a4e41db7796799a0944ac59d1de9b SHA256 8aecabed7bad98cc8b881894baf267ffd937429af1e3eaaef8ee868b822ade4c EBUILD opera-11.50.1067.ebuild 6195 RMD160 de15aa42928848d99c121cfc2afbcc2e79bc3ca5 SHA1 48b6a3d201a67bfb7e392c15113c94bacaf2136f SHA256 9f691dbef8a9014933373a37b520fb4176ddd6e2f73fb422f7739c8b18079038 EBUILD opera-11.50.1068.ebuild 6184 RMD160 b82ca0e0e96c013d469bd7db75997e27b9636eac SHA1 3f29c1b9baa4e99afbc39d9d3787fc0ec091ecec SHA256 9519cf3ab340b890baeecc5f0e09a42f27013d40fe3abd296a4c773d7e0ce960 EBUILD opera-11.50.1071.ebuild 6195 RMD160 e24c4e7c7527969215645a0ed38dbc384b5a7cae SHA1 1b690ccf8c9f42a76a9e31bad4732db3521877ee SHA256 fc1dcfe006ee87f688fe3ee1913fe75548a156abe6037ac41f7754d98b3ad139 -MISC ChangeLog 122045 RMD160 b59d2cf6b28ef9a323764f13b93ca0320f841a49 SHA1 9b7e26e1ab40cab9df2899967bf21d58bcb6766e SHA256 f073d04486ac870836670fcee7bfc142c9293a6e1164abde2168810a23ddf893 +EBUILD opera-11.50.1073.ebuild 6195 RMD160 d7004f157fff610a57f8fbc5daa4a2dddb2e12ea SHA1 5f3c7ba73b9018e48368cd622db36a8cf4bc83e3 SHA256 c5af2ff2d12e6e03f9f89471bc53d71bcab7c2c1ba8349d063f6759965f56724 +MISC ChangeLog 122232 RMD160 8291bbdc2b9a664a982cf9facce3cb18a0872622 SHA1 d548fa86b9bc9f52f42241698ff8444cf684d8a8 SHA256 5a514e43344c522573b278bcb12d46e12152baf015f8d4133ab4ea4fd73c6825 MISC metadata.xml 641 RMD160 b02a2c03b42c19da338fc0d2c2460ae393b832e3 SHA1 b9225680d057968296b8828308f76fa8d9ea9c56 SHA256 37369b30382e2fb8c54d23e112070997135689468d3cd865ed194a55bb87ed58 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk4F5nMACgkQVWmRsqeSphM6NACeLHY4JTm91a2G3WGZH0nDraKR -YWEAn3c/y5vEW1XztJRa6Wl0yab2m9Uk -=kmJr +iEYEARECAAYFAk4HCTMACgkQVWmRsqeSphNNhACeOGAO5aBfLirA8IGnZWXN2gFU +7K8An3w66gXE2LFwD6KPZ/W+iPDKsKC8 +=sRSk -----END PGP SIGNATURE----- diff --git a/www-client/opera/opera-11.50.1073.ebuild b/www-client/opera/opera-11.50.1073.ebuild new file mode 100644 index 000000000000..5cb768bc6715 --- /dev/null +++ b/www-client/opera/opera-11.50.1073.ebuild @@ -0,0 +1,231 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-11.50.1073.ebuild,v 1.1 2011/06/26 10:25:49 jer Exp $ + +EAPI="3" + +inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator + +DESCRIPTION="A fast and secure web browser and Internet suite" +HOMEPAGE="http://www.opera.com/" + +SLOT="0" +LICENSE="OPERA-11 LGPL-2 LGPL-3" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="elibc_FreeBSD gtk kde +gstreamer" + +O_V="$(get_version_component_range 1-2)" # Major version, i.e. 11.00 +O_B="$(get_version_component_range 3)" # Build version, i.e. 1156 + +O_D="rc4_${O_V}-${O_B}/Opera" +O_P="${PN}-${O_V}-${O_B}" +O_U="http://snapshot.opera.com/unix/" + +SRC_URI=" + amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz ) + x86? ( ${O_U}${O_D}/${O_P}.i386.linux.tar.xz ) + x86-fbsd? ( ${O_U}${O_D}/${O_P}.i386.freebsd.tar.xz ) +" + +OPREFIX="/usr/$(get_libdir)" + +QA_DT_HASH="${OPREFIX}/${PN}/.*" +QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" + +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 +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 +th tl tr uk uz vi zh-CN zh-TW zu" + +for O_LINGUA in ${O_LINGUAS}; do + IUSE="${IUSE} linguas_${O_LINGUA/-/_}" +done + +DEPEND=" + >=sys-apps/sed-4 + app-arch/xz-utils +" +GTKRDEPEND=" + dev-libs/atk + dev-libs/glib:2 + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + x11-libs/pango + x11-libs/pixman +" +KDERDEPEND=" + kde-base/kdelibs + x11-libs/qt-core + x11-libs/qt-gui +" +GSTRDEPEND=" + dev-libs/glib + dev-libs/libxml2 + media-plugins/gst-plugins-meta + media-libs/gstreamer +" +RDEPEND=" + media-libs/fontconfig + media-libs/freetype + sys-apps/util-linux + sys-libs/zlib + virtual/opengl + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXft + x11-libs/libXrender + gtk? ( ${GTKRDEPEND} ) + kde? ( ${KDERDEPEND} ) + gstreamer? ( ${GSTRDEPEND} ) +" + +pkg_setup() { + echo -e \ + " ${GOOD}****************************************************${NORMAL}" + elog "If you seek support, please file a bug report at" + elog "https://bugs.gentoo.org and post the output of" + elog " \`emerge --info =${CATEGORY}/${P}'" + echo -e \ + " ${GOOD}****************************************************${NORMAL}" +} + +src_unpack() { + unpack ${A} + mv -v ${PN}* "${S}" || die +} + +src_prepare() { + local LNGDIR="share/${PN}/locale" + + # Count linguas + count() { echo ${#}; } + local lingua_count=$(count ${O_LINGUAS} en) + local locale_count=$(count ${LNGDIR}/*) + [[ ${lingua_count} = ${locale_count} ]] \ + || die "Number of LINGUAS does not match number of locales" + unset count + + # Remove unwanted linguas + einfo "Keeping these locales (linguas): ${LINGUAS}." + for LINGUA in ${O_LINGUAS}; do + if ! use linguas_${LINGUA/-/_}; then + LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) + rm -r "${LINGUA}" || die "The list of linguas needs to be fixed" + fi + done + + # Remove doc directory but keep the LICENSE under another name (bug #315473) + mv share/doc/${PN}/LICENSE share/${PN}/defaults/license.txt + rm -rf share/doc + for locale in share/${PN}/locale/*; do + rm -f "${locale}/license.txt" + ln -sn /usr/share/${PN}/defaults/license.txt "${locale}/license.txt" \ + || die "ln -sn license.txt" + done + + # Remove package directory + rm -rf share/${PN}/package + + # Leave libopera*.so only if the user chooses + if ! use gtk; then + rm lib/${PN}/liboperagtk.so || die "rm liboperagtk.so failed" + fi + if ! use kde; then + rm lib/${PN}/liboperakde4.so || die "rm liboperakde4.so failed" + fi + + # Unzip the man pages before sedding + gunzip share/man/man1/* || die "gunzip failed" + + # Replace PREFIX, SUFFIX and PN in various files + sed -i \ + -e "s:@@{PREFIX}:/usr:g" \ + -e "s:@@{SUFFIX}::g" \ + -e "s:@@{_SUFFIX}::g" \ + -e "s:@@{USUFFIX}::g" \ + -e "s:opera:${PN}:g" \ + share/man/man1/* \ + share/applications/${PN}-browser.desktop \ + || die "sed failed" + + # Create /usr/bin/opera wrapper + echo '#!/bin/sh' > ${PN} + echo 'export OPERA_DIR=/usr/share/'"${PN}" >> ${PN} + echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \ + >> ${PN} + echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN} + + # Fix libdir in defaults/pluginpath.ini + sed -i \ + share/${PN}/defaults/pluginpath.ini \ + -e "s|/usr/lib32|${OPREFIX}|g" \ + -e '/netscape/{s|[0-1]|2|g}' \ + || die "sed pluginpath.ini failed" + + # Change libz.so.3 to libz.so.1 for gentoo/freebsd + if use elibc_FreeBSD; then + scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \ + while read i; do + if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; + then + export SANITY_CHECK_LIBZ_FAILED=1 + break + fi + sed -i \ + "$i" \ + -e 's/libz\.so\.3/libz.so.1/g' + done + [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] \ + && die "failed to change libz.so.3 to libz.so.1" + fi +} + +src_install() { + # We install into usr instead of opt as Opera does not support the latter + dodir /usr + mv lib/ "${D}/${OPREFIX}" || die "mv lib/ failed" + mv share/ "${D}/usr/" || die "mv share/ failed" + + # Install startup scripts + dobin ${PN} || die "dobin failed" + + # Stop revdep-rebuild from checking opera binaries + dodir /etc/revdep-rebuild + echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" \ + > "${D}"/etc/revdep-rebuild/90${PN} + + # Set PaX markings for hardened/PaX (bug #344267) + pax-mark m \ + "${D}/${OPREFIX}/${PN}/${PN}" \ + "${D}/${OPREFIX}/${PN}/operaplugincleaner" \ + "${D}/${OPREFIX}/${PN}/operapluginwrapper" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + elog "To change the UI language, choose [Tools] -> [Preferences], open the" + elog "[General] tab, click on [Details...] then [Choose...] and point the" + elog "file chooser at /usr/share/${PN}/locale/, then enter the" + elog "directory for the language you want and [Open] the .lng file." + + if use elibc_FreeBSD; then + elog + elog "To improve shared memory usage please set:" + elog "$ sysctl kern.ipc.shm_allow_removed=1" + fi + + # Update desktop file database and gtk icon cache (bug #334993) + gnome2_icon_cache_update + fdo-mime_desktop_database_update +} + +pkg_postrm() { + # Update desktop file database and gtk icon cache (bug #334993) + gnome2_icon_cache_update + fdo-mime_desktop_database_update +} |