1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 be bg bn ca cs da de el en-GB en-US es-419 es fil fi fr-CA fr hi hr hu id
7 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
11 inherit chromium-2 multilib unpacker xdg-utils
13 DESCRIPTION="A fast and secure web browser"
14 HOMEPAGE="https://www.opera.com/"
18 https://download1.operacdn.com/pub/
19 https://download2.operacdn.com/pub/
20 https://download3.operacdn.com/pub/
21 https://download4.operacdn.com/pub/
23 for uri in ${SRC_URI_BASE}; do
25 "${uri}${PN}/desktop/${PV}/linux/${PN}-stable_${PV}_amd64.deb"
46 x11-libs/libXScrnSaver
47 x11-libs/libXcomposite
70 OPERA_HOME="usr/$(get_libdir)/${PN}"
74 mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die
79 rm usr/bin/${PN} || die
81 rm usr/share/doc/${PN}-stable/copyright || die
82 mv usr/share/doc/${PN}-stable usr/share/doc/${PF} || die
83 gunzip usr/share/doc/${PF}/changelog.gz || die
85 pushd "${OPERA_HOME}"/localization > /dev/null || die
86 chromium_remove_language_paks
87 popd > /dev/null || die
90 -e 's|^TargetEnvironment|X-&|g' \
91 usr/share/applications/${PN}.desktop || die
95 rm "${OPERA_HOME}"/${PN}_autoupdate || die
97 dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN}
98 fperms 4711 /"${OPERA_HOME}"/opera_sandbox
102 xdg_icon_cache_update
103 xdg_desktop_database_update
104 xdg_mimeinfo_database_update
108 xdg_icon_cache_update
109 xdg_desktop_database_update
110 xdg_mimeinfo_database_update