diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-09-27 16:33:52 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-09-27 16:33:52 +0000 |
commit | 0337df81bbea85ebcd2f9fefa9cc4e58cd08029c (patch) | |
tree | 72c57b18775e7343ad828176d1456286b0761009 /www-client | |
parent | Marked ~mips for bug #285952 (diff) | |
download | historical-0337df81bbea85ebcd2f9fefa9cc4e58cd08029c.tar.gz historical-0337df81bbea85ebcd2f9fefa9cc4e58cd08029c.tar.bz2 historical-0337df81bbea85ebcd2f9fefa9cc4e58cd08029c.zip |
http://my.opera.com/desktopteam/blog/2010/09/27/hash-tag-operawesome
Package-Manager: portage-2.2_rc86/cvs/Linux i686
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/opera/ChangeLog | 7 | ||||
-rw-r--r-- | www-client/opera/Manifest | 6 | ||||
-rw-r--r-- | www-client/opera/opera-10.70_pre9053.ebuild | 201 |
3 files changed, 212 insertions, 2 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index 8dab656f4bf2..1ab7148124df 100644 --- a/www-client/opera/ChangeLog +++ b/www-client/opera/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-client/opera # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.548 2010/09/22 17:24:47 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.549 2010/09/27 16:33:52 jer Exp $ + +*opera-10.70_pre9053 (27 Sep 2010) + + 27 Sep 2010; Jeroen Roovers <jer@gentoo.org> +opera-10.70_pre9053.ebuild: + http://my.opera.com/desktopteam/blog/2010/09/27/hash-tag-operawesome *opera-10.70_pre9050 (22 Sep 2010) diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index 8445775d024e..a86733d88222 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -13,9 +13,13 @@ DIST opera-10.70-9047.x86_64.linux.tar.bz2 13894839 RMD160 0b5549c452dfa4ca03245 DIST opera-10.70-9050.i386.freebsd.tar.bz2 12781800 RMD160 d315a8659490d679a1a088164b5fe63e15f2add0 SHA1 cc6dca9e1850727bf44a83bd76854330eced8eea SHA256 af9d4bc430df0e2d0d3ac636bdbf6205e73cf00e299c13cee22c7e928660a8d7 DIST opera-10.70-9050.i386.linux.tar.bz2 12726527 RMD160 2d10b40448bc0bdccd71f327a009c344aedd8ee8 SHA1 6a0f298c435a0e182d1a9128e1a8e40b4f896283 SHA256 e047dd50f3086cd96e1b6a4aa5a74fcecee09da77713923e9a20ae143c4f53c1 DIST opera-10.70-9050.x86_64.linux.tar.bz2 13894086 RMD160 c10204de0aab1585a35d238640a2ac79aaa9321f SHA1 4f47521722a4d1d9bc53e1c210e8f2e2a88ad93e SHA256 f9579b06d191b35bf696ba5bdc378f8684c622acb432f9ced2f68ea9eb401609 +DIST opera-10.70-9053.i386.freebsd.tar.bz2 12781169 RMD160 fe8438af552d70f8d248c60bdf672923920e0fde SHA1 a78a5c023c879d41c99ac817e5582fcaf76556af SHA256 7625d71e44de22053bf30fdb6fbb81e8b25c1ab44a75b5ad7cfc78059209f0f8 +DIST opera-10.70-9053.i386.linux.tar.bz2 12723570 RMD160 638a8c811d8e43919f2a70b59ec8a886ce127d75 SHA1 fb66bb930211c7f1b04cc21addf8dedbf432e2fe SHA256 083b71b0e736bb5ecb43b75a8197aef32c86f8efd1c982891b5c4b3e4603b65a +DIST opera-10.70-9053.x86_64.linux.tar.bz2 13893652 RMD160 6dab049b87edc428f57f859ad2749d0bd9492a44 SHA1 eaf9c5132d8a1a8990ea4f925f446afa8a0af6de SHA256 b11dec4842149818889a128bd8c9b8087522162113c3ff3b9efdac5b73e62746 EBUILD opera-10.61.ebuild 5080 RMD160 5c3dd262c642c215b5fcd68343b16b1651cc337e SHA1 bdf3baffd399f9bc75a9d4578946e8027a829eda SHA256 c78872128d7332823a68cedbeafe33d835ba4b5e74866ec8a693f4dc7daea6fd EBUILD opera-10.62.ebuild 5176 RMD160 ff24120059ba8cad32bf5fc5bfbc9ff8d8ac727a SHA1 5e328a3a6ce4abdfba2b49987f6e6e13ef188961 SHA256 11b595042cf2c96f3887e0304e05885a75184397733b676d1c926a4018fec31e EBUILD opera-10.70_pre9047.ebuild 5139 RMD160 edcd77aa694b04b57d37500712c4ee16bfb11cdc SHA1 b01e4756bc5e187a7a83834895cbfc87bfe4ca1a SHA256 296066dcf2c2bd9754a15611c530f3313a667fbe6b10223e405172b5165678bd EBUILD opera-10.70_pre9050.ebuild 5144 RMD160 72cdc93fca659989f420c69f931b7593c5baef28 SHA1 f07be24d54b35d5e81269f0b7eec6f707fb93a8f SHA256 c6e268a8471fecaa3092e2195142d526665c4bf376bc68ea2a2fa891bc291afc -MISC ChangeLog 105696 RMD160 e7795cd3c2863cde046e417a08c0c445dea7c310 SHA1 67369a6075db3113f1fccb709b3f4b5ff0589f45 SHA256 4bbfc7f1450a32a40eedd1795535483553130fa82618e86c5f725bf491eadda2 +EBUILD opera-10.70_pre9053.ebuild 5138 RMD160 6609eba4c9d6caff37f0cdee1a3193942a03bca2 SHA1 31e11518e8141af950a13b9c0e9dfb18bae19a5c SHA256 38fd2590a666ea5186446305da0a18131bd02865d4b3baab12bc726aaf75b6ea +MISC ChangeLog 105880 RMD160 2d3a6e912fa72a2885ddb9478452ad74aba10741 SHA1 61fcaf275f70f26c57dd80f2c870cf498257b49e SHA256 0e01f22e3ac8499677c4c2c30123d58b5d63d103b8644edf1e80afb170d927d1 MISC metadata.xml 651 RMD160 5b15e2f22dc49ee158b4c76f4760219c1f85c096 SHA1 1de6dff612ef2667f194ed57d352e09a0879fbc1 SHA256 84accea33d9ad1436d9a425ddf5de328d31af559b7c9764d54546d3b357c7a10 diff --git a/www-client/opera/opera-10.70_pre9053.ebuild b/www-client/opera/opera-10.70_pre9053.ebuild new file mode 100644 index 000000000000..7e339f3a6e84 --- /dev/null +++ b/www-client/opera/opera-10.70_pre9053.ebuild @@ -0,0 +1,201 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.70_pre9053.ebuild,v 1.1 2010/09/27 16:33:52 jer Exp $ + +EAPI="2" + +inherit eutils multilib + +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 ~x86-fbsd" +IUSE="elibc_FreeBSD gtk kde +gstreamer" + +RESTRICT="mirror test" + +O_PWD="bird" +O_V="${PV/_pre/-}" +O_P="${PN}-${O_V}" +O_HTTP="http://snapshot.opera.com/" +O_U="${O_HTTP}unix/${O_PWD}_${O_V}/" + +SRC_URI=" + amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 ) + x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 ) + x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 ) +" + +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" + +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} + if [[ ! -d ${S} ]]; then + cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" + S="$(pwd)" + einfo "Setting WORKDIR to ${S}" + fi +} + +src_prepare() { + # Remove "license directory" (bug #315473) + rm -rf share/doc/opera + + # 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 'export OPERA_PERSONALDIR="${HOME}/.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 +} + +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 +} |