mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
www-client/microsoft-edge-dev: prune old versions
Signed-off-by: Matt Jolly <kangie@gentoo.org>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
DIST microsoft-edge-dev_152.0.4181.1-1_amd64.deb 191717590 BLAKE2B edf0a575a67d2fa0a960dc9fb497016f8d66e547d237e3cbc96c625d939f066ab2a34b8bf05ee9da510f08b96566273bd4d6ec009fedbd081621f63583dfdfdb SHA512 0485d0cd9ef8a4b66391deafbb09aec9994d5082f13fab7109e144960b9af29bb9f2b8a90c646491e58305db669b48281a9cc08a396c8e44349b84cd31982e95
|
||||
DIST microsoft-edge-dev_152.0.4191.10-1_amd64.deb 195162638 BLAKE2B 0cbd2ea7f8f4471c81a82f752d570aa352d08e30d645d20ee24483e64f0e2cf3a446900f118ed36be4918a0988a886186168eb57cfe8a96da674a848cf74d7d6 SHA512 8a6782ef1f4bc4cef30aefb79f03682d1ed11116a1786e44185a8285eb6fdbbef8ef0ac1cc134e34d0c23897ca26f90a29d7d3bafd779752904bb41081465ba9
|
||||
DIST microsoft-edge-dev_152.0.4191.7-1_amd64.deb 195053378 BLAKE2B add1de5f808d1ed4ca06d28a5a10cc3843a1649af75ce9e6ab68fee996290b181d9785ee25879c714f19b47029cc09401fe91c06a48c4cd2b769747e2c6f182b SHA512 8130794da7ab7d48155895104e312ce7faa0cc7c089be5ae224d2a3b91fb906edb308f96607ac188f0e191d517eb457c8484c9262e1cb5132b6a24139255ab12
|
||||
DIST microsoft-edge-dev_153.0.4210.0-1_amd64.deb 191612550 BLAKE2B 295b3a1155bbef09ebbd05929896fd8ba0cfa036de36c6a126bfd712d79101f3dbfe67f87cc42b99268f2a162ca4e1dc139061a13ed522606a06cfb2632ee238 SHA512 fff10fd7bc488b71ccba5c9fcbf865457faabb64c1e91fb23f5ca8a018e03ba38a39370bd9193c3745bf66bbcff7bd924daf494030ad7fe097350159efe0f01b
|
||||
|
||||
@@ -1,125 +0,0 @@
|
||||
# Copyright 2011-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit chromium-2 desktop pax-utils unpacker xdg
|
||||
|
||||
DESCRIPTION="The web browser from Microsoft"
|
||||
HOMEPAGE="https://www.microsoft.com/edge"
|
||||
|
||||
if [[ ${PN} == microsoft-edge ]]; then
|
||||
MY_PN=${PN}-stable
|
||||
else
|
||||
MY_PN=${PN}
|
||||
fi
|
||||
|
||||
MY_P="${MY_PN}_${PV}-1"
|
||||
SRC_URI="https://packages.microsoft.com/repos/edge/pool/main/m/${MY_PN}/${MY_P}_amd64.deb"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="microsoft-edge"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
|
||||
IUSE="+mip qt6"
|
||||
RESTRICT="bindist mirror strip"
|
||||
|
||||
RDEPEND="
|
||||
>=app-accessibility/at-spi2-core-2.46.0:2
|
||||
app-misc/ca-certificates
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
media-fonts/liberation-fonts
|
||||
media-libs/alsa-lib
|
||||
media-libs/mesa[gbm(+)]
|
||||
net-misc/curl[ssl]
|
||||
net-print/cups
|
||||
sys-apps/dbus
|
||||
sys-apps/util-linux
|
||||
sys-libs/glibc
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/gtk+:3[X]
|
||||
x11-libs/libdrm
|
||||
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/libxshmfence
|
||||
x11-libs/pango
|
||||
x11-misc/xdg-utils
|
||||
mip? (
|
||||
app-crypt/libsecret
|
||||
|| ( dev-libs/libxml2-compat:2/2 dev-libs/libxml2:2/2 )
|
||||
)
|
||||
qt6? ( dev-qt/qtbase:6[gui,widgets] )
|
||||
"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
QA_DESKTOP_FILE="usr/share/applications/microsoft-edge.*\\.desktop"
|
||||
EDGE_HOME="opt/microsoft/msedge${PN#microsoft-edge}"
|
||||
|
||||
pkg_nofetch() {
|
||||
eerror "Please wait 24 hours and sync your tree before reporting a bug for microsoft-edge fetch failures."
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
# Protect against people using autounmask overzealously
|
||||
use amd64 || die "microsoft-edge only works on amd64"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
chromium_suid_sandbox_check_kernel_config
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /
|
||||
cd "${ED}" || die
|
||||
unpacker
|
||||
|
||||
rm -f _gpgorigin || die
|
||||
|
||||
mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die
|
||||
|
||||
# Microsoft Edge comes with its own bundled cron
|
||||
# scripts which invoke `apt` directly. Useless on Gentoo!
|
||||
rm -r etc/cron.daily || die "Failed to remove cron scripts"
|
||||
rm -r "${EDGE_HOME}"/cron || die "Failed to remove cron scripts"
|
||||
|
||||
gzip -d usr/share/doc/${PF}/changelog.gz || die
|
||||
gzip -d usr/share/man/man1/${MY_PN}.1.gz || die
|
||||
if [[ -L usr/share/man/man1/${PN}.1.gz ]]; then
|
||||
rm usr/share/man/man1/${PN}.1.gz || die
|
||||
dosym ${MY_PN}.1 usr/share/man/man1/${PN}.1
|
||||
fi
|
||||
|
||||
local size
|
||||
# channel suffix: "" stable, "_channel" for beta/dev.
|
||||
local channel=${PN#microsoft-edge}
|
||||
channel=${channel/-/_}
|
||||
for size in 16 24 32 48 64 128 256 ; do
|
||||
newicon -s ${size} "${EDGE_HOME}/product_logo_${size}${channel}.png" ${PN}.png
|
||||
done
|
||||
|
||||
if ! use mip; then
|
||||
rm "${EDGE_HOME}"/libmip_core_gn.so || die
|
||||
fi
|
||||
|
||||
rm "${EDGE_HOME}/libqt5_shim.so" || die
|
||||
if ! use qt6; then
|
||||
rm "${EDGE_HOME}/libqt6_shim.so" || die
|
||||
fi
|
||||
|
||||
pax-mark m "${EDGE_HOME}/msedge"
|
||||
}
|
||||
Reference in New Issue
Block a user