From 57fcc89966d27a32112221494962bc720b347a89 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Tue, 15 Nov 2011 16:09:45 +0000 Subject: [PATCH] http://my.opera.com/desktopteam/blog/2011/11/15/wahoo-returns Package-Manager: portage-2.2.0_alpha74/cvs/Linux x86_64 --- www-client/opera-next/ChangeLog | 7 +- www-client/opera-next/Manifest | 12 +- .../opera-next/opera-next-12.00.1155.ebuild | 235 ++++++++++++++++++ 3 files changed, 249 insertions(+), 5 deletions(-) create mode 100644 www-client/opera-next/opera-next-12.00.1155.ebuild diff --git a/www-client/opera-next/ChangeLog b/www-client/opera-next/ChangeLog index 8c2190f59e6d..3e90ed858170 100644 --- a/www-client/opera-next/ChangeLog +++ b/www-client/opera-next/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-client/opera-next # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.52 2011/11/12 15:44:11 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.53 2011/11/15 16:09:44 jer Exp $ + +*opera-next-12.00.1155 (15 Nov 2011) + + 15 Nov 2011; Jeroen Roovers +opera-next-12.00.1155.ebuild: + http://my.opera.com/desktopteam/blog/2011/11/15/wahoo-returns 12 Nov 2011; Jeroen Roovers opera-next-12.00.1054.ebuild, opera-next-12.00.1060.ebuild, opera-next-12.00.1065.ebuild, diff --git a/www-client/opera-next/Manifest b/www-client/opera-next/Manifest index af2c9ba09f80..eef09deb892b 100644 --- a/www-client/opera-next/Manifest +++ b/www-client/opera-next/Manifest @@ -25,6 +25,9 @@ DIST opera-next-12.00-1105.x86_64.linux.tar.xz 12283792 RMD160 d68fe56fad56a97b4 DIST opera-next-12.00-1116.i386.freebsd.tar.xz 11421756 RMD160 2724e280b8d13744981bb6a8c08d0d7f7cd40946 SHA1 61ad2b3303976ea4ae3a418a4e78b4194a4e10bc SHA256 66d0fdbc85cf91d3f033c9b820340274c944a7a568156b5f585e0df3d0b0c13f DIST opera-next-12.00-1116.i386.linux.tar.xz 11441244 RMD160 79081f12b6a188a4b9127c45cc143d35980dbcf0 SHA1 6a6ba2e599e9807e8c2ba0b6a8c59a56cb77587e SHA256 3cf161689f6aba7d880c31f642f88242de0bd89c3f05ac401bc5c252ecd4bb2f DIST opera-next-12.00-1116.x86_64.linux.tar.xz 12262800 RMD160 d86d24f921275d6bdd2aab803284f33c33ed06ca SHA1 806633092025b929d2a9d06e570439e0ac618f5b SHA256 8f6b5516fed0e5743123be36c34a7fedaf2d5e4210de5c2fb58bd794c56b3231 +DIST opera-next-12.00-1155.i386.freebsd.tar.xz 11675104 RMD160 c98dbd25bd2356de71bbffa637af163c948f555a SHA1 62980e51997eb4541166c8c144887727f21f0c81 SHA256 efd2049595ed05ca04cadcb9bf1d72797f436fcf2c8638efd3ba6c5b226bac44 +DIST opera-next-12.00-1155.i386.linux.tar.xz 11679532 RMD160 c0c304e31017c03152086a65828b3fe7afb3cb53 SHA1 5a16b54d8fbfef05a70623492b1871150ef5115e SHA256 2dc151c006357c7dc232fb43fc59e367ff86dca2b1fba0453ce7f394d42636af +DIST opera-next-12.00-1155.x86_64.linux.tar.xz 12528336 RMD160 7118054a20159d29e36bc746a582da673e256b52 SHA1 e13351714accf8c2ddb879d518a1905ec2d1cf27 SHA256 1c1d0561225b47f31d72e7d90673c58005f50bf4de1ebb3527dd15f6bfd32415 EBUILD opera-next-12.00.1054.ebuild 6070 RMD160 fba576f62cdd9bd5ed13b55556a6a12c6cd2e26e SHA1 86057006720c00ef718c2e1f511bf60c71db890d SHA256 b813b8717f2371cc5d8944bc1b5d580069bc726eb72b74744849aa231c7a5f65 EBUILD opera-next-12.00.1060.ebuild 6066 RMD160 98513b129b4fab73d552e3be0f70a539e969aa89 SHA1 1f49bc8b646ca01c3551bc9534f6dc87880127da SHA256 8ebcf1a89704766cd1d3264400ac3731a1aa08ebef72d29e8366241721335194 EBUILD opera-next-12.00.1065.ebuild 6067 RMD160 f0f467805748382d9b2ef5bbfd0a4fd98a0f57bc SHA1 9c6066697654f724963709d00175d8a2ceaa3cc7 SHA256 47661f286f8dc938bde3323fdcda45f7d0822bb9b36f1f9a64f150d646c8f02d @@ -33,12 +36,13 @@ EBUILD opera-next-12.00.1085.ebuild 5864 RMD160 93d6c8cf57fe25c0b270768ef9328f9f EBUILD opera-next-12.00.1090.ebuild 5868 RMD160 5366700aff73cf14dbd102a425098c28ce1c3a6b SHA1 40841b6639e5127e71f050fa2bcf7c12132184f3 SHA256 60a21099766530f8cb32774291ae23e8bce5e3e4462d0d87710d8fc9abe41f34 EBUILD opera-next-12.00.1105.ebuild 5717 RMD160 321e023fded49af24e03f148a33b948135d09f65 SHA1 855d6cf6b7250b8a7b7ed645a8cbf5c13d44a4bc SHA256 bbebd2e50831e3ef4d6ffc1fd9de361a3dd680ddce021f68c2d9fd3c21e62609 EBUILD opera-next-12.00.1116.ebuild 5971 RMD160 0390e61dce8598afb0252fd76642d6a8d0ed8089 SHA1 28a1a7b16c9293ebd131f559364a8ba63907d019 SHA256 b83b229a1c88ba98186a1cd79bd13a8aaf9f42c596a191db1c5d82d7e1db1d59 -MISC ChangeLog 10592 RMD160 7b69aabd10ff1065c54e4ce45eaa2bc07c7c6ae7 SHA1 901f89b2ae7d6a4360d22f0838cce169834bd578 SHA256 2a272ec32365961aae6eea09d2d15c6d55234182e72d8237e914ceaa3c8a6259 +EBUILD opera-next-12.00.1155.ebuild 5969 RMD160 6de95530f4e4430f1f146ffa61b52604f24396fd SHA1 784e89366065959176e18035c696918bf673d41f SHA256 a949ba0c69e14621223ec264093df9343a7a776f3b62ce90544902ce18616a45 +MISC ChangeLog 10773 RMD160 fd6d41dc81ff0abc596da4a34afcb3ae3bac5db4 SHA1 2891d960a1b844109a2216dc2c18306f5f655e2b SHA256 386171951348a2af2431de63c733ecafb5fdb343621c0e4afb58c657e5354549 MISC metadata.xml 1638 RMD160 17ef00f7f0515dd445244bda48ddb4f3a8829597 SHA1 32894ca5e0efb115e4f98f27e46f547199e3dd74 SHA256 1479bc1f748e8186b8141d8a0eb7d45930c67f3fafd746527215e2ef1070be8a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk6+lFUACgkQVWmRsqeSphONRwCdFc7PxdxSkB+9pbnK2PYiVKSR -uDQAn12sw0Wmg3tHysP820ONdK/ZnNn9 -=0c/N +iEYEARECAAYFAk7Cjs8ACgkQVWmRsqeSphO2YACfaIanOULGpnshnQKrjJ6qf2Kp +zXkAn08LCkxXuzBc0HTM50gIcCb95dOg +=qGt6 -----END PGP SIGNATURE----- diff --git a/www-client/opera-next/opera-next-12.00.1155.ebuild b/www-client/opera-next/opera-next-12.00.1155.ebuild new file mode 100644 index 000000000000..c376188b63f3 --- /dev/null +++ b/www-client/opera-next/opera-next-12.00.1155.ebuild @@ -0,0 +1,235 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/opera-next-12.00.1155.ebuild,v 1.1 2011/11/15 16:09:45 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 gtk3 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="hwa_${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 + gtk? ( x11-libs/gtk+:2 ) + gtk3? ( x11-libs/gtk+:3 ) + x11-libs/pango + x11-libs/pixman +" +KDERDEPEND=" + kde-base/kdelibs + x11-libs/qt-core + x11-libs/qt-gui +" +GSTRDEPEND=" + dev-libs/glib:2 + dev-libs/libxml2 + media-libs/gst-plugins-base + media-libs/gstreamer + media-plugins/gst-plugins-meta +" +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 + x11-libs/libXt + gtk? ( ${GTKRDEPEND} ) + gtk3? ( ${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 gtk3; then + rm lib/${PN}/liboperagtk3.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 'export LD_PRELOAD="/usr/'$(get_libdir)'/libgtk-x11-2.0.so"' >> ${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 +} -- 2.26.2