www-client/opera-developer: prune old versions

Signed-off-by: Matt Jolly <kangie@gentoo.org>
This commit is contained in:
Matt Jolly
2026-04-04 17:55:29 +10:00
parent 9ed704a340
commit a7b49d89d0
2 changed files with 0 additions and 144 deletions
-1
View File
@@ -1,4 +1,3 @@
DIST opera-developer_130.0.5839.0_amd64.deb 176913548 BLAKE2B 3db9490566c41633096f13343c389c3714d412a8c0b08011e36ec7fa4fd0874650a79c662051c82c462c44de7fe7c9831483985e8712f20f59989c43acfc0ca6 SHA512 f7f510ed617fcac7b1875e0a1ef4535ffadd6ae88aaddf59473088f37a56f6e3c7b85b518bd758176380bb317c0d56cc0b56b71b67b9155023e6603ce33099ea
DIST opera-developer_130.0.5846.0_amd64.deb 134436968 BLAKE2B c797b8cb6ca62d3337a4474defadc37bb180b0c479d4ce1d8717a8ae9c292073a518ea3e86b1a1501fef7a62ec9552a16e6d125dce63d75ab113dd9a65549f01 SHA512 9df32edd28add43a6493aabcdd2613cbfd146020fc686cbdd59f523db05988d7b1206ee6d7647cba3916685b51412589a9d5b2031711f3976c296ef1b8f2a0f5
DIST opera-developer_131.0.5853.0_amd64.deb 134485248 BLAKE2B aae6c93dcf7347b0b82cbe7e3413177974c14de264679a729b8b06fe5af773e49f917dc369393a1f7114bd26beeae668f43f17f9982d6dbc30c646d7ad43cfc3 SHA512 e3bdcf0ba8278b3fdc481c5c28a3552278c0b08859ba38c1fea8b4b0e4cca8596e45b153547507354b331255253b3afa15b1def338796e6954e41857590f7cae
DIST opera-developer_131.0.5856.0_amd64.deb 134822088 BLAKE2B 9d61072d1ed57493d0874274948e08d360fb084a97815a00876a501bc6b98af70a2ff5e6b9fb8bb58735b846ae84103af9a284506fe6602508a0c1426c4391ea SHA512 bd0928b2e787d3bda371040e5f63310226c183d477634dab4aa257c2674c3b2cb027e4b932d61fab1a59c179ece8d4ddbb840abdaa609f7f8adfac0a52400dbe
@@ -1,143 +0,0 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CHROMIUM_LANGS="
bg bn ca cs da de el en-GB en-US es-419 es fil fi 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 pax-utils unpacker xdg
DESCRIPTION="A fast and secure web browser"
HOMEPAGE="https://www.opera.com/"
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
# Commit ref from `strings libffmpeg.so | grep -F "FFmpeg version"` matches this Chromium version
# or use Chromicler to handle bumps.
# Does not _need_ to be updated for every new version of Opera, only when it breaks.
CHROMIUM_VERSION="145"
SRC_URI="${SRC_URI_BASE[*]/%//${PV}/linux/${MY_PN}_${PV}_amd64.deb}"
S=${WORKDIR}
LICENSE="OPERA-2018"
SLOT="0"
KEYWORDS="-* amd64"
IUSE="+ffmpeg-chromium +proprietary-codecs +suid qt6"
RESTRICT="bindist mirror strip"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
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
sys-libs/glibc
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
proprietary-codecs? (
!ffmpeg-chromium? ( >=media-video/ffmpeg-6.1-r1:0/58.60.60[chromium] )
ffmpeg-chromium? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} )
)
qt6? ( dev-qt/qtbase:6[gui,widgets] )
"
QA_PREBUILT="*"
OPERA_HOME="opt/${MY_PN}"
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 opt || die
mv "usr/lib/x86_64-linux-gnu/${MY_PN}" "${OPERA_HOME}" || 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
dosym ../../usr/$(get_libdir)/chromium/libffmpeg.so$(usex ffmpeg-chromium .${CHROMIUM_VERSION} "") \
/${OPERA_HOME}/libffmpeg.so
fi
rm "${OPERA_HOME}/libqt5_shim.so" || die
if ! use qt6; then
rm "${OPERA_HOME}/libqt6_shim.so" || die
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"
}