diff options
author | Jeroen Roovers <jer@gentoo.org> | 2011-01-11 18:13:45 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2011-01-11 18:13:45 +0000 |
commit | f65f9d674cf85364e1323af70b6524208bcd4ef1 (patch) | |
tree | bdd080a8ab7f8e0bb63dac9cf978d6ff7089213d /www-client | |
parent | ppc stable wrt #344685 (diff) | |
download | historical-f65f9d674cf85364e1323af70b6524208bcd4ef1.tar.gz historical-f65f9d674cf85364e1323af70b6524208bcd4ef1.tar.bz2 historical-f65f9d674cf85364e1323af70b6524208bcd4ef1.zip |
http://my.opera.com/desktopteam/blog/2011/01/11/snapshotzilla
Package-Manager: portage-2.2.0_alpha14/cvs/Linux i686
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/opera/ChangeLog | 7 | ||||
-rw-r--r-- | www-client/opera/Manifest | 5 | ||||
-rw-r--r-- | www-client/opera/opera-11.01.1164.ebuild | 225 |
3 files changed, 235 insertions, 2 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index f90847c942b7..5cbb61820330 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.585 2011/01/08 16:43:26 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.586 2011/01/11 18:13:45 jer Exp $ + +*opera-11.01.1164 (11 Jan 2011) + + 11 Jan 2011; Jeroen Roovers <jer@gentoo.org> +opera-11.01.1164.ebuild: + http://my.opera.com/desktopteam/blog/2011/01/11/snapshotzilla *opera-11.01.1160 (08 Jan 2011) diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index 64da712ca795..482757061a71 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -6,8 +6,11 @@ DIST opera-11.00-1156.x86_64.linux.tar.bz2 12858732 RMD160 2d06fcd4f8ff3e03ebdfd DIST opera-11.00-1156.x86_64.linux.tar.xz 10736488 RMD160 feb61d84cff376e1a7bbc0378c584ca2aec20089 SHA1 1920c7ece83d94adfb1499443cc14be2c7e98154 SHA256 5b3a9a1c5cf54e5e28313e8b0b4238857a166232674688e888ca9bf52e0a9aed DIST opera-11.01-1160.i386.linux.tar.xz 9975232 RMD160 ee1788ec90a471eb2d7f2f9d514ee2cdfae435dc SHA1 662e69b3272e9a75675223e82f837e3ca1e47d35 SHA256 8e1185e6601728d3801c02f9ee60fdc8b47923efc87c2efe27b8b8ba048bd5a4 DIST opera-11.01-1160.x86_64.linux.tar.xz 10689236 RMD160 b25b3472c3a831b76c907dfb4a8f8ff4b2820c6f SHA1 73d60d0c3b30a22628f36bba9beac9e7ae58a732 SHA256 89c870c51281b4c3d69af8f428b7c0ed33784c827c11259ff76c8ce176fc8b1d +DIST opera-11.01-1164.i386.linux.tar.xz 9984096 RMD160 509bcc6414a8dba1a20a240671e574b82d8be9c9 SHA1 c9f8c1ff09416006bc6050b43a1ff8df9d8b4d13 SHA256 fdfc30f52f45e9270a08972175bed88b6ba10f47ab142f5ecb3692e31def90b5 +DIST opera-11.01-1164.x86_64.linux.tar.xz 10685376 RMD160 6f394fc65bc2dc257d501f821d2a2af982059b7b SHA1 8d847c74e1fb4cbe571ce482bf955265bd76cdd7 SHA256 817f3bbda6e29e9ec23981e27618cdf53f765c07fccf98f9879f3a99228d80fa EBUILD opera-11.00.1156.ebuild 5889 RMD160 ce0ab801ae8520d22ad00865830f732876f2f1c3 SHA1 48433b8e120912bc889bebcca1f6837fdcf4ffa7 SHA256 1da515bebdae03ccfb862524796a985ab3ae68061af184e87ec637ce735441e2 EBUILD opera-11.00_pre1156.ebuild 5323 RMD160 e5c15c36e11945f8e9d1e8c9d8c08bc9373de5c4 SHA1 c3e93e13a11edb96da1b1cc1558a384c83273b03 SHA256 6037158e91c5bf5a77d32a0e02d42f06f75b9cbc718f05efc4643906531bed58 EBUILD opera-11.01.1160.ebuild 5924 RMD160 6f34529e549f0ca6dd76ea28b0d05f3698c95a92 SHA1 dafe57d1726ae02fa8eaa4cb1765e0b6a82dca34 SHA256 bd3ff2e6024a8654651bec643b86602f529814f28f35082b410fcdbac3df10d1 -MISC ChangeLog 112834 RMD160 31e64ed97eaa8dce8bf45c69b1898c41b30cfb74 SHA1 f3d4c7d8445b54d7e243187e3221328cf50469d8 SHA256 19782066d62b546993801229afe1b25039652ed8b3870d47f28f4d7ae2695770 +EBUILD opera-11.01.1164.ebuild 5932 RMD160 3c7319672bc699b1d440f78650684041a8eb00d3 SHA1 1e5b5cbcef6947c8785bcc696aae3ee9af03b215 SHA256 bd44a4c42a3a0ee237fc779e7d3cffe23cae8d4972f6b82438cd571eeb369f87 +MISC ChangeLog 113005 RMD160 c5ed8ff14a48e591acbc9cec9ed6f3eacb7ef2c8 SHA1 10c4e7b3646901a12177c255f9c919d476fead79 SHA256 88c7f76e93326d26155836f3b7bcf6b01524278b80151e07177340cee3118245 MISC metadata.xml 651 RMD160 5b15e2f22dc49ee158b4c76f4760219c1f85c096 SHA1 1de6dff612ef2667f194ed57d352e09a0879fbc1 SHA256 84accea33d9ad1436d9a425ddf5de328d31af559b7c9764d54546d3b357c7a10 diff --git a/www-client/opera/opera-11.01.1164.ebuild b/www-client/opera/opera-11.01.1164.ebuild new file mode 100644 index 000000000000..3b11f04c0d40 --- /dev/null +++ b/www-client/opera/opera-11.01.1164.ebuild @@ -0,0 +1,225 @@ +# 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.01.1164.ebuild,v 1.1 2011/01/11 18:13:45 jer Exp $ + +EAPI="3" + +inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator + +DESCRIPTION="A standards-compliant graphical Web browser" +HOMEPAGE="http://www.opera.com/" + +SLOT="0" +LICENSE="OPERA-10.53 LGPL-2 LGPL-3" +KEYWORDS="~amd64 ~x86" +IUSE="elibc_FreeBSD gtk kde +gstreamer" + +RESTRICT="test" + +# http://snapshot.opera.com/unix/minor_11.01-1160/opera-11.01-1160.i386.linux.tar.xz +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_U="http://snapshot.opera.com/" +O_P="${PN}-${O_V}-${O_B}" +O_D="earlofpudding_${O_V}-${O_B}" + +SRC_URI=" + amd64? ( ${O_U}unix/${O_D}/${O_P}.x86_64.linux.tar.xz ) + x86? ( ${O_U}unix/${O_D}/${O_P}.i386.linux.tar.xz ) +" + +OPREFIX="/usr/$(get_libdir)" + +QA_DT_HASH="${OPREFIX}/${PN}/.*" +QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" + +O_LINGUAS=" + be bg cs da de el en-GB es-ES es-LA et fi fr fr-CA fy hi hr hu id it ja ka + ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk vi zh-CN zh-HK + zh-TW +" + +for O_LINGUA in ${O_LINGUAS}; do + IUSE="${IUSE} linguas_${O_LINGUA/-/_}" +done + +DEPEND=" + >=sys-apps/sed-4 + app-arch/xz-utils +" +RDEPEND=" + gtk? ( + =x11-libs/gtk+-2* + dev-libs/atk + dev-libs/glib + x11-libs/cairo + x11-libs/pango + x11-libs/pixman + ) + kde? ( + kde-base/kdelibs + ) + dev-libs/expat + media-libs/fontconfig + media-libs/freetype + gstreamer? ( media-plugins/gst-plugins-meta ) + sys-apps/util-linux + sys-libs/zlib + virtual/opengl + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXt + x11-libs/libxcb + x11-libs/xcb-util +" + +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() { + # Remove doc directory but keep the LICENSE under another name (bug #315473) + mv share/doc/opera/LICENSE share/opera/defaults/license.txt + rm -rf share/doc + for license in share/opera/locale/*/license.txt; do + rm -v "${license}" + ln -svn /usr/share/opera/defaults/license.txt "${license}" \ + || die "mv license" + done + + # Remove package directory + rm -rf share/opera/package + + # Leave libopera*.so only if the user chooses + if ! use gtk; then + rm lib/opera/liboperagtk.so || die "rm liboperagtk.so failed" + fi + if ! use kde; then + rm lib/opera/liboperakde4.so || die "rm liboperakde4.so failed" + fi + + # Unzip the man pages before sedding + gunzip share/man/man1/* || die "gunzip failed" + + # Replace PREFIX and SUFFIX in various files + sed -i \ + -e "s:@@{PREFIX}:/usr:g" \ + -e "s:@@{SUFFIX}::g" \ + -e "s:@@{_SUFFIX}::g" \ + -e "s:@@{USUFFIX}::g" \ + share/mime/packages/opera-widget.xml \ + share/man/man1/* \ + share/applications/opera-browser.desktop \ + share/applications/opera-widget-manager.desktop \ + || die "sed failed" + + # Create /usr/bin/opera wrapper + echo '#!/bin/bash' > opera + echo 'export OPERA_DIR=/usr/share/opera' >> opera + echo 'exec '"${OPREFIX}"'/opera/opera "$@"' >> opera + + # Fix libdir in defaults/pluginpath.ini + sed -i \ + share/opera/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() { + # Remove unwanted linguas + LNGDIR="share/${PN}/locale" + einfo "Installing 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}" + fi + done + + # 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} ${PN}-widget-manager || die "dobin failed" + + # Stop revdep-rebuild from checking opera binaries + dodir /etc/revdep-rebuild + echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera + + # Set PaX markings for hardened/PaX (bug #344267) + pax-mark m \ + "${D}/${OPREFIX}/opera/opera" \ + "${D}/${OPREFIX}/opera/operaplugincleaner" \ + "${D}/${OPREFIX}/opera/operapluginwrapper" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + elog "To change the UI language, choose [Tools] -> [Preferences], open the" + elog "[General] tab, click on [Details...] then [Choose...] and point the" + elog "file chooser at /usr/share/opera/locale/, then enter the" + elog "directory for the language you want and [Open] the .lng file." + + 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 +} |