From 66737aee5bda43152a10a856b7fda2db07e9be10 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Wed, 14 Sep 2011 00:39:34 +0000 Subject: [PATCH] http://my.opera.com/desktopteam/blog/2011/09/13/es5 Package-Manager: portage-2.2.0_alpha55/cvs/Linux x86_64 --- www-client/opera-next/ChangeLog | 7 +- www-client/opera-next/Manifest | 12 +- .../opera-next/opera-next-12.00.1065.ebuild | 232 ++++++++++++++++++ 3 files changed, 246 insertions(+), 5 deletions(-) create mode 100644 www-client/opera-next/opera-next-12.00.1065.ebuild diff --git a/www-client/opera-next/ChangeLog b/www-client/opera-next/ChangeLog index 7056e46fdcca..13ee584d2bf4 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.41 2011/09/08 16:00:27 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.42 2011/09/14 00:39:34 jer Exp $ + +*opera-next-12.00.1065 (14 Sep 2011) + + 14 Sep 2011; Jeroen Roovers +opera-next-12.00.1065.ebuild: + http://my.opera.com/desktopteam/blog/2011/09/13/es5 *opera-next-12.00.1060 (08 Sep 2011) diff --git a/www-client/opera-next/Manifest b/www-client/opera-next/Manifest index 39b942c936aa..57243b0cd2f2 100644 --- a/www-client/opera-next/Manifest +++ b/www-client/opera-next/Manifest @@ -7,14 +7,18 @@ DIST opera-next-12.00-1054.x86_64.linux.tar.xz 11969604 RMD160 2b97f58673d3c4dbe DIST opera-next-12.00-1060.i386.freebsd.tar.xz 11271208 RMD160 cdf28e0d0be1845974d9017fd50ada8309c5fd4b SHA1 05666f641ae1f97bba0975133e5372cf963c382c SHA256 311927b08e351f5eeee9a5bc2587c4d21d780238f912c8858f1b3ef0ec15c37b DIST opera-next-12.00-1060.i386.linux.tar.xz 11192364 RMD160 3e10d30c2a3bcd5e0c3a057269c21ea2d6d76ead SHA1 2d5617d617801c3fbd7ec0486fc6f00cccc1ebfd SHA256 74ec2e48e2bbed0c79a7f5149033129227ef8895a366ac631695b98f85d88e04 DIST opera-next-12.00-1060.x86_64.linux.tar.xz 11981612 RMD160 2e34bfd855379347c4b24ca6e1cf82b0f5cd6470 SHA1 4d1869902468439b6d84ecfca871594c161371e0 SHA256 8f3e6f0655910c371fabdffc260696f3711bdc71a755d1a0197b3e09a8230a27 +DIST opera-next-12.00-1065.i386.freebsd.tar.xz 11262156 RMD160 4d5974ae898bc2ff488e929d1630470acf7db099 SHA1 66a3fb657b257a36df24395c290900781bc581c9 SHA256 05086d1ade5458483eceb70d3bcc60ba47edda03e0eddf414ac21371362a69da +DIST opera-next-12.00-1065.i386.linux.tar.xz 11238140 RMD160 a6821243cf66b337b053bb61f5dac1c5149572c6 SHA1 3118f53812ca21b19656df98b7396f8232c10e49 SHA256 9fc7fd7b06c7ea83a8b516448a4775d82bd08430392e4f26ac8148ff1a0dcc54 +DIST opera-next-12.00-1065.x86_64.linux.tar.xz 12023324 RMD160 e06e8438ea3d0d094d2c0ca9b1a6539868c94364 SHA1 04d3d7c2d4731eb74e4898ef055b2d5e57a86c2d SHA256 3b8b2210ea3a8abd86e768d215ae020f30f31bb55d2ec3da6842b1f5dc6d7286 EBUILD opera-next-12.00.1054.ebuild 6068 RMD160 caa4d42e4a0e8a726c0170608e74aa12a7f6522a SHA1 61eb01e530a65333edddebf89755f42a0e97f739 SHA256 a410dae1dad6cfa7c3048e88ab310fe551f9982a56ed91d89e26330e51ab27ce EBUILD opera-next-12.00.1060.ebuild 6064 RMD160 6e3d6efd15e0e1d3cbc1bd071db65397961362e0 SHA1 85f279d9384346f6fdff9fde56ac33997cb237ee SHA256 bbc2ab32bc18b1a96aed409a5e7867300a82a7521624c058855fb2ec3ddd62db -MISC ChangeLog 8406 RMD160 b141d106e23db1baf76c5c2b49613f14faf4006b SHA1 97fa304ae82d89c2a3fe053ef4c9a559a7b3944c SHA256 54b0562870867624eecaf61e4306102ac6e995293ab56ab0c478465cdd5f7a52 +EBUILD opera-next-12.00.1065.ebuild 6065 RMD160 771f43d386b283f862295a642d57c85b6fb81629 SHA1 c20624909c9df94d3ca30f00cc980540898a81c4 SHA256 93d7481ff1e10f899ddd3627e933d1902fdc7e27bd5aaf68eb4140f9eb61991c +MISC ChangeLog 8577 RMD160 b6934bfe06e10a194ab7925acccbde94e071df27 SHA1 266301f6fa05f9439d6ea5425df3f9c3f3096a8a SHA256 9af71a3de44a7eca68a00912083c5586ab4b6c40f019a9b5672c6681e02a58fc MISC metadata.xml 1547 RMD160 465d146bcfdb6553f7f0ab2dddd68c4dcb2e7731 SHA1 1afb7e0ccc0833ba0eb73be38b282b66ad629ff6 SHA256 5cfc6e7cbf3c454d563eb407b4569f0f5a9b3ce7770026d6055f27211d481915 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk5o5qYACgkQVWmRsqeSphPMlwCfauCAWp0X0BnblGBSR0pwjPb9 -oUoAn3TVaUTITEUQ5lsl/AJzsSNkrhCk -=6qwJ +iEYEARECAAYFAk5v98wACgkQVWmRsqeSphO9DgCcC8DAUJa2jaEeL6T1Hkd5ncJO +KicAnj34Psqs9Mmbl+jUYfH7WhvbgekT +=hsaC -----END PGP SIGNATURE----- diff --git a/www-client/opera-next/opera-next-12.00.1065.ebuild b/www-client/opera-next/opera-next-12.00.1065.ebuild new file mode 100644 index 000000000000..a0cb069189f1 --- /dev/null +++ b/www-client/opera-next/opera-next-12.00.1065.ebuild @@ -0,0 +1,232 @@ +# 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.1065.ebuild,v 1.1 2011/09/14 00:39:34 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="coffeecode_${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 "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}/liboperagtk2.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}-*.desktop \ + || die "sed failed" + + # 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} + + # 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} + + # 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