summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-09-09 15:30:34 +0000
committerJeroen Roovers <jer@gentoo.org>2010-09-09 15:30:34 +0000
commit7d4772d9db76488bef7ad0c8e85a783cd05499f2 (patch)
tree0a25322ba5d88a71265edfd54ade674307c7dde3 /www-client
parentRemove non-replicating mirror. (diff)
downloadhistorical-7d4772d9db76488bef7ad0c8e85a783cd05499f2.tar.gz
historical-7d4772d9db76488bef7ad0c8e85a783cd05499f2.tar.bz2
historical-7d4772d9db76488bef7ad0c8e85a783cd05499f2.zip
http://www.opera.com/docs/changelogs/unix/1062/
Package-Manager: portage-2.2_rc77/cvs/Linux i686
Diffstat (limited to 'www-client')
-rw-r--r--www-client/opera/ChangeLog9
-rw-r--r--www-client/opera/Manifest14
-rw-r--r--www-client/opera/opera-10.62.ebuild (renamed from www-client/opera/opera-10.62_pre6437.ebuild)14
-rw-r--r--www-client/opera/opera-10.62_pre6438.ebuild200
-rw-r--r--www-client/opera/opera-10.70_pre9034.ebuild200
5 files changed, 17 insertions, 420 deletions
diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog
index 673d41f04705..023b94f25671 100644
--- a/www-client/opera/ChangeLog
+++ b/www-client/opera/ChangeLog
@@ -1,6 +1,13 @@
# 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.542 2010/09/08 17:47:23 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.543 2010/09/09 15:30:34 jer Exp $
+
+*opera-10.62 (09 Sep 2010)
+
+ 09 Sep 2010; Jeroen Roovers <jer@gentoo.org> -opera-10.62_pre6437.ebuild,
+ -opera-10.62_pre6438.ebuild, +opera-10.62.ebuild,
+ -opera-10.70_pre9034.ebuild:
+ http://www.opera.com/docs/changelogs/unix/1062/
*opera-10.70_pre9044 (08 Sep 2010)
diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest
index 8025cef3c4d1..a9a76387b7f6 100644
--- a/www-client/opera/Manifest
+++ b/www-client/opera/Manifest
@@ -3,18 +3,10 @@ DIST opera-10.61-6430.i386.freebsd.tar.bz2 12736017 RMD160 935fa7fa2cbde5d6831f4
DIST opera-10.61-6430.i386.linux.tar.bz2 12665909 RMD160 1cb101d9ff948b62ab5b9cc52488430cd51fa858 SHA1 39267f2b13230f065af3d18f8b09d12f25713f9e SHA256 0c52a8a4a9042b0ce93279e36f8f8c1a943b49063e202aa63b60640ad0069000
DIST opera-10.61-6430.ppc.linux.tar.bz2 13005991 RMD160 c6f34bff3172beb437cef4c3235f82d3dbcf149f SHA1 ba88583c0f1d88d55cf4c8b16468604e20d4437a SHA256 8fcbc799c37af8aa2cc1ed8fdb123b5db6e85c472ffa30875de78a1c7cc2d865
DIST opera-10.61-6430.x86_64.linux.tar.bz2 13790284 RMD160 7ff97e6a141201d65e30129a5e351afa7468be7c SHA1 e3ffa64050cb6a08515234ad2acf10126b4f0be6 SHA256 6af8f9bccb1d875e0a72ddc0d1348df3cc675d216bd093dfc819ab3395683b51
-DIST opera-10.62-6437.i386.freebsd.tar.bz2 12739643 RMD160 d34697da7614399c12ed92a67cfe02b4b7d67da5 SHA1 61942ec6ac900c930d1d6d17573ab324fb7d69db SHA256 4e59630d4388a5e157550b8ae2403b7e4e77f1be05445c72fb3256e206cb4135
-DIST opera-10.62-6437.i386.linux.tar.bz2 12666451 RMD160 9af9349fdf1803838dc29f179fc7607b8a11ef55 SHA1 abcb2a553a961d41397b9229e902c0567b68ad96 SHA256 e954a54d104187f76f7032f1813717fc996a439f7ccce1fb57a34ebb9c46cf5b
-DIST opera-10.62-6437.ppc.linux.tar.bz2 13007768 RMD160 8e9f5de1b07b8fad9d359de805cf703b95a5b7e9 SHA1 f21469f19eaba4ba554f93da241e3fe61797a90a SHA256 eb036c0d63af0c05df974c792c206e09a7ceab948fb7a41ca55bb44bcb1b8317
-DIST opera-10.62-6437.x86_64.linux.tar.bz2 13787133 RMD160 b3f0bde272ead3f0c0c50d41aff5faa0b4ce244e SHA1 c10e5f2275f310b998016e2a9536769b56bc820a SHA256 62b658bd6a31d6a545e8c587ae0622fa84e22e5045e4ad71ad42a449c0dfecd0
DIST opera-10.62-6438.i386.freebsd.tar.bz2 12742065 RMD160 8104aefde2b0db83874a0cf62e4818464c96b44d SHA1 f0ce4774719408e8d19e468f780bd17941260d1e SHA256 9eb21ffe8198d3b3618d82c0704019f3d5b188fe455f197c9b59a5a63539544e
DIST opera-10.62-6438.i386.linux.tar.bz2 12664755 RMD160 8b4dd747c61d0f680b873eb45d4f4577137f8c34 SHA1 7256a3e62fa614e4206daceaeabcbfd53ee0dae2 SHA256 5d028e894b671334fa46d4fb956be00af6108e132b919ae985f2a8319bfd61e9
DIST opera-10.62-6438.ppc.linux.tar.bz2 13004925 RMD160 362f8ea7f84cc433eb1523a56eb5ca2af503a9b8 SHA1 6f99aba319d95d0a9e41f85e5622019649299c84 SHA256 46525793c3bca28456b3577d68a21a90f17c78e53ff2e04286ebb5bf33b10a0f
DIST opera-10.62-6438.x86_64.linux.tar.bz2 13785843 RMD160 6f388126a4bfadb2480f7097d0c26f2c50ea3e7a SHA1 62a7c62219f267a0845aa9eef82f1f6b2ca43063 SHA256 d789ec36928a96afb6ab46a69f6055f5b6d2a75d7300eda386cb840759d7d14b
-DIST opera-10.70-9034.i386.freebsd.tar.bz2 12750033 RMD160 441b327b8e0fa6201c508890a17e193aa2fdd86b SHA1 97056d953f9f9304661208b079ff6ae8d2936365 SHA256 259ba2c26dcdacd25325e1d1a2145701f63061013f9bd88899516ce5c318744c
-DIST opera-10.70-9034.i386.linux.tar.bz2 12696003 RMD160 b6841fb3d9a6ac4517143da954219e0667327873 SHA1 c30c024664cabe1cdfddfb8204d17f9974e92f66 SHA256 0c48d81184fc6ddb584ff79454536589639a088a5eded58d234db4f059a1a7a4
-DIST opera-10.70-9034.ppc.linux.tar.bz2 13035354 RMD160 14e47559ba7ac1bca2e2afdd6cb2233158d0c0b5 SHA1 64ff34bd9f4573c87aaa778fb36ae3d4d79a49a0 SHA256 2cb9cc80c6a3cf46f82baebf696064d70adbcfd3e3e1f4312f1d5f54f03ce6b2
-DIST opera-10.70-9034.x86_64.linux.tar.bz2 13817660 RMD160 8113fb58b89ba5902f06d2e38136cac4b09e46a7 SHA1 846b86dcda551cc00ba79e92654aad034314e301 SHA256 28f29892ec76e2eb85ba1b11acc5db0a693d4a9be2fb487f560612fd737bad78
DIST opera-10.70-9036.i386.freebsd.tar.bz2 12757425 RMD160 be47e00adf8dc9f8b7cdd1208687e35dff33ece6 SHA1 3c09c8167ff8aae9756e01e233fdf2081b612567 SHA256 965582334a11ea251339cc9baa7cdebc84ba6336cba736d34404d9da68700102
DIST opera-10.70-9036.i386.linux.tar.bz2 12694466 RMD160 95394daeb232a92f5684bc8b432ccebb1536d03f SHA1 1c86c40f2d54178670203cf29c262533eb6a77c5 SHA256 67f1385034a6ac941633b56f16f452b8e0d99f37ddb0641bc103961170456ca2
DIST opera-10.70-9036.x86_64.linux.tar.bz2 13809902 RMD160 790be78f7c66ab607fafc3345e9600d39e548334 SHA1 d2dd1f754c6b1931066ffbbe8bb0d69471ca9301 SHA256 4274e636d2bf0b640fde81796234baedae754e738573763c50b105726e3c74be
@@ -22,10 +14,8 @@ DIST opera-10.70-9044.i386.freebsd.tar.bz2 12768981 RMD160 b689e626d2e81e64f4094
DIST opera-10.70-9044.i386.linux.tar.bz2 12701799 RMD160 9113b40685d486e95459c4ea017604acd2a8ab71 SHA1 b245b121ea3c8589112bb48b71d904a25a5796b1 SHA256 aee0c690fc09692f5917ee902dddc7954f0acbd380c70c60c0439f4dd0252252
DIST opera-10.70-9044.x86_64.linux.tar.bz2 13877982 RMD160 63a2c7c7239aa99482eac16460ee4ea05da36b6b SHA1 dc99ecf23931759ef093c47d0529335f3e6c1987 SHA256 75baf0ff77517e34aa3073a377938c6e504a0235e3b1102b6b14b3a223354308
EBUILD opera-10.61.ebuild 5080 RMD160 5c3dd262c642c215b5fcd68343b16b1651cc337e SHA1 bdf3baffd399f9bc75a9d4578946e8027a829eda SHA256 c78872128d7332823a68cedbeafe33d835ba4b5e74866ec8a693f4dc7daea6fd
-EBUILD opera-10.62_pre6437.ebuild 5153 RMD160 d1df816b5bd40ce688216e80518af2603d6f275b SHA1 f8c914b47c4674340b3a36b46b72dba3f6302515 SHA256 9d9500a715b16c3325f77f3913816e519af54f784d46a9551707af3f4506bd94
-EBUILD opera-10.62_pre6438.ebuild 5150 RMD160 131b3d61cb081c4c3f9f8d48ba5e94e97275d197 SHA1 a1a42882006d70afd1d44021155b635b4f792319 SHA256 23c128c6af13e9b317c7ff0c736c01a5a5ebf99874516641ee1c9dfbae9f4632
-EBUILD opera-10.70_pre9034.ebuild 5151 RMD160 941e8db8154539368fed360638e41d2459e49a60 SHA1 41a8207e171f9dbcca72438deef3cffb4e6f9f93 SHA256 9724bb83a4b90a20d1473db9f93fc6c8403caab6a403f0a23e5ae90ac0e309c4
+EBUILD opera-10.62.ebuild 5176 RMD160 ff24120059ba8cad32bf5fc5bfbc9ff8d8ac727a SHA1 5e328a3a6ce4abdfba2b49987f6e6e13ef188961 SHA256 11b595042cf2c96f3887e0304e05885a75184397733b676d1c926a4018fec31e
EBUILD opera-10.70_pre9036.ebuild 5107 RMD160 31608dd55a8a3d563c17d8b32e650a9e591cb5a3 SHA1 97600f1baddea99171af289f4a0c5fc06458e31c SHA256 292c653edf5140d75bb734da86aa9e2acb0ec4a55ac02bf8ebdca6a1da76a58f
EBUILD opera-10.70_pre9044.ebuild 5107 RMD160 5084a8dfbdccad845a4557e5f123e71e87e5e06f SHA1 5b1cabe86941a72ca54b8ecddd1127285ff6d0f9 SHA256 dac36c4631799177ec14ef0ece72d4a7a8e7e6df569c703304e9ec71563c4d73
-MISC ChangeLog 104253 RMD160 be1e9435bdc2d701901ce4df0fa854e29890a2b0 SHA1 648cfad9f6cf9cbd3b2de681bb5f8376257e6b46 SHA256 4173d7930b96331ecc3e20fb1e5a88b60b1280b7cfb1303d5336371c38442e1f
+MISC ChangeLog 104491 RMD160 c8c1824fee35c8ca73eec4995f791a2baac14d21 SHA1 0d0b7a368ce95ca01ff7a3492913d25e4f08c413 SHA256 2a6d56dece5729d0a1d572736d5a44b01631949ce11dce5df68e64984ba2aede
MISC metadata.xml 651 RMD160 5b15e2f22dc49ee158b4c76f4760219c1f85c096 SHA1 1de6dff612ef2667f194ed57d352e09a0879fbc1 SHA256 84accea33d9ad1436d9a425ddf5de328d31af559b7c9764d54546d3b357c7a10
diff --git a/www-client/opera/opera-10.62_pre6437.ebuild b/www-client/opera/opera-10.62.ebuild
index c71e57424a84..5a29aafc3b27 100644
--- a/www-client/opera/opera-10.62_pre6437.ebuild
+++ b/www-client/opera/opera-10.62.ebuild
@@ -1,6 +1,6 @@
# 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.62_pre6437.ebuild,v 1.1 2010/09/03 14:51:09 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.62.ebuild,v 1.1 2010/09/09 15:30:34 jer Exp $
EAPI="2"
@@ -16,15 +16,15 @@ IUSE="elibc_FreeBSD gtk kde +gstreamer"
RESTRICT="mirror test"
-O_V="${PV/_pre/-}"
+O_V="${PV/_pre/-}-6438"
O_P="${PN}-${O_V}"
-O_U="http://snapshot.opera.com/unix/stability_${O_V}/"
+O_U="mirror://opera/"
SRC_URI="
- amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 )
- ppc? ( ${O_U}${O_P}.ppc.linux.tar.bz2 )
- x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 )
- x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 )
+ amd64? ( ${O_U}linux/${PV/./}/${O_P}.x86_64.linux.tar.bz2 )
+ ppc? ( ${O_U}linux/${PV/./}/${O_P}.ppc.linux.tar.bz2 )
+ x86? ( ${O_U}linux/${PV/./}/${O_P}.i386.linux.tar.bz2 )
+ x86-fbsd? ( ${O_U}unix/${PV/./}/${O_P}.i386.freebsd.tar.bz2 )
"
OPREFIX="/usr/$(get_libdir)"
diff --git a/www-client/opera/opera-10.62_pre6438.ebuild b/www-client/opera/opera-10.62_pre6438.ebuild
deleted file mode 100644
index 73c9483e4964..000000000000
--- a/www-client/opera/opera-10.62_pre6438.ebuild
+++ /dev/null
@@ -1,200 +0,0 @@
-# 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.62_pre6438.ebuild,v 1.1 2010/09/07 23:03:06 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 ~ppc ~x86 ~x86-fbsd"
-IUSE="elibc_FreeBSD gtk kde +gstreamer"
-
-RESTRICT="mirror test"
-
-O_V="${PV/_pre/-}"
-O_P="${PN}-${O_V}"
-O_U="http://snapshot.opera.com/unix/uptime_${O_V}/"
-
-SRC_URI="
- amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 )
- ppc? ( ${O_U}${O_P}.ppc.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
-}
diff --git a/www-client/opera/opera-10.70_pre9034.ebuild b/www-client/opera/opera-10.70_pre9034.ebuild
deleted file mode 100644
index ef3ca4dfb4c4..000000000000
--- a/www-client/opera/opera-10.70_pre9034.ebuild
+++ /dev/null
@@ -1,200 +0,0 @@
-# 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_pre9034.ebuild,v 1.1 2010/08/25 16:07:21 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 ~ppc ~x86 ~x86-fbsd"
-IUSE="elibc_FreeBSD gtk kde +gstreamer"
-
-RESTRICT="mirror test"
-
-O_V="${PV/_pre/-}"
-O_P="${PN}-${O_V}"
-O_U="http://snapshot.opera.com/unix/eduardo_${O_V}/"
-
-SRC_URI="
- amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 )
- ppc? ( ${O_U}${O_P}.ppc.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
-}