From 39143472aa3760a0fac539c55268d6b41076aa97 Mon Sep 17 00:00:00 2001 From: Andrey Lir Date: Sun, 22 Mar 2026 18:54:47 +0200 Subject: [PATCH] www-client/opera-gx-bin: new package, add 1.0 Signed-off-by: Andrey Lir --- www-client/opera-gx-bin/Manifest | 1 + www-client/opera-gx-bin/metadata.xml | 11 +++ .../opera-gx-bin/opera-gx-bin-1.0.ebuild | 68 +++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 www-client/opera-gx-bin/Manifest create mode 100644 www-client/opera-gx-bin/metadata.xml create mode 100644 www-client/opera-gx-bin/opera-gx-bin-1.0.ebuild diff --git a/www-client/opera-gx-bin/Manifest b/www-client/opera-gx-bin/Manifest new file mode 100644 index 0000000000..d89c4ae432 --- /dev/null +++ b/www-client/opera-gx-bin/Manifest @@ -0,0 +1 @@ +DIST opera-gx-stable_128.0.5807.97_amd64.deb 169161940 BLAKE2B 6d56c8cb782ba302635ee2448fb9d12f76cc5bc1121b452e643ab09549b925cd3daeca8cc98f90eef9a7e11732b39335e79e3b672a13ba22f91ee9e3a00c69bc SHA512 de1da53f6b2892ce5ae41e94129cf09f0b9b75a7c4cd62bb359c31f82ef632313f9729602703b66883c6ff4971be3a9ced23129bfcc4393e3fe6c3af4e502302 diff --git a/www-client/opera-gx-bin/metadata.xml b/www-client/opera-gx-bin/metadata.xml new file mode 100644 index 0000000000..594fc1c21b --- /dev/null +++ b/www-client/opera-gx-bin/metadata.xml @@ -0,0 +1,11 @@ + + + + + andreylir092@gmail.com + Andrey Lir + + + opera-software + + diff --git a/www-client/opera-gx-bin/opera-gx-bin-1.0.ebuild b/www-client/opera-gx-bin/opera-gx-bin-1.0.ebuild new file mode 100644 index 0000000000..e31cece6c5 --- /dev/null +++ b/www-client/opera-gx-bin/opera-gx-bin-1.0.ebuild @@ -0,0 +1,68 @@ +EAPI=8 + +inherit desktop unpacker xdg + +DESCRIPTION="Opera GX Browser (Binary Package)" +HOMEPAGE="https://www.opera.com/gx" +SRC_URI="https://download3.operacdn.com/ftp/pub/opera_gx/128.0.5807.97/linux/opera-gx-stable_128.0.5807.97_amd64.deb" + +LICENSE="Opera-EULA" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="strip test" +#re-stripping an already stripped binary can lead to file corruption or 'QA Notice: Pre-stripped files found' warnings. +#Using RESTRICT="strip" tells Portage to skip this step and leave the binary as-is. +#Same goes for the test in RESTRICT, since it's an ebuild for an already precompiled binary we don't compile anything - thus there is no need to run any tests which are for compiled software. +IUSE="" + +RDEPEND=" + dev-libs/atk + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa[gbm(+)] + net-print/cups + sys-apps/dbus + virtual/libudev + x11-libs/cairo + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/pango +" + +BDEPEND="sys-devel/binutils" + +S="${WORKDIR}" + +src_install() { + if [[ -d usr ]]; then + # Fix the .desktop file validation errors + if [[ -f usr/share/applications/opera-gx.desktop ]]; then + sed -i '/TargetEnvironment/d' usr/share/applications/opera-gx.desktop || die + fi + # Fix for the unexpected directory /usr/share/doc/opera-gx-stable + if [[ -d usr/share/doc/opera-gx-stable ]]; then + mkdir -p "${ED}/usr/share/doc/${PF}" || die + # Unzip the changelog to fix the compression notice + gunzip usr/share/doc/opera-gx-stable/changelog.gz || die + cp -a usr/share/doc/opera-gx-stable/* "${ED}/usr/share/doc/${PF}/" || die + rm -rf usr/share/doc/opera-gx-stable || die + fi + insinto /usr + doins -r usr/* + fi + if [[ -d opt ]]; then + insinto /opt + doins -r opt/* + fi + fperms 0755 /usr/bin/opera-gx +}