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-beta/
Date: Fri, 30 Apr 2021 19:03:39
Message-Id: 1619809408.0ce9732c36f56bba68259f4342dbfe2cb5586f2c.sultan@gentoo
1 commit: 0ce9732c36f56bba68259f4342dbfe2cb5586f2c
2 Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 30 19:02:35 2021 +0000
4 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 30 19:03:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ce9732c
7
8 www-client/microsoft-edge-beta: new package
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>
12
13 www-client/microsoft-edge-beta/Manifest | 1 +
14 www-client/microsoft-edge-beta/metadata.xml | 12 +++
15 .../microsoft-edge-beta-91.0.864.11.ebuild | 105 +++++++++++++++++++++
16 3 files changed, 118 insertions(+)
17
18 diff --git a/www-client/microsoft-edge-beta/Manifest b/www-client/microsoft-edge-beta/Manifest
19 new file mode 100644
20 index 00000000000..f3b77f2dcda
21 --- /dev/null
22 +++ b/www-client/microsoft-edge-beta/Manifest
23 @@ -0,0 +1 @@
24 +DIST microsoft-edge-beta_91.0.864.11-1_amd64.deb 98516564 BLAKE2B 1683413c7d6f4baf7e554c91b17dd5b95c1e61bdb8a24fcb2c1f239e521c2c4c4956d5aa2ee782e1fcab63a74ab95b4bccaece925c865aa646333c857a107247 SHA512 d77f82c5795ad067b16eca09be3fe4c7f3c4057dd98721f732ac57ecf031a77563e58c95c0c03f36bece0941da36d8bac868b5a31ecd3bc962efbab1163e89fc
25
26 diff --git a/www-client/microsoft-edge-beta/metadata.xml b/www-client/microsoft-edge-beta/metadata.xml
27 new file mode 100644
28 index 00000000000..009771eab80
29 --- /dev/null
30 +++ b/www-client/microsoft-edge-beta/metadata.xml
31 @@ -0,0 +1,12 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://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-beta/microsoft-edge-beta-91.0.864.11.ebuild b/www-client/microsoft-edge-beta/microsoft-edge-beta-91.0.864.11.ebuild
46 new file mode 100644
47 index 00000000000..5a6a21e554d
48 --- /dev/null
49 +++ b/www-client/microsoft-edge-beta/microsoft-edge-beta-91.0.864.11.ebuild
50 @@ -0,0 +1,105 @@
51 +# Copyright 2011-2021 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI="7"
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/wget
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 +
145 + local suffix=
146 + [[ ${PN} == microsoft-edge-beta ]] && suffix=_beta
147 + [[ ${PN} == microsoft-edge-dev ]] && suffix=_dev
148 +
149 + local size
150 + for size in 16 24 32 48 64 128 256 ; do
151 + newicon -s ${size} "${EDGE_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
152 + done
153 +
154 + pax-mark m "${EDGE_HOME}/msedge"
155 +}