diff options
author | 2011-08-26 16:06:17 +0000 | |
---|---|---|
committer | 2011-08-26 16:06:17 +0000 | |
commit | 77a927807c870b3f8327fad7a6d41da7440df2a0 (patch) | |
tree | e53c0f8df29eda710e051bc4ba244abf0d3c18a8 /www-client | |
parent | x86 stable per bug 380453 (diff) | |
download | historical-77a927807c870b3f8327fad7a6d41da7440df2a0.tar.gz historical-77a927807c870b3f8327fad7a6d41da7440df2a0.tar.bz2 historical-77a927807c870b3f8327fad7a6d41da7440df2a0.zip |
http://my.opera.com/desktopteam/blog/2011/08/26/opera-11-51-swordfish-release-candidate-2
Package-Manager: portage-2.2.0_alpha51/cvs/Linux x86_64
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/opera/ChangeLog | 8 | ||||
-rw-r--r-- | www-client/opera/Manifest | 12 | ||||
-rw-r--r-- | www-client/opera/opera-11.51.1087.ebuild | 232 |
3 files changed, 247 insertions, 5 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index a91a3c3b3664..27a747038a09 100644 --- a/www-client/opera/ChangeLog +++ b/www-client/opera/ChangeLog @@ -1,6 +1,12 @@ # 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.644 2011/08/23 19:27:38 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.645 2011/08/26 16:06:17 jer Exp $ + +*opera-11.51.1087 (26 Aug 2011) + + 26 Aug 2011; Jeroen Roovers <jer@gentoo.org> +opera-11.51.1087.ebuild: + http://my.opera.com/desktopteam/blog/2011/08/26/opera-11-51-swordfish-release + -candidate-2 *opera-11.51.1084 (23 Aug 2011) diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index 44c47c2c3ca7..088aa94f84a8 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -7,15 +7,19 @@ DIST opera-11.50-1074.x86_64.linux.tar.xz 11828208 RMD160 904e4e7fdb1e86d0d32e53 DIST opera-11.51-1084.i386.freebsd.tar.xz 11150208 RMD160 9dcada9480418f52ca18dde148e379f96046f9a0 SHA1 deb05e59027aef1a4893c8c4ccce8d7803693044 SHA256 ee20e4b4ef5c11e55f0cfa75d65012806a1185e0efa999700ad290fca37cdac3 DIST opera-11.51-1084.i386.linux.tar.xz 11080184 RMD160 a9aa3d0f38fe07d9fd3b7d9d0eafa56d8e139caf SHA1 a2fccd1a2fe9caff5ea2e286d5673f850eb8239b SHA256 d600b18eb57e7ed8dd3dbf57a175d38f3b3131137258116b167b635d59182230 DIST opera-11.51-1084.x86_64.linux.tar.xz 11855144 RMD160 ea673d847d2877ddd4c1e582b5f87ab8eb0a145f SHA1 97001d6d2f5d2a25adcf921aeefb9019b11a137b SHA256 7e43cf80980eceb8590006cd657b95e42dbba16bade796178f05ff6a6ad2a77b +DIST opera-11.51-1087.i386.freebsd.tar.xz 11149240 RMD160 1c44af8ffabfb2800db2b90d3cb988fd00966cab SHA1 2a0dd4151f4bab974f9fa13c17b9684ac4b991a2 SHA256 290589cf4c7ef1824c893a7fc5d42cbe964c361113bcc1c7ed0c5bc945b56118 +DIST opera-11.51-1087.i386.linux.tar.xz 11091928 RMD160 310b0cb07b973c17e633aaa467e7aeb4f2e2b1af SHA1 66bbb7be225cc873557f30fed0a3e9572c408650 SHA256 e2da38a1775b59ebf09e3695505634a3df9655b8812e3b4fe3163d02488d4aad +DIST opera-11.51-1087.x86_64.linux.tar.xz 11847484 RMD160 9be81036bc18d7d4f91ab18cf03a5c33b38488e9 SHA1 6e519ba468f09cf1de34ca659f71efe9aa8be664 SHA256 63a4fb2e480bd895384bfb8e2c8e71dc979354f0eb8423b552dc37089dc791ad EBUILD opera-11.50.1074-r1.ebuild 6043 RMD160 f8292bbc24c41afacc7735f78d51c114af475596 SHA1 dc694e8066101afa9768d881f53613eb39471214 SHA256 e6401108f761e78496e28c5f88ce22a976886f4e1650c0a08b839c85e8fe6804 EBUILD opera-11.50.1074.ebuild 6183 RMD160 710203dd6dbb19f619aa66ace5a332842c40cdd7 SHA1 8859c4cf89dca9d9a4dadd76726a3c4903c28fad SHA256 d3d87eb938b2bcc2a299510d3b9e4e13bd024c1236a6a6553f82f9a052e41db4 EBUILD opera-11.51.1084.ebuild 6048 RMD160 002dc0e5442d1f3084d394ee92e9e99c731cbe0e SHA1 3f1cad4777e8190ff81056b8bb656438f2d019f0 SHA256 5713ea64769cbf00bbb9d9f1954aff58d3a2c0f89f99223d3466a93793d70a81 -MISC ChangeLog 123215 RMD160 1b89d84650295571d01209329e5e277e3ecf3ca7 SHA1 0f6baf3378dfa600fc3e45ce62e3b240ed82a5b4 SHA256 651783f76db2a43a11f4f76a7cc6efed2053011288bf73239281e38c71153fa2 +EBUILD opera-11.51.1087.ebuild 6048 RMD160 91b66448fc2a4216d24ed03a63dfaddfc9ab5300 SHA1 6e4deb26c0fb1c1bdbf8cdff5621f094d08766e4 SHA256 3e431bbfb28dacdf4207296a045ba60ebbcfa56c3f895cb4a3ff6d51729d4b65 +MISC ChangeLog 123417 RMD160 c6b6c5fcfe1b87bbd01b8da9afc04ea8cb51e40e SHA1 42a3d0fe08b704ff1756a1d8bfcc543569c9ae18 SHA256 c2605cbe6abb381779e5f2f565affbf7953dcf413e34431b9a880a08dbc42ca4 MISC metadata.xml 641 RMD160 b02a2c03b42c19da338fc0d2c2460ae393b832e3 SHA1 b9225680d057968296b8828308f76fa8d9ea9c56 SHA256 37369b30382e2fb8c54d23e112070997135689468d3cd865ed194a55bb87ed58 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk5T/z0ACgkQVWmRsqeSphNQaQCdFy5YzccRb5Bu5sLi6ei+gzU0 -MU0An2LvBFQNWkL4M0ZyQeqpq73CasN7 -=hIwa +iEYEARECAAYFAk5XxH8ACgkQVWmRsqeSphNtFQCfUMbUlmJusDKxnMYZrgJSz6OS +d/wAn2w1KyolRvGORU8BofX5/w6Dj+No +=pXZy -----END PGP SIGNATURE----- diff --git a/www-client/opera/opera-11.51.1087.ebuild b/www-client/opera/opera-11.51.1087.ebuild new file mode 100644 index 000000000000..f6251724fb99 --- /dev/null +++ b/www-client/opera/opera-11.51.1087.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/opera-11.51.1087.ebuild,v 1.1 2011/08/26 16:06:17 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="rc2_${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 ${O_P}* "${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}-*.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 +} |