From f1af93971b7490792d8541bc790e0d8c6d787059 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 6 Sep 2019 10:28:05 +0100 Subject: gentoo resync : 06.08.2019 --- www-client/opera/Manifest | 13 +- www-client/opera/metadata.xml | 3 - www-client/opera/opera-12.16_p1860-r1.ebuild | 238 --------------------------- www-client/opera/opera-62.0.3331.116.ebuild | 111 ------------- www-client/opera/opera-63.0.3368.53.ebuild | 111 +++++++++++++ www-client/opera/opera-63.0.3368.66.ebuild | 111 +++++++++++++ 6 files changed, 227 insertions(+), 360 deletions(-) delete mode 100644 www-client/opera/opera-12.16_p1860-r1.ebuild delete mode 100644 www-client/opera/opera-62.0.3331.116.ebuild create mode 100644 www-client/opera/opera-63.0.3368.53.ebuild create mode 100644 www-client/opera/opera-63.0.3368.66.ebuild (limited to 'www-client/opera') diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index 0c45358774ab..3770779e85e3 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -1,8 +1,5 @@ -DIST opera-12.16-1860.amd64.freebsd.tar.xz 13312684 BLAKE2B 2c4cd52a07999c5beabec8474d6d855d04e06b4e3264ff1f279822e7cf89311fb49cab9254f4c2d83fa01e98c7597372cf439c4d5b9e9b8a6a0b1f444c4e67e8 SHA512 e08547a8c966ec64c00e7058cb17856c9e2174b8b6e327d3e8b4c69226c9d1a1ff98f07557b607d8db68811b8a4f94a349ec9c882b480a706d3f28f7430e5ff8 -DIST opera-12.16-1860.i386.freebsd.tar.xz 13385696 BLAKE2B 35fef5a5d1784941ce11ff3fed440d9c8f83ce5f9a0a8aad3f68deb470a7d82accfe7c9c93be225b458c0fc8e738ca7841d3d14abcaa201801321f3280f2b58f SHA512 0bb2c0548765ea476cdb8be6c84faf1d60dddb5a2c08b7312027f4cd17fa8ebd4fbc1a97657bbcb0ac07733e5f3b340b181a307a778c38543140adbfe7f8b844 -DIST opera-12.16-1860.i386.linux.tar.xz 13154668 BLAKE2B 7f9ef54f44bc143c13173bce92543351c39288058455baf3fde19f9f8766c9acd72971216c8c340fd89e918f18e89320eb8d13c4be9ec71635e2073c94c90067 SHA512 a13ec53311e3e78f35103a9dd5337c0e9a555362860213080211ee9d21de88fbd6aae03bed20b7515874d5a09dfbab108954213745fb82175f5e48e555152613 -DIST opera-12.16-1860.x86_64.linux.tar.xz 14018800 BLAKE2B e0cb727ea79868d1c3c692d445fc8949f554c3bbe2bf3c9f222885891458cab7af1a29096cd3caf6936e83068841dda4bff5b8a17eb55a86bebe39ce2b270183 SHA512 c1289f352ea5fc8133b105771f48fdc56ccd770920330b1a0ed939ff909abc68081447673572eabeb1aae6db5194b6ab35c93afad78a91d8f7a9a0f91e81ef8b -DIST opera-stable_62.0.3331.116_amd64.deb 66479598 BLAKE2B 1015f740686ce3ff8164040f6bdc3f495123dc4d8d7d30c39524d93150eda0de5d5282198103552c952dd6b268f7e88d7fc3de4b0a1fa09099542971e4d0abb8 SHA512 8bbcb77d12f86f3a37ee77f6c4de636b976a1f1367e0992d7efed76e718037bce8e651b0e1a4a722e7c8d9b2a2ad2223c0b6dfd7084191c2e4d670d682a23a52 -EBUILD opera-12.16_p1860-r1.ebuild 6118 BLAKE2B 72e7be2d8786ef62b3a7b9fe93019e0df26b60d37826789c0e1ff691571a84d9f964c18517cb2acee0c4a6ba98c86ba00a032cb309197b83101ab8edf4a17dda SHA512 109edf5cd49938f57a59ce704efa46abfa93e1f72edabc57cffd8ca72e15193b3d35280b458ceb569a7163e7f7ec25cf84aaf602114855fad849f3c6c2125937 -EBUILD opera-62.0.3331.116.ebuild 2283 BLAKE2B 8b99aa39e7bc0b4c206f3ac54ddc5d6495a62a2eac6ef33cd92a09fd91149d55ca5a8615d8300fe4288e92fb4afce1687ae1f1e7d571613ccacc879552bbfa6f SHA512 af90586375d9560be2b636707e531120fa5f7c29309431961b542a09d743ea91718f5a7e6276b7e26301efcdfe2f8925189620b2f4959e6f23fb2583c5555d78 -MISC metadata.xml 576 BLAKE2B b7741cc8f83a9b2f8b5a408f90123000ff5daab77771adaefeb72ae1cdfaf7213f674097e6875c168907bc6820764ccb93c2a3696e792e1f6db92d5f13d664af SHA512 475c622917d4c749b7d940d023519152820a6d6cba48b01f3fdeee8261a2faf217fee10c0e482d6dee5d46f26b2e8ca938d79b93cde178aeb66fb71c268d2374 +DIST opera-stable_63.0.3368.53_amd64.deb 60374636 BLAKE2B 4cb6726f275504972d5d97b8fdde1d96f9d122a31e241914cd3f62a0e2eb94d25ada8e1ad10b4416456dfd173d01e680134a94ae2a68b1ab087fbe78d36558d1 SHA512 f3d89f4a7857b76cab2480efb2c43d9997b110a049a9a8a84509d05a35d691e12b9ffd58e5e85f2ee6520ee172662008d6d021653807df49638931ac1e7f6eb9 +DIST opera-stable_63.0.3368.66_amd64.deb 60668118 BLAKE2B b580a6e946c02bf4fb549a511b11a4c7f5edd18061428f154204e798d35e8c5488c441602a344895e06b4275c4d61c069566a022497499cbd12f9cef511376ec SHA512 4877f8582afb0edbdee4e03adc60c586ca063f863b64139bbbac156800e9f3ca81505944f56434f6f227a6bff49eec68a25c7281174d482dbe34b474099d494b +EBUILD opera-63.0.3368.53.ebuild 2283 BLAKE2B 9ae44a98f7d4631a10ef1178ee4ecddb7fbf18ca1ea0398132470f5210819f711c44c2bb9b66e629363fd2ac184533ea8fd42c8f6a6957777a0a286294d3942e SHA512 77ef1f88d31a043dd6f786dafcd9c110916bd4cd4c1ed11548a429cc91e3edf47beec5ac73148c1c4265a019f378dba1289903040f623939f87bd6b00f55e6b3 +EBUILD opera-63.0.3368.66.ebuild 2284 BLAKE2B 156eb6922c60ae7be4f229911315969b149b356f969c1949e4c169662b1bea23c2900870f25b02a96fd1f9325a7ece296dcdc4e8baab4fd9daa5fcf91ff82327 SHA512 17e8f2a02a120d69e7b35f9a2d3f896595d541322c32a42a1deae3c913ca5de06b33bda04fd1925878adf403e2d096563703afa3b95e89765bac1b4cdda43891 +MISC metadata.xml 446 BLAKE2B dbd473cdfed1e48919a7d03f61999b3bbeb294a8ab917bb438b52dcffc304d6cd954f79817b0a73a396a9d153eb5917cfba1c1bd33e419918dc8b9a5dc449379 SHA512 42d93f4994820e8ca5f6d56a94709f8194046395f9aff8f445ce2f80777a43763c124a4ab514bab55751c6a651c9d0002c61c92d77bf9c841ef9e112abd26105 diff --git a/www-client/opera/metadata.xml b/www-client/opera/metadata.xml index 2078dce63900..2ac7edc2a6f3 100644 --- a/www-client/opera/metadata.xml +++ b/www-client/opera/metadata.xml @@ -10,7 +10,4 @@ Opera is a graphical Web browser available on several platforms. The desktop version runs on GNU/Linux and FreeBSD. Versions for Macintosh and Windows are also available. - -Install support libraries and runtime dependencies to support GTK+/GNOME desktop integration - diff --git a/www-client/opera/opera-12.16_p1860-r1.ebuild b/www-client/opera/opera-12.16_p1860-r1.ebuild deleted file mode 100644 index 9ea33719af12..000000000000 --- a/www-client/opera/opera-12.16_p1860-r1.ebuild +++ /dev/null @@ -1,238 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit eutils gnome2-utils multilib pax-utils versionator xdg-utils - -DESCRIPTION="A fast and secure web browser and Internet suite" -HOMEPAGE="https://www.opera.com/" - -SLOT="0" -LICENSE="OPERA-12 LGPL-2 LGPL-3" -KEYWORDS="amd64 x86 ~amd64-fbsd ~x86-fbsd" -IUSE="elibc_FreeBSD gtk multilib" - -O_V="$(get_version_component_range 1-2)" # Version, i.e. 11.00 -O_B="$(get_version_component_range 3)" # Build number, i.e. 1156 - -# == Variables that often change == -# All other variables should be accounted for by _pre/_p - -O_K="noserch" # The key to the snapshot URL - -O_LINGUAS=" - af ar az be bg bn cnr cs da de el en-GB es-419 es-ES et fa fi fr fr-CA fy - gd he hi hr hu id it ja ka kk ko lt lv mk ms nb nl nn pa pl pt pt-BR ro ru - sk sr sv sw ta te th tl tr uk ur uz vi zh-CN zh-TW zu -" # Supported linguas - -# == End of variables that often change == - -if [[ "pre${O_B/pre/}" = "${O_B}" ]]; then # snapshot: _pre - HOMEPAGE="https://my.opera.com/desktopteam/blog/" - - O_D="${O_K}_${O_V}-${O_B/pre}" # directory string - O_P="${PN}-${O_V}-${O_B/pre}" # package string - O_U="https://snapshot.opera.com/unix/" # base URI - - SRC_URI=" - amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz ) - amd64-fbsd? ( ${O_U}${O_D}/${O_P}.amd64.freebsd.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 ) - " -else # release: _p - O_D="${O_V/./}" # directory string - O_P="${PN}-${O_V}-${O_B/p}" # package string - O_U="mirror://opera/" # base URI - - SRC_URI=" - amd64? ( ${O_U}linux/${O_D}/${O_P}.x86_64.linux.tar.xz ) - amd64-fbsd? ( ${O_U}unix/${O_D}/${O_P}.amd64.freebsd.tar.xz ) - x86? ( ${O_U}linux/${O_D}/${O_P}.i386.linux.tar.xz ) - x86-fbsd? ( ${O_U}unix/${O_D}/${O_P}.i386.freebsd.tar.xz ) - " -fi - -for O_LINGUA in ${O_LINGUAS}; do - IUSE+=" l10n_${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 ) - x11-libs/pango - x11-libs/pixman -" -RDEPEND=" - media-libs/fontconfig - media-libs/freetype - 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 - x11-misc/xdg-utils - gtk? ( ${GTKRDEPEND} ) -" - -QA_PREBUILT="*" - -pkg_setup() { - OPREFIX="/usr/$(get_abi_LIBDIR)" -} - -src_unpack() { - unpack ${A} - mv -v ${PN}* "${S}" || die -} - -src_prepare() { - default - - 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 - for LINGUA in ${O_LINGUAS}; do - if ! use l10n_${LINGUA}; then - # Remap codes for Montenegrin and Spanish (Latin America) - case ${LINGUA} in - cnr) LINGUA=me ;; - es-419) LINGUA=es-LA ;; - esac - 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 - - rm -r lib/${PN}/gstreamer || die - - # Optional libraries - if ! use gtk; then - rm lib/${PN}/liboperagtk2.so || die - fi - - rm lib/${PN}/liboperakde4.so || die - - if use amd64 && ! use multilib; then - rm lib/${PN}/pluginwrapper/operapluginwrapper-ia32-linux || die - fi - - # Unzip the man pages before sedding - gunzip share/man/man1/* || die - - local OPERA_SUFFIX= OPERA__SUFFIX= OPERAU_SUFFIX= - if [[ ${PN} = opera-next ]]; then - OPERA_SUFFIX="-next" - OPERA__SUFFIX=" Next" - OPERA_USUFFIX="-NEXT" - fi - - # Replace PREFIX, SUFFIX and PN in various files - sed -i \ - -e "s:@@{PREFIX}:/usr:g" \ - -e "s:@@{SUFFIX}:${OPERA_SUFFIX}:g" \ - -e "s:@@{_SUFFIX}:${OPERA__SUFFIX}:g" \ - -e "s:@@{USUFFIX}:${OPERA_USUFFIX}:g" \ - share/man/man1/* \ - share/mime/packages/* \ - share/applications/${PN}-*.desktop \ - || die - - # 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 libfreetype.so.9 to libfreetype.so.6 for Gentoo/FreeBSD, bug #477594 - if use elibc_FreeBSD; then - scanelf -qR -N libfreetype.so.9 -F "#N" lib/${PN}/ | \ - while read i; do - if [[ $(strings "$i" | fgrep -c libfreetype.so.9) -ne 1 ]]; - then - export SANITY_CHECK_LIBFREETYPE_FAILED=1 - break - fi - sed -i \ - "$i" \ - -e 's/libfreetype\.so\.9/libfreetype.so.6/g' - done - [[ "$SANITY_CHECK_LIBFREETYPE_FAILED" = "1" ]] && die - fi -} - -src_install() { - # We install into usr instead of opt as Opera does not support the latter - dodir /usr - if ! use elibc_FreeBSD; then - rm lib/${PN}/opera_autoupdatechecker || die - fi - 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 $( list-paxables $( find "${D}"/${OPREFIX}/${PN}/ ) ) -} - -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 - xdg_desktop_database_update -} - -pkg_postrm() { - # Update desktop file database and gtk icon cache (bug #334993) - gnome2_icon_cache_update - xdg_desktop_database_update -} diff --git a/www-client/opera/opera-62.0.3331.116.ebuild b/www-client/opera/opera-62.0.3331.116.ebuild deleted file mode 100644 index 2144791d1fbe..000000000000 --- a/www-client/opera/opera-62.0.3331.116.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -CHROMIUM_LANGS=" - be bg bn ca cs da de el en-GB en-US es-419 es fil fi fr-CA fr hi hr hu id - it ja ko lt lv ms nb nl pl pt-BR pt-PT ro ru sk sr sv sw ta te th tr uk vi - zh-CN zh-TW - -" -inherit chromium-2 multilib unpacker xdg-utils - -DESCRIPTION="A fast and secure web browser" -HOMEPAGE="https://www.opera.com/" -LICENSE="OPERA-2014" -SLOT="0" -SRC_URI_BASE=" - https://download1.operacdn.com/pub/ - https://download2.operacdn.com/pub/ - https://download3.operacdn.com/pub/ - https://download4.operacdn.com/pub/ -" -for uri in ${SRC_URI_BASE}; do -SRC_URI+=" - "${uri}${PN}/desktop/${PV}/linux/${PN}-stable_${PV}_amd64.deb" -" -done -KEYWORDS="amd64" - -RDEPEND=" - dev-libs/expat - dev-libs/glib:2 - dev-libs/nspr - dev-libs/nss - gnome-base/gconf:2 - media-libs/alsa-lib - media-libs/fontconfig - media-libs/freetype - net-misc/curl - net-print/cups - sys-apps/dbus - x11-libs/cairo - x11-libs/gdk-pixbuf - x11-libs/gtk+:3 - x11-libs/libX11 - x11-libs/libXScrnSaver - x11-libs/libXcomposite - x11-libs/libXcursor - x11-libs/libXdamage - x11-libs/libXext - x11-libs/libXfixes - x11-libs/libXi - x11-libs/libXrandr - x11-libs/libXrender - x11-libs/libXtst - x11-libs/libnotify - x11-libs/pango[X] -" - -QA_PREBUILT="*" -S=${WORKDIR} - -src_unpack() { - unpack_deb ${A} -} - -src_prepare() { - default - - OPERA_HOME="usr/$(get_libdir)/${PN}" - - case ${ARCH} in - amd64) - mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die - rm -r usr/lib || die - ;; - esac - - rm usr/bin/${PN} || die - - rm usr/share/doc/${PN}-stable/copyright || die - mv usr/share/doc/${PN}-stable usr/share/doc/${PF} || die - gunzip usr/share/doc/${PF}/changelog.gz || die - - pushd "${OPERA_HOME}"/localization > /dev/null || die - chromium_remove_language_paks - popd > /dev/null || die - - sed -i \ - -e 's|^TargetEnvironment|X-&|g' \ - usr/share/applications/${PN}.desktop || die -} - -src_install() { - rm "${OPERA_HOME}"/${PN}_autoupdate || die - mv * "${D}" || die - dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN} - fperms 4711 /"${OPERA_HOME}"/opera_sandbox -} - -pkg_postrm() { - xdg_icon_cache_update - xdg_desktop_database_update - xdg_mimeinfo_database_update -} - -pkg_postinst() { - xdg_icon_cache_update - xdg_desktop_database_update - xdg_mimeinfo_database_update -} diff --git a/www-client/opera/opera-63.0.3368.53.ebuild b/www-client/opera/opera-63.0.3368.53.ebuild new file mode 100644 index 000000000000..b28807261d09 --- /dev/null +++ b/www-client/opera/opera-63.0.3368.53.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +CHROMIUM_LANGS=" + be bg bn ca cs da de el en-GB en-US es-419 es fil fi fr-CA fr hi hr hu id + it ja ko lt lv ms nb nl pl pt-BR pt-PT ro ru sk sr sv sw ta te th tr uk vi + zh-CN zh-TW + +" +inherit chromium-2 multilib unpacker xdg-utils + +DESCRIPTION="A fast and secure web browser" +HOMEPAGE="https://www.opera.com/" +LICENSE="OPERA-2014" +SLOT="0" +SRC_URI_BASE=" + https://download1.operacdn.com/pub/ + https://download2.operacdn.com/pub/ + https://download3.operacdn.com/pub/ + https://download4.operacdn.com/pub/ +" +for uri in ${SRC_URI_BASE}; do +SRC_URI+=" + "${uri}${PN}/desktop/${PV}/linux/${PN}-stable_${PV}_amd64.deb" +" +done +KEYWORDS="amd64" + +RDEPEND=" + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + gnome-base/gconf:2 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + net-misc/curl + net-print/cups + sys-apps/dbus + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/libnotify + x11-libs/pango[X] +" + +QA_PREBUILT="*" +S=${WORKDIR} + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + default + + OPERA_HOME="usr/$(get_libdir)/${PN}" + + case ${ARCH} in + amd64) + mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die + rm -r usr/lib || die + ;; + esac + + rm usr/bin/${PN} || die + + rm usr/share/doc/${PN}-stable/copyright || die + mv usr/share/doc/${PN}-stable usr/share/doc/${PF} || die + gunzip usr/share/doc/${PF}/changelog.gz || die + + pushd "${OPERA_HOME}"/localization > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die + + sed -i \ + -e 's|^TargetEnvironment|X-&|g' \ + usr/share/applications/${PN}.desktop || die +} + +src_install() { + rm "${OPERA_HOME}"/${PN}_autoupdate || die + mv * "${D}" || die + dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN} + fperms 4711 /"${OPERA_HOME}"/opera_sandbox +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} diff --git a/www-client/opera/opera-63.0.3368.66.ebuild b/www-client/opera/opera-63.0.3368.66.ebuild new file mode 100644 index 000000000000..eec568e74cf4 --- /dev/null +++ b/www-client/opera/opera-63.0.3368.66.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +CHROMIUM_LANGS=" + be bg bn ca cs da de el en-GB en-US es-419 es fil fi fr-CA fr hi hr hu id + it ja ko lt lv ms nb nl pl pt-BR pt-PT ro ru sk sr sv sw ta te th tr uk vi + zh-CN zh-TW + +" +inherit chromium-2 multilib unpacker xdg-utils + +DESCRIPTION="A fast and secure web browser" +HOMEPAGE="https://www.opera.com/" +LICENSE="OPERA-2014" +SLOT="0" +SRC_URI_BASE=" + https://download1.operacdn.com/pub/ + https://download2.operacdn.com/pub/ + https://download3.operacdn.com/pub/ + https://download4.operacdn.com/pub/ +" +for uri in ${SRC_URI_BASE}; do +SRC_URI+=" + "${uri}${PN}/desktop/${PV}/linux/${PN}-stable_${PV}_amd64.deb" +" +done +KEYWORDS="~amd64" + +RDEPEND=" + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + gnome-base/gconf:2 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + net-misc/curl + net-print/cups + sys-apps/dbus + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/libnotify + x11-libs/pango[X] +" + +QA_PREBUILT="*" +S=${WORKDIR} + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + default + + OPERA_HOME="usr/$(get_libdir)/${PN}" + + case ${ARCH} in + amd64) + mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die + rm -r usr/lib || die + ;; + esac + + rm usr/bin/${PN} || die + + rm usr/share/doc/${PN}-stable/copyright || die + mv usr/share/doc/${PN}-stable usr/share/doc/${PF} || die + gunzip usr/share/doc/${PF}/changelog.gz || die + + pushd "${OPERA_HOME}"/localization > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die + + sed -i \ + -e 's|^TargetEnvironment|X-&|g' \ + usr/share/applications/${PN}.desktop || die +} + +src_install() { + rm "${OPERA_HOME}"/${PN}_autoupdate || die + mv * "${D}" || die + dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN} + fperms 4711 /"${OPERA_HOME}"/opera_sandbox +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} -- cgit v1.2.3