Gentoo Archives: gentoo-commits

From: Stephan Hartmann <sultan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/microsoft-edge/
Date: Sat, 30 Oct 2021 08:19:58
Message-Id: 1635581982.e63a01e2ce124d0f33e6f9e6552bacc4b543187e.sultan@gentoo
1 commit: e63a01e2ce124d0f33e6f9e6552bacc4b543187e
2 Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 30 08:19:42 2021 +0000
4 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 30 08:19:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e63a01e2
7
8 www-client/microsoft-edge: bump to 95.0.1020.40
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>
12
13 www-client/microsoft-edge/Manifest | 1 +
14 .../microsoft-edge-95.0.1020.40.ebuild | 109 +++++++++++++++++++++
15 2 files changed, 110 insertions(+)
16
17 diff --git a/www-client/microsoft-edge/Manifest b/www-client/microsoft-edge/Manifest
18 index 2a99c6ebd4a..cdc14eb999b 100644
19 --- a/www-client/microsoft-edge/Manifest
20 +++ b/www-client/microsoft-edge/Manifest
21 @@ -1 +1,2 @@
22 DIST microsoft-edge-stable_95.0.1020.38-1_amd64.deb 115540916 BLAKE2B a009ba2ac3fe5ddd570456d978420cb2307baaa6e925488721f038d196516e228e3a25d3e93c62e729365cf833fa634587c4bc09be3dda7d528068446747cbd7 SHA512 896d9fc55331763f0db87065d63b67a02b861d429f18288dd3bbe01e51b7cb5315b59400489f1522ffa57d202db21f6df99f56666fec42fd6be1db054ce951be
23 +DIST microsoft-edge-stable_95.0.1020.40-1_amd64.deb 115596848 BLAKE2B 1c9cb1cf87e0881a625468b5295e5738571a52ccef06dcc771f26e67f0b27c812b5d86fb5119be971c821786b409f501e67b98e8426a16253262980b1cd162bb SHA512 687a3e8e547dc8f66f252f0afc9edf1dcc1aa01f4b3bf43a36c5971f3f2853dea8c5ed78a1a5f97e082f5342bf7bdd111d5c3ef69052c2c3d3689d05cc43b514
24
25 diff --git a/www-client/microsoft-edge/microsoft-edge-95.0.1020.40.ebuild b/www-client/microsoft-edge/microsoft-edge-95.0.1020.40.ebuild
26 new file mode 100644
27 index 00000000000..098697866ec
28 --- /dev/null
29 +++ b/www-client/microsoft-edge/microsoft-edge-95.0.1020.40.ebuild
30 @@ -0,0 +1,109 @@
31 +# Copyright 2011-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="8"
35 +
36 +inherit chromium-2 desktop pax-utils unpacker xdg
37 +
38 +DESCRIPTION="The web browser from Microsoft"
39 +HOMEPAGE="https://www.microsoft.com/en-us/edge"
40 +
41 +if [[ ${PN} == microsoft-edge ]]; then
42 + MY_PN=${PN}-stable
43 +else
44 + MY_PN=${PN}
45 +fi
46 +
47 +KEYWORDS="-* ~amd64"
48 +
49 +MY_P="${MY_PN}_${PV}-1"
50 +
51 +SRC_URI="https://packages.microsoft.com/repos/edge/pool/main/m/${MY_PN}/${MY_P}_amd64.deb"
52 +
53 +LICENSE="microsoft-edge"
54 +SLOT="0"
55 +RESTRICT="bindist mirror strip"
56 +
57 +RDEPEND="
58 + app-accessibility/at-spi2-atk:2
59 + app-accessibility/at-spi2-core:2
60 + app-misc/ca-certificates
61 + dev-libs/atk
62 + dev-libs/expat
63 + dev-libs/glib:2
64 + dev-libs/nspr
65 + dev-libs/nss
66 + media-fonts/liberation-fonts
67 + media-libs/alsa-lib
68 + media-libs/mesa[gbm(+)]
69 + net-misc/curl[ssl]
70 + net-print/cups
71 + sys-apps/dbus
72 + sys-apps/util-linux
73 + x11-libs/cairo
74 + x11-libs/gdk-pixbuf:2
75 + x11-libs/gtk+:3[X]
76 + x11-libs/libdrm
77 + x11-libs/libX11
78 + x11-libs/libXcomposite
79 + x11-libs/libXdamage
80 + x11-libs/libXext
81 + x11-libs/libXfixes
82 + x11-libs/libXrandr
83 + x11-libs/libxcb
84 + x11-libs/libxkbcommon
85 + x11-libs/libxshmfence
86 + x11-libs/pango
87 + x11-misc/xdg-utils
88 +"
89 +
90 +QA_PREBUILT="*"
91 +QA_DESKTOP_FILE="usr/share/applications/microsoft-edge.*\\.desktop"
92 +S=${WORKDIR}
93 +EDGE_HOME="opt/microsoft/msedge${PN#microsoft-edge}"
94 +
95 +pkg_nofetch() {
96 + eerror "Please wait 24 hours and sync your tree before reporting a bug for microsoft-edge fetch failures."
97 +}
98 +
99 +pkg_pretend() {
100 + # Protect against people using autounmask overzealously
101 + use amd64 || die "microsoft-edge only works on amd64"
102 +}
103 +
104 +pkg_setup() {
105 + chromium_suid_sandbox_check_kernel_config
106 +}
107 +
108 +src_unpack() {
109 + :
110 +}
111 +
112 +src_install() {
113 + dodir /
114 + cd "${ED}" || die
115 + unpacker
116 +
117 + rm _gpgorigin || die
118 +
119 + rm -r etc usr/share/menu || die
120 + mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die
121 +
122 + gzip -d usr/share/doc/${PF}/changelog.gz || die
123 + gzip -d usr/share/man/man1/${MY_PN}.1.gz || die
124 + if [[ -L usr/share/man/man1/${PN}.1.gz ]]; then
125 + rm usr/share/man/man1/${PN}.1.gz || die
126 + dosym ${MY_PN}.1 usr/share/man/man1/${PN}.1
127 + fi
128 +
129 + local suffix=
130 + [[ ${PN} == microsoft-edge-beta ]] && suffix=_beta
131 + [[ ${PN} == microsoft-edge-dev ]] && suffix=_dev
132 +
133 + local size
134 + for size in 16 24 32 48 64 128 256 ; do
135 + newicon -s ${size} "${EDGE_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
136 + done
137 +
138 + pax-mark m "${EDGE_HOME}/msedge"
139 +}