diff options
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/opera-developer/Manifest | 1 | ||||
-rw-r--r-- | www-client/opera-developer/opera-developer-79.0.4105.0.ebuild | 133 |
2 files changed, 134 insertions, 0 deletions
diff --git a/www-client/opera-developer/Manifest b/www-client/opera-developer/Manifest index 667ee03c0a76..1a07991ac2dd 100644 --- a/www-client/opera-developer/Manifest +++ b/www-client/opera-developer/Manifest @@ -1,5 +1,6 @@ DIST opera-developer_78.0.4079.0_amd64.deb 75593860 BLAKE2B 2e3ac010e6963411c662e9766a4d44490404521c2e211d959d96c78335628ad832e709e3358ec9374c0c9cd6e6bc11822644d0f374ba160df66b015c41c1d690 SHA512 5e9044c1755895a5c5a8acb8ced92eee2d6047714f7faa4b163cd23b9fba4414586f058d1e165945ee150106c30ec0a6662c4124e2f76dd910f2f67576894166 DIST opera-developer_78.0.4093.0_amd64.deb 75190012 BLAKE2B 342eebc815364866eb93dbe231b7a24a09f130809de8266c0ec0d9808aa2e433200fa4cf51d823564020e56973d831c10fe54e72a8f34822be4eb917145b83ec SHA512 e470122a7490c9009a28469b21108cafba232ef040027e8faea190551a97b1dfe60a7e2caa092d6d4459cf67b3cb22aa5d0da73384fb4528c24a6d925f840691 DIST opera-developer_79.0.4100.0_amd64.deb 76878004 BLAKE2B 285aa5b687280a0d76e06ce40d7ae3b20e172e3b8a1d8da7b66b4f029dc203581cca7e4b336373bb3d78a5cb66ca50ae38a535770225f75197cf4ebdf4248ea5 SHA512 346ad075121e114d3efd96e8b4dca5f5e502c71dc9bd25ed6c5699e5b8a2d100e74b6bfad3d2bc7ba482025856c155f88c85f5a0ec6ad50dcdecde6d6238d1f5 +DIST opera-developer_79.0.4105.0_amd64.deb 78242532 BLAKE2B 8034f10c0eb04d50367bd929bcb1d7ef8ef432ac15f3f8ce5c03a1c456814d0db89b2411e1d92703951d2a545f454329d7121a9b52d10931e4115e9fac9fa2e7 SHA512 9852c04e6659f63f6602a34b466fa4af1fc9ef11f654f3f3db348c27d9964387eb550cdbf40f718452e741e57beba76ca7511f0f36c45f0e8c6fc81b3719690d DIST opera-ffmpeg-codecs-92.0.4484.7.tar.xz 1384356 BLAKE2B 6032d1f1641e5c5e83ea2315e3774b97a1aa2c5740095d5716b3d6b31ac31d4315a32195273ac5a944578b8c28128802d21e226393f60bdcf6c3a6e73e9b91de SHA512 b152d0a19151b51a1eb9c28946ca7cbb9e6b389fd440554853de0e7c8cf149e805214b051aca9c579988ec1000368208a42afe88cdd47b6290c5da3d5122d1f0 DIST opera-ffmpeg-codecs-92.0.4515.20.tar.xz 1382256 BLAKE2B 1e00bb4ee655573ac7b6c2f04ae2ae9a073f839ff6deeba3e3c4c2c58a10b1152068f0549fb3c6de758628317ad7c568cf5d3031294208800b470e3ed00c938b SHA512 6aeec66a9fcea1fcf5ecfd23b56589598f5e612e788b4e417037250470b83f91e461e3b0c20caf7853677d314053ca9d489983736708f15d21a82d68d2cdd5c2 diff --git a/www-client/opera-developer/opera-developer-79.0.4105.0.ebuild b/www-client/opera-developer/opera-developer-79.0.4105.0.ebuild new file mode 100644 index 000000000000..5f5790fcf46c --- /dev/null +++ b/www-client/opera-developer/opera-developer-79.0.4105.0.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2021 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-2018" +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 + MY_PN=${PN}-stable + SRC_URI_BASE=( "${SRC_URI_BASE[@]/%//desktop}" ) +else + MY_PN=${PN} +fi + +KEYWORDS="-* ~amd64" + +FFMPEG_VERSION="92.0.4515.20" + +SRC_URI="${SRC_URI_BASE[@]/%//${PV}/linux/${MY_PN}_${PV}_amd64.deb} + proprietary-codecs? ( + https://dev.gentoo.org/~sultan/distfiles/www-client/opera/opera-ffmpeg-codecs-${FFMPEG_VERSION}.tar.xz + )" + +IUSE="+proprietary-codecs suid" +RESTRICT="bindist mirror strip" + +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 + gnome-base/gsettings-desktop-schemas + 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/libxshmfence + 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} +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 -r "usr/lib" || die + + # disable auto update + rm "${OPERA_HOME}/${PN%-*}_autoupdate"{,.licenses,.version} || die + + rm -r "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 "usr/bin/${PN}" || die + dosym "../../${OPERA_HOME}/${PN}" "/usr/bin/${PN}" + + # install proprietary codecs + rm "${OPERA_HOME}/resources/ffmpeg_preload_config.json" || die + if use proprietary-codecs; then + mv lib_extra "${OPERA_HOME}" + 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" +} |