www-client/opera-developer: Version 70.0.3701.0
authorJeroen Roovers <jer@gentoo.org>
Tue, 26 May 2020 13:13:26 +0000 (15:13 +0200)
committerJeroen Roovers <jer@gentoo.org>
Tue, 26 May 2020 13:19:16 +0000 (15:19 +0200)
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
www-client/opera-developer/Manifest
www-client/opera-developer/opera-developer-70.0.3701.0.ebuild [new file with mode: 0644]

index 97addc6f5a23ac817e76b55dc0bc575a4dcb81df..e25610a45aae5b71a65e63b0374dfbc9d4962eee 100644 (file)
@@ -1 +1,2 @@
 DIST opera-developer_70.0.3693.0_amd64.deb 66336804 BLAKE2B 57c3d32bf6a21b87f85512b9bb295e9c8bc8b89d4812f27d118774810c59b8c6634ae98f9d6d93e7890809f55c330d01afe43ee849802bab51129bd42d244294 SHA512 8ed29d90a7fd6b3ed7be23035cdbcb1d43243c884e86416d5f4f1777c626cb9482772cb10a1045bbf31b8467f63df90da2096870eb9fc49956da8ac9d35174fa
+DIST opera-developer_70.0.3701.0_amd64.deb 66415456 BLAKE2B 6b9402b9cb6a33ea1da728547903c1788b1bb861c80d7c382cf299d0b091dce67a2db6026fa1b227d713c090b77f61f468e80ebca644c824c92c166c746bdb40 SHA512 1e4485f040b645789a9e4f81e9615a55f3a184e0e3675d563f4bf52471794d6c3f6e0298fbfafdccb925be142cd99796cfbda4843fe23a79cf83630add8ab46a
diff --git a/www-client/opera-developer/opera-developer-70.0.3701.0.ebuild b/www-client/opera-developer/opera-developer-70.0.3701.0.ebuild
new file mode 100644 (file)
index 0000000..8376747
--- /dev/null
@@ -0,0 +1,115 @@
+# Copyright 1999-2020 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 es es-419 fi fil fr fr-CA 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/
+"
+SRC_URI="amd64? ("
+for uri in ${SRC_URI_BASE}; do
+SRC_URI+="
+       "${uri}${PN}/${PV}/linux/${PN}_${PV}_amd64.deb"
+"
+done
+SRC_URI+=")"
+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}
+}
+
+pkg_setup() {
+       OPERA_HOME="usr/$(get_libdir)/${PN}"
+}
+
+src_prepare() {
+       default
+
+       case ${ARCH} in
+               amd64)
+                       mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die
+                       rm -r usr/lib || die
+                       ;;
+               x86)
+                       mv usr/lib/i386-linux-gnu/${PN} usr/$(get_libdir)/ || die
+                       ;;
+       esac
+
+       mv usr/share/doc/${PN} usr/share/doc/${PF} || die
+       gunzip usr/share/doc/${PF}/changelog.gz || die
+
+       rm usr/bin/${PN} || 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() {
+       mv * "${D}" || die
+       dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN}
+       fperms 4711 /usr/$(get_libdir)/${PN}/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
+}