www-client/opera-gx-bin: new package, add 1.0

Signed-off-by: Andrey Lir <andreylir092@gmail.com>
This commit is contained in:
Andrey Lir
2026-03-22 18:54:47 +02:00
parent 1f4ffb7d79
commit 39143472aa
3 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST opera-gx-stable_128.0.5807.97_amd64.deb 169161940 BLAKE2B 6d56c8cb782ba302635ee2448fb9d12f76cc5bc1121b452e643ab09549b925cd3daeca8cc98f90eef9a7e11732b39335e79e3b672a13ba22f91ee9e3a00c69bc SHA512 de1da53f6b2892ce5ae41e94129cf09f0b9b75a7c4cd62bb359c31f82ef632313f9729602703b66883c6ff4971be3a9ced23129bfcc4393e3fe6c3af4e502302

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andreylir092@gmail.com</email>
<name>Andrey Lir</name>
</maintainer>
<upstream>
<remote-id type="github">opera-software</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -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
}