1 # Copyright 1999-2020 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 es es-419 fi fil fr fr-CA hi hr hu id it
7 ja ko lt lv ms nb nl pl pt-BR pt-PT ro ru sk sr sv sw ta te th tr uk vi
10 inherit chromium-2 multilib unpacker xdg-utils
12 DESCRIPTION="A fast and secure web browser"
13 HOMEPAGE="https://www.opera.com/"
17 https://download1.operacdn.com/pub/
18 https://download2.operacdn.com/pub/
19 https://download3.operacdn.com/pub/
20 https://download4.operacdn.com/pub/
23 for uri in ${SRC_URI_BASE}; do
25 "${uri}${PN}/${PV}/linux/${PN}_${PV}_amd64.deb"
47 x11-libs/libXScrnSaver
48 x11-libs/libXcomposite
69 OPERA_HOME="usr/$(get_libdir)/${PN}"
77 mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die
81 mv usr/lib/i386-linux-gnu/${PN} usr/$(get_libdir)/ || die
85 mv usr/share/doc/${PN} usr/share/doc/${PF} || die
86 gunzip usr/share/doc/${PF}/changelog.gz || die
88 rm usr/bin/${PN} || die
90 pushd "${OPERA_HOME}/localization" > /dev/null || die
91 chromium_remove_language_paks
92 popd > /dev/null || die
95 -e 's|^TargetEnvironment|X-&|g' \
96 usr/share/applications/${PN}.desktop || die
101 dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN}
102 fperms 4711 /usr/$(get_libdir)/${PN}/opera_sandbox
106 xdg_desktop_database_update
107 xdg_icon_cache_update
108 xdg_mimeinfo_database_update
112 xdg_desktop_database_update
113 xdg_icon_cache_update
114 xdg_mimeinfo_database_update