From: Jeroen Roovers Date: Fri, 4 Nov 2011 16:40:27 +0000 (+0000) Subject: http://my.opera.com/desktopteam/blog/2011/11/04/opera-11-60 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=637a52b1f3869b4799e9f758752da92293d6b615;p=gentoo.git my.opera.com/desktopteam/blog/2011/11/04/opera-11-60 Package-Manager: portage-2.2.0_alpha72/cvs/Linux x86_64 --- diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index b050c346d615..97fa46f6d037 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.654 2011/10/22 15:37:25 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.655 2011/11/04 16:40:27 jer Exp $ + +*opera-11.60.1134 (04 Nov 2011) + + 04 Nov 2011; Jeroen Roovers +opera-11.60.1134.ebuild: + http://my.opera.com/desktopteam/blog/2011/11/04/opera-11-60 22 Oct 2011; Jeroen Roovers -opera-11.51.1087.ebuild, -opera-11.51.1087-r1.ebuild: diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index 733a2c2489a2..b6d776b57602 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -4,13 +4,17 @@ Hash: SHA1 DIST opera-11.52-1100.i386.freebsd.tar.xz 11116644 RMD160 7692b599389e2d3e3e6f8c3ad8176d1d3bec6eff SHA1 4335431402fc0aea985c045c818dc23fbe00a6c4 SHA256 ae90c802ba9f1f487df71dddfb538af08265421341cc3146ac80ddfaa6b452d3 DIST opera-11.52-1100.i386.linux.tar.xz 11083092 RMD160 54252f6f655e2d7f38931ab3338c100e4ed49eca SHA1 3c4a7b36016aa9727cb7805db504d0159fe8ac6e SHA256 ccbfdcd0f9f5e35f64f6b71410b5af7b5e749f0976e530d1543d6cc58b989af9 DIST opera-11.52-1100.x86_64.linux.tar.xz 11860188 RMD160 dbeb3375eb9443559bbda05fc90a1e00f81df6cf SHA1 69eab27253f7dc9bb1e7ecf57983f0d675ec158e SHA256 9880b91733eddc17b85edba3eef0fe96c7e6a8fb3cc8c802b3719307214cb7a5 +DIST opera-11.60-1134.i386.freebsd.tar.xz 11376068 RMD160 6f2319a6881be04580391be2dca500e67d115ef9 SHA1 25297a7a34dfa7db871b5452e2cfdd0231e964e4 SHA256 83089cbb48f8ec9012c46a414d2df23fcfe7e43e47c7f424919d98fe6e371ded +DIST opera-11.60-1134.i386.linux.tar.xz 11354084 RMD160 850b0a2c856a330ae07f02ca306aa422eda8cf95 SHA1 57bb2502ef7cf669e16ba334554b1bdf14acc507 SHA256 84d8fc217151040f9339e32ef573d7f53f8ffe60db8b5e1a07dde9ff38bb3cdd +DIST opera-11.60-1134.x86_64.linux.tar.xz 12226704 RMD160 f7e6cad59b7bfce9dd03b6663c965cdd054319a4 SHA1 2dd4fae0107ecd5ba1e75cd758776b630711fccf SHA256 ce3e78400652a77162f9c9f10e559ba24693b3f5d9074a32932af8a25b6bb524 EBUILD opera-11.52.1100.ebuild 5700 RMD160 643a472817d7a959cabd8a927de31e17d8815428 SHA1 1709aabca35aee159583918d29572475e1a7764b SHA256 bc156a0c65f58d895c47d71351a42fa48c8ff07c4ef968e1486b4ed1a464a51b -MISC ChangeLog 124755 RMD160 907f2c8c1b7cadae24f300e2bb22e8e67275d28a SHA1 3b7eb1377ce722e85b6b9db7ae2feeefd9c160cf SHA256 33449b2fdd70190439d21a50a2bae9d1cf6b384a3add3866160da53099b0eaed +EBUILD opera-11.60.1134.ebuild 5707 RMD160 a67814293cb5c1d69604da3884d361ba950c9d5c SHA1 afbd082af348bd1adfba9c6ef6f6e3e1d6abb1f0 SHA256 49565f7352b36432fb8f7b702f6812179f0c540b1958683efa00ec3c54b6d160 +MISC ChangeLog 124924 RMD160 7fef47d39aadd947e37e1148bcdd335809001254 SHA1 9b1a9646640dfc35a12dfc142aa1e3d4309f3dc9 SHA256 78e0bbd9b47cf302c18bed77c5613209af981572499634f43557c3a800b5ba0e MISC metadata.xml 620 RMD160 f8a12fd1775a3eedf492dad65b79198d452f60a4 SHA1 d537cfe0d1da51a92612821d24ac851174389340 SHA256 208c8c09c43c5092d2491833c97990cd5b3d8fce38e03d70d90f0ffbbee84282 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk6i4zsACgkQVWmRsqeSphPsWwCeK6gf+zt8iTU4eYkX1J8W73gk -DokAnAuw2eGVAFcgA0i+kOGS2O5811uS -=tVTr +iEYEARECAAYFAk60FZMACgkQVWmRsqeSphOx/wCfYv7W65Nu9ZCwtlddqOqKPMWx +dLQAn06FQSY3/b9o+Yyw7G8LIYTGbpIs +=7p+P -----END PGP SIGNATURE----- diff --git a/www-client/opera/opera-11.60.1134.ebuild b/www-client/opera/opera-11.60.1134.ebuild new file mode 100644 index 000000000000..94ed1b145c80 --- /dev/null +++ b/www-client/opera/opera-11.60.1134.ebuild @@ -0,0 +1,227 @@ +# 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.60.1134.ebuild,v 1.1 2011/11/04 16:40:27 jer Exp $ + +EAPI="4" + +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="chicken_${O_V}-${O_B}" +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 + done + + # Remove package directory + rm -rf share/${PN}/package + + # Optional libraries + if ! use gtk; then + rm lib/${PN}/liboperagtk2.so || die + fi + if ! use kde; then + rm lib/${PN}/liboperakde4.so || die + fi + if ! use gstreamer; then + rm -r lib/${PN}/gstreamer || die + fi + + # Unzip the man pages before sedding + gunzip share/man/man1/* || die + + # 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}-*.desktop \ + || die + + # Replace "Opera" with "Opera Next" + if [[ ${PN} = opera-next ]]; then + sed -i share/applications/${PN}-*.desktop \ + -e "/^Name=Opera\|^ Next/s:Opera:& Next:" || die + fi + + # 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} + + # 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 + 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 share/ "${D}/usr/" || die + + # Install startup scripts + dobin ${PN} + + # 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() { + 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 +}