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