summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Hartmann <sultan@gentoo.org>2020-12-16 20:01:53 +0100
committerStephan Hartmann <sultan@gentoo.org>2020-12-16 20:04:25 +0100
commit649333faec21dd3d0b985175193705d295aae92d (patch)
tree9959f2664db166d63d78f459a2042a5bc3e75a38 /www-client/opera
parentsci-libs/pyshp: Add python3_9 support (diff)
downloadgentoo-649333faec21dd3d0b985175193705d295aae92d.tar.gz
gentoo-649333faec21dd3d0b985175193705d295aae92d.tar.bz2
gentoo-649333faec21dd3d0b985175193705d295aae92d.zip
www-client/opera: stable channel bump to 73.0.3856.284
Bug: https://bugs.gentoo.org/562038 Bug: https://bugs.gentoo.org/573052 Bug: https://bugs.gentoo.org/602670 Bug: https://bugs.gentoo.org/709652 Bug: https://bugs.gentoo.org/750929 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'www-client/opera')
-rw-r--r--www-client/opera/Manifest2
-rw-r--r--www-client/opera/metadata.xml10
-rw-r--r--www-client/opera/opera-72.0.3815.320.ebuild97
-rw-r--r--www-client/opera/opera-73.0.3856.284.ebuild137
4 files changed, 146 insertions, 100 deletions
diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest
index 7603e5534325..0cdaf3d89064 100644
--- a/www-client/opera/Manifest
+++ b/www-client/opera/Manifest
@@ -1 +1,3 @@
+DIST opera-ffmpeg-codecs-87.0.4280.88.tar.xz 1361732 BLAKE2B 1a4fa468d472bca80e7c7f79d6dd5b4e58ff6566cea546febf3ac56fc9eb89d663d3f11a4a05883f377f7cb73101353dcfc0fba875e9300d2e2d0b749ed3232c SHA512 6f5e8616a0995b51218b5117619eac74419c5631f559ffacf71c51318e407430f1509e84114eb4945353d6a2b95097d3aae5083f73ddab76d55263e185b9c204
DIST opera-stable_72.0.3815.320_amd64.deb 69733316 BLAKE2B 45756e60e507bbcde9d88a1f6f77b392443daecfd9d899a8078f136f968f2e8aeac6c2fe3a543c7dc69537ec4759203884a66bb953e7828c5bcf9d70fc8b9006 SHA512 2d991ed7fd5728bed926de85aed7cc8c1aeb9ef57ee58d5a77afdb99ad9982a9d195da148ad135560f6428120bc47d3a026a1f1f43595eb368948bebc972ec0e
+DIST opera-stable_73.0.3856.284_amd64.deb 70760608 BLAKE2B b0c7ea860e4ee1849e71656aad16288407c80604553277f325b36c22bedc9ca7d88318a597ece606b160854c4ec89b95e4ba3624e41ddf3a4ce628487af6bc43 SHA512 a321f06db3b2fc1ea232344556973dc5c66f34abe75a0a830807416d4c90fa31ad5232e372f4ac031537dba9f7f910894b98fd2260c6e484a5b6fc09e0f65b84
diff --git a/www-client/opera/metadata.xml b/www-client/opera/metadata.xml
index 677f013b705a..8730c7caee39 100644
--- a/www-client/opera/metadata.xml
+++ b/www-client/opera/metadata.xml
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<!-- maintainer-needed -->
-<longdescription>
+ <!-- maintainer-needed -->
+ <longdescription>
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.
-</longdescription>
+ </longdescription>
+ <use>
+ <flag name="proprietary-codecs">Enable codecs for patent-encumbered audio and video formats.</flag>
+ <flag name="widevine">Unsupported closed-source DRM capability (required by Netflix VOD)</flag>
+ </use>
</pkgmetadata>
diff --git a/www-client/opera/opera-72.0.3815.320.ebuild b/www-client/opera/opera-72.0.3815.320.ebuild
deleted file mode 100644
index 023eaa59bfcf..000000000000
--- a/www-client/opera/opera-72.0.3815.320.ebuild
+++ /dev/null
@@ -1,97 +0,0 @@
-# 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 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
-
-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="
- app-accessibility/at-spi2-atk:2
- app-accessibility/at-spi2-core:2
- dev-libs/atk
- dev-libs/expat
- dev-libs/glib:2
- dev-libs/nspr
- dev-libs/nss
- media-libs/alsa-lib
- media-libs/mesa[gbm]
- net-misc/curl
- net-print/cups
- sys-apps/dbus
- x11-libs/cairo
- x11-libs/libdrm
- x11-libs/gdk-pixbuf
- x11-libs/gtk+:3
- x11-libs/libxcb
- x11-libs/libX11
- x11-libs/libXcomposite
- x11-libs/libXdamage
- x11-libs/libXext
- x11-libs/libXfixes
- x11-libs/libXrandr
- x11-libs/pango
-"
-
-QA_PREBUILT="*"
-S=${WORKDIR}
-
-pkg_setup() {
- OPERA_HOME="usr/$(get_libdir)/${PN}"
-}
-
-src_unpack() {
- unpack_deb ${A}
-}
-
-src_prepare() {
- default
-
- 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 /usr/$(get_libdir)/${PN}/opera_sandbox
-}
diff --git a/www-client/opera/opera-73.0.3856.284.ebuild b/www-client/opera/opera-73.0.3856.284.ebuild
new file mode 100644
index 000000000000..a604819847f8
--- /dev/null
+++ b/www-client/opera/opera-73.0.3856.284.ebuild
@@ -0,0 +1,137 @@
+# 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 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 pax-utils unpacker xdg
+
+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/${PN}"
+ "https://download2.operacdn.com/pub/${PN}"
+ "https://download3.operacdn.com/pub/${PN}"
+ "https://download4.operacdn.com/pub/${PN}"
+)
+
+if [[ ${PN} == opera ]]; then
+ KEYWORDS="-* amd64"
+ MY_PN=${PN}-stable
+ SRC_URI_BASE=( "${SRC_URI_BASE[@]/%//desktop}" )
+else
+ KEYWORDS="-* ~amd64"
+ MY_PN=${PN}
+fi
+
+FFMPEG_VERSION="87.0.4280.88"
+
+SRC_URI="${SRC_URI_BASE[@]/%//${PV}/linux/${MY_PN}_${PV}_amd64.deb}
+ proprietary-codecs? (
+ https://dev.gentoo.org/~sultan/distfiles/www-client/${PN}/opera-ffmpeg-codecs-${FFMPEG_VERSION}.tar.xz
+ )"
+
+IUSE="+proprietary-codecs suid widevine"
+
+RDEPEND="
+ app-accessibility/at-spi2-atk:2
+ app-accessibility/at-spi2-core:2
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/alsa-lib
+ media-libs/mesa[gbm]
+ net-misc/curl
+ net-print/cups
+ sys-apps/dbus
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3
+ x11-libs/libdrm
+ x11-libs/libxcb
+ x11-libs/libxkbcommon
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/pango
+ widevine? ( www-plugins/chrome-binary-plugins )
+"
+
+QA_PREBUILT="*"
+S=${WORKDIR}
+OPERA_HOME="opt/opera${PN#opera}"
+
+pkg_pretend() {
+ # Protect against people using autounmask overzealously
+ use amd64 || die "opera only works on amd64"
+}
+
+pkg_setup() {
+ chromium_suid_sandbox_check_kernel_config
+}
+
+src_unpack() {
+ :
+}
+
+src_install() {
+ dodir /
+ cd "${ED}" || die
+ unpacker
+
+ # move to /opt, bug #573052
+ mkdir -p "${OPERA_HOME%${PN}}"
+ mv "usr/lib/x86_64-linux-gnu/${PN}" "${OPERA_HOME%${PN}}" || die
+ rm -rf "usr/lib" || die
+
+ # disable auto update
+ rm "${OPERA_HOME}/${PN%-*}_autoupdate"{,.licenses,.version} || die
+
+ rm -rf "usr/share/lintian" || die
+
+ # fix docs
+ mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die
+ gzip -d usr/share/doc/${PF}/changelog.gz || die
+
+ # fix desktop file
+ sed -i \
+ -e 's|^TargetEnvironment|X-&|g' \
+ usr/share/applications/${PN}.desktop || die
+
+ # remove unused language packs
+ pushd "${OPERA_HOME}/localization" > /dev/null || die
+ chromium_remove_language_paks
+ popd > /dev/null || die
+
+ # setup opera symlink
+ rm -f "usr/bin/${PN}" || die
+ dosym "../../${OPERA_HOME}/${PN}" "/usr/bin/${PN}"
+
+ # install proprietary codecs
+ rm -f "resources/ffmpeg_preload_config.json" || die
+ if use proprietary-codecs; then
+ mv lib_extra "${OPERA_HOME}"
+ fi
+
+ # symlink widevine
+ rm -f "resources/widevine_config.json" || die
+ if use widevine; then
+ dosym "../../usr/$(get_libdir)/chromium-browser/WidevineCdm" "${OPERA_HOME}/WidevineCdm"
+ fi
+
+ # pax mark opera, bug #562038
+ pax-mark m "${OPERA_HOME}/opera"
+ # enable suid sandbox if requested
+ use suid && fperms 4711 "${OPERA_HOME}/opera_sandbox"
+}