www-client/opera-developer: Version 56.0.3051.0.
authorJeroen Roovers <jer@gentoo.org>
Mon, 20 Aug 2018 12:50:02 +0000 (14:50 +0200)
committerJeroen Roovers <jer@gentoo.org>
Mon, 20 Aug 2018 12:50:02 +0000 (14:50 +0200)
Package-Manager: Portage-2.3.47, Repoman-2.3.10

www-client/opera-developer/Manifest
www-client/opera-developer/opera-developer-56.0.3051.0.ebuild [new file with mode: 0644]

index e73dbede436734d0fd4a65043a377afc0c5ffbce..ff821f8c9635a1a61c15307711f87800e3f3c886 100644 (file)
@@ -1,2 +1,3 @@
 DIST opera-developer_56.0.3037.0_amd64.deb 55910568 BLAKE2B cdec28a3437084a1fdabdf39ad23db2ca913558c2e73fcb744c22873683b628543312fbf4eb68d5d82fedb4444e88b6016c23f6f4a4f47273e62b9af5f65baa6 SHA512 6a47a2a89d9b54c35df14eb99226685517b27b3adfea482280eb4eb77e1560f7c91a3409f964ed1f708ec680ada14fe6255da6228e83c677bd175144526eb3cf
 DIST opera-developer_56.0.3045.0_amd64.deb 56118952 BLAKE2B 670a42c8be66b79ec134dd43e508b872cf68af8273bc87d38d422df5f8ab2f6fbaf6d564cae2334862b5866e1ecaf3e4e937893f18348404a833dcf35d338e08 SHA512 a07fc096a8abfbf4d52de490e98bacc644c3978b44da677dde32183a36d2efe0e2fa4a6d67f2d1bbf10c00381c86d33a91387e0fb4c5d53bd576bbcca4c3e34e
+DIST opera-developer_56.0.3051.0_amd64.deb 56394506 BLAKE2B 7549a8c2f95f71eaecb4c96c39693ecb10b302f6f6da63abae964898f1f1b4dd70c3741049defe35ebab377ce7591c69ca39a9ff97086ade7be1b895900692a8 SHA512 5f992ce71e8bba529181a9a538956f245995d9e1a7a3fd52ffb3d3bcececf6e46a3db4ef884f8008a6d7308f33ea941549823737b5c3a26b5c29ef0a6a993d9f
diff --git a/www-client/opera-developer/opera-developer-56.0.3051.0.ebuild b/www-client/opera-developer/opera-developer-56.0.3051.0.ebuild
new file mode 100644 (file)
index 0000000..7f81451
--- /dev/null
@@ -0,0 +1,114 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+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 gnome2-utils 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}
+OPERA_HOME="usr/$(get_libdir)/${PN}"
+
+src_unpack() {
+       unpack_deb ${A}
+}
+
+src_prepare() {
+       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
+
+       rm usr/bin/${PN} || die
+
+       rm usr/share/doc/${PN}/copyright || die
+       mv usr/share/doc/${PN} usr/share/doc/${PF} || 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_preinst() {
+       gnome2_icon_savelist
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}