Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/microsoft-edge/
Date: Mon, 15 Aug 2022 23:40:16
Message-Id: 1660606696.cebb44b99a102bcd4fb2ebe98d3d87ebc769de1b.sam@gentoo
1 commit: cebb44b99a102bcd4fb2ebe98d3d87ebc769de1b
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 15 23:38:16 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 15 23:38:16 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cebb44b9
7
8 www-client/microsoft-edge: automated bump (104.0.1293.54)
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 www-client/microsoft-edge/Manifest | 1 +
13 .../microsoft-edge-104.0.1293.54.ebuild | 116 +++++++++++++++++++++
14 2 files changed, 117 insertions(+)
15
16 diff --git a/www-client/microsoft-edge/Manifest b/www-client/microsoft-edge/Manifest
17 index a9333b29ead5..e52ada003a1c 100644
18 --- a/www-client/microsoft-edge/Manifest
19 +++ b/www-client/microsoft-edge/Manifest
20 @@ -1 +1,2 @@
21 DIST microsoft-edge-stable_104.0.1293.47-1_amd64.deb 131244500 BLAKE2B 8ca7f51b04107ab98e182e0bdddf6f0c051d2b7935d8ca73e8b597f662e74db8235a4065bd3d85aaea9137cff1a75b541b257f577abbdcbfbe594637fc43ccaf SHA512 0db48a4a58b0af0733ee31857e3d7ee435daeaf84417f3b70bd74f4d31ee78c526d33f0039697f130b1dd98df94c7fcaa2abf1629af577a9d23ef0520974b265
22 +DIST microsoft-edge-stable_104.0.1293.54-1_amd64.deb 131288252 BLAKE2B 720ca46f3a2ea38c4876d3db7c581f5d337b5ce54da80678ec09a3b4454ee9c2c006f0397f13be8c03a51a9c9c84ee8bf6e9b4ca25acad0855408d2738c49a8a SHA512 4318a49f294fc3ad867bef0804475e558c432adb6c810ef45cf9a0b9b6e6c0eba077a10bcc49f01074656eb8c2ef0fe78b369407f6be780df510a12b8a25b9ba
23
24 diff --git a/www-client/microsoft-edge/microsoft-edge-104.0.1293.54.ebuild b/www-client/microsoft-edge/microsoft-edge-104.0.1293.54.ebuild
25 new file mode 100644
26 index 000000000000..a8cc7e730ebf
27 --- /dev/null
28 +++ b/www-client/microsoft-edge/microsoft-edge-104.0.1293.54.ebuild
29 @@ -0,0 +1,116 @@
30 +# Copyright 2011-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="8"
34 +
35 +inherit chromium-2 desktop pax-utils unpacker xdg
36 +
37 +DESCRIPTION="The web browser from Microsoft"
38 +HOMEPAGE="https://www.microsoft.com/en-us/edge"
39 +
40 +if [[ ${PN} == microsoft-edge ]]; then
41 + MY_PN=${PN}-stable
42 +else
43 + MY_PN=${PN}
44 +fi
45 +
46 +KEYWORDS="-* ~amd64"
47 +
48 +MY_P="${MY_PN}_${PV}-1"
49 +
50 +SRC_URI="https://packages.microsoft.com/repos/edge/pool/main/m/${MY_PN}/${MY_P}_amd64.deb"
51 +
52 +LICENSE="microsoft-edge"
53 +SLOT="0"
54 +RESTRICT="bindist mirror strip"
55 +IUSE="+mip"
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 + sys-libs/glibc
74 + x11-libs/cairo
75 + x11-libs/gdk-pixbuf:2
76 + x11-libs/gtk+:3[X]
77 + x11-libs/libdrm
78 + x11-libs/libX11
79 + x11-libs/libXcomposite
80 + x11-libs/libXdamage
81 + x11-libs/libXext
82 + x11-libs/libXfixes
83 + x11-libs/libXrandr
84 + x11-libs/libxcb
85 + x11-libs/libxkbcommon
86 + x11-libs/libxshmfence
87 + x11-libs/pango
88 + x11-misc/xdg-utils
89 + mip? ( app-crypt/libsecret )
90 +"
91 +
92 +QA_PREBUILT="*"
93 +QA_DESKTOP_FILE="usr/share/applications/microsoft-edge.*\\.desktop"
94 +S=${WORKDIR}
95 +EDGE_HOME="opt/microsoft/msedge${PN#microsoft-edge}"
96 +
97 +pkg_nofetch() {
98 + eerror "Please wait 24 hours and sync your tree before reporting a bug for microsoft-edge fetch failures."
99 +}
100 +
101 +pkg_pretend() {
102 + # Protect against people using autounmask overzealously
103 + use amd64 || die "microsoft-edge only works on amd64"
104 +}
105 +
106 +pkg_setup() {
107 + chromium_suid_sandbox_check_kernel_config
108 +}
109 +
110 +src_unpack() {
111 + :
112 +}
113 +
114 +src_install() {
115 + dodir /
116 + cd "${ED}" || die
117 + unpacker
118 +
119 + rm _gpgorigin || die
120 +
121 + rm -r etc usr/share/menu || die
122 + mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die
123 +
124 + gzip -d usr/share/doc/${PF}/changelog.gz || die
125 + gzip -d usr/share/man/man1/${MY_PN}.1.gz || die
126 + if [[ -L usr/share/man/man1/${PN}.1.gz ]]; then
127 + rm usr/share/man/man1/${PN}.1.gz || die
128 + dosym ${MY_PN}.1 usr/share/man/man1/${PN}.1
129 + fi
130 +
131 + local suffix=
132 + [[ ${PN} == microsoft-edge-beta ]] && suffix=_beta
133 + [[ ${PN} == microsoft-edge-dev ]] && suffix=_dev
134 +
135 + local size
136 + for size in 16 24 32 48 64 128 256 ; do
137 + newicon -s ${size} "${EDGE_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
138 + done
139 +
140 + if ! use mip; then
141 + rm "${EDGE_HOME}"/libmip_{core,protection_sdk}.so || die
142 + fi
143 +
144 + pax-mark m "${EDGE_HOME}/msedge"
145 +}