From: Jeroen Roovers Date: Wed, 11 Jan 2012 18:26:37 +0000 (+0000) Subject: http://my.opera.com/desktopteam/blog/2012/01/11/tunny X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=502d3c05be15f030dc08a23852f1cf68c21265c4;p=gentoo.git my.opera.com/desktopteam/blog/2012/01/11/tunny Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64 --- diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index 520a424b13ea..52bdcade5eb0 100644 --- a/www-client/opera/ChangeLog +++ b/www-client/opera/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-client/opera # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.681 2012/01/01 21:55:35 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.682 2012/01/11 18:26:37 jer Exp $ + +*opera-11.61.1234 (11 Jan 2012) + + 11 Jan 2012; Jeroen Roovers +opera-11.61.1234.ebuild: + http://my.opera.com/desktopteam/blog/2012/01/11/tunny 01 Jan 2012; Andreas K. Huettel +ChangeLog-2010: Split ChangeLog. diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index 9b07bbb5c524..22713971ebf4 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA1 DIST opera-11.60-1185.i386.freebsd.tar.xz 11537236 RMD160 9b8dc467f698cf540c0f537a98677930a077a0c4 SHA1 befc0d908b76d930bf9a0ac753ccfc2b086189fb SHA256 eb38671f9b5e06ba7b905bd9ff22262e9ef335c37414bbb0ea4234aa2b2ba46d DIST opera-11.60-1185.i386.linux.tar.xz 11505432 RMD160 f645c292f34a08a2bc44107f3ca57f4f0a1a55bd SHA1 96e3366afff3b738db9fadbd1046623827afaf00 SHA256 a73584938a558d1b9c6f250d1bf127b02fc6ca5c0378c4ee3009c178fe1c8a74 @@ -7,25 +7,19 @@ DIST opera-11.60-1185.x86_64.linux.tar.xz 12347432 RMD160 50de639af506a049384376 DIST opera-11.61-1222.i386.freebsd.tar.xz 11526792 RMD160 728ee5d69bfa9f1ff6be55729d158bed74a407ed SHA1 88dfe4af7a7e9c6ef8e60de82c3b7739c3ccc861 SHA256 3516025cb1089080dc14f037f89d505cdf322a7730d33af01d822f035ed7382c DIST opera-11.61-1222.i386.linux.tar.xz 11489688 RMD160 2e2662ddcc0f9f7abee3de514acdd823614d66d8 SHA1 1bc9f00a7fb6d032eeaaad93cd163c1828762b92 SHA256 f536f15dc242faf7fb55a1992f2baaa339652cc3f669b532b784845e8fddfa00 DIST opera-11.61-1222.x86_64.linux.tar.xz 12314540 RMD160 ad10300b0c83879e6bd8c8fb40e5526cd5d0941d SHA1 4c63794365e8f2090d49fc17a43fc50fe817e04f SHA256 0b4f14774ac9f0731a692475f92ef325c35bef13feb959b4d5ca82221baf47e1 +DIST opera-11.61-1234.i386.freebsd.tar.xz 11530448 RMD160 fc6bba54c4ffd52f10fedea512bd39dabaccc028 SHA1 00a3f986b9cbb259252433b25f7e2f58e1bdd24a SHA256 912c0714ec8ebe794376574fe2c2ff80d181e3fd3324876b5fdc116b194faf12 +DIST opera-11.61-1234.i386.linux.tar.xz 11483424 RMD160 4358e88eaef449f00227721b1991389119da523f SHA1 3c62b93fda73d223d185efccc5642822379f3bce SHA256 4fa72c6c50f043064ac0434ebb9ece34a648bcdb821e3f41585bde8ca25d05c5 +DIST opera-11.61-1234.x86_64.linux.tar.xz 12321584 RMD160 a907f3c23d8844a88e2bd7d9d8e97ab26c782668 SHA1 02e675ce12b6a36f9fdef1d5b0c644b714007650 SHA256 e75773644623f767e088a0b88a07a97dd7a373c9c35a73e73a6bc20f74f00f9f EBUILD opera-11.60.1185.ebuild 5874 RMD160 7b3b4af0b9c79819e7497c2469c150e6a880672e SHA1 d4e4d0297b094cb1cc37b066b6b76f26470b8413 SHA256 e11305f5594a97bfeb1e7daecef9aa2c76c6ef90da1c41a5451f2172a1ee6aef EBUILD opera-11.61.1222.ebuild 5549 RMD160 82b1247cf452fab5669d8e54d6fe114441af29e2 SHA1 7f34e90d89364c543cfea9db7146991e682c2fa1 SHA256 a6a0b0a96a18c8b970e024fc3dd9bda6e6c4422cd10e814579cb32dbf82adc77 -MISC ChangeLog 17611 RMD160 af5716c4122a5afe2023cf000aeb776e6352d3dd SHA1 dcdae287e792d743b4ca0b58be3bde431cc71267 SHA256 879bbdc0f0d7680f59cb8e008cb899a382cb4de52f48057bfd43dff04a488e87 +EBUILD opera-11.61.1234.ebuild 5542 RMD160 a6397e1c293699d7d9f2ad8b6df3ca78ab1be01a SHA1 16715e064e0100992baa2c2260f5bbc5091caea1 SHA256 37f7f2d97e9cc1a00ccbe293a2b5a4b89ee94b54fd2f1382ff6c82cd67f9adaa +MISC ChangeLog 17768 RMD160 b1dfa3ebf97285cf1ae99dd2a9eedb614bdcacdd SHA1 8392c43d81e2fb7e4282aabfb238e0fbacb570d5 SHA256 6f9e87816c5e4b6dd0e3d5995d51aae6919526d84095f6d98114c19a825045f3 MISC ChangeLog-2010 112299 RMD160 e786fcfeb4ac57db285ff420ccd9705b7c1f298c SHA1 09aef1136180ae363fd3c6bdbd3eb27f996f80c5 SHA256 5c3b5c58119b4a6b1911d840892c42234f25dae57452287fb0a9e6cca78ed171 MISC metadata.xml 732 RMD160 28acd15c216329d807150c88fb0861eb1383c61c SHA1 9ff443c6f422e8b018d29d21948da71eda6a4295 SHA256 bd388fb8f6b0aa2cd98fcfc290b677df712be3ef14537102e02665ea2f0d871a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iQIcBAEBCgAGBQJPANbSAAoJEEb+UGWnxTyHmIAP/R2AFauQ2PKNgpJbJ+eg3qke -5SHUZ7/oIdsLMESy/LiKVYue84oBB2kltayesm/Th1JcEf4YxX+vGn/AlDEjMafl -9hqo3kKrE8PGRAobc1V50esRAP1XnxtIs991F1yHFOXuDGWLVYQDX88gEzCXZhG2 -VHRoI81RTBrCxdR+8vqOSlUY7D5mxoRrZB0bnBWTu7BOnUrnRYMfk5sB4PfKGsUe -6ecvur2NrwxfZQ290o0g+rjuqRaOq3GBUX0XbGc0F2dlpoP5Tb1yhDDYU5592A4z -TEnpJmBrGiFNksFn0UuZV0679rM9UjAdz8Gmi57dGZCdaVntt/EXj2b97yObK9W6 -ah+4yOaAinMF6qrYMNJd60+hmS7JyFctbfUBnFAnh7PLy1Z/lfCArzrjpKmzg+n5 -b9kj+NZwbqXt1+yzDMAuLfRukmNxyLBQ2Gaz5QueN6AfRc8PIVHUi8eWrCkg462j -PSXd5MDq5dGPSoNo2uWo8qyx8c9YzNG0iLxk7LsjDH5iM01EgPXUP8BP2RiFCUl2 -1ZuJ26/pqPl0ORTDiUQUXDdTIuvCxUUFvQOfdbud9Mgf5XKBrmMmTQww7Z2Mq2xC -8r7n9iVXk73Vt+5j7adu87YE3VyszqmluplgEIZZFlLQrC7XUh1VBXn3WjNPY3I8 -vL0vTsMoiQfFBYjLP/YN -=69wR +iEYEARECAAYFAk8N1GMACgkQVWmRsqeSphM8mACfZbcpHWhsQ5JdgwDiZ06FwCeK +INUAnAhFbwZ/F8RK3xRYzRo6HdI2ri1F +=4Ixi -----END PGP SIGNATURE----- diff --git a/www-client/opera/opera-11.61.1234.ebuild b/www-client/opera/opera-11.61.1234.ebuild new file mode 100644 index 000000000000..aae05376efc8 --- /dev/null +++ b/www-client/opera/opera-11.61.1234.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-11.61.1234.ebuild,v 1.1 2012/01/11 18:26:37 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="orange_${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} ) +" +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 '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 +}