diff options
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/microsoft-edge-dev/Manifest | 1 | ||||
-rw-r--r-- | www-client/microsoft-edge-dev/microsoft-edge-dev-90.0.796.0.ebuild | 114 |
2 files changed, 115 insertions, 0 deletions
diff --git a/www-client/microsoft-edge-dev/Manifest b/www-client/microsoft-edge-dev/Manifest index 17bf2a62832d..aaf7cc3b1563 100644 --- a/www-client/microsoft-edge-dev/Manifest +++ b/www-client/microsoft-edge-dev/Manifest @@ -1,2 +1,3 @@ DIST microsoft-edge-dev_90.0.782.0-1_amd64.deb 92059528 BLAKE2B 0aeeb727aeb085798ac71d05c3adb26984cb2c967386828fe65f73cdd7a53016383b4215e70829cbc38a6a3ddcdd962234dc94ccd34cb48e1a5736e0001ad9e1 SHA512 606e7a6464b6ed8d1d77125636717614bba33aed7a38f9f5933ef3f4597c763e9a373db452feae8a34de1efbce9afa59264d34992473bc620a095f91a6187bb6 DIST microsoft-edge-dev_90.0.789.1-1_amd64.deb 93474640 BLAKE2B af605f76f2d1234f866b0f222f56bb616bb7699120201b445b153ad32ea4c2ab3f988cc444776f95b505589a65a805467816116c99d746f281f47a5698ca95c8 SHA512 f6d8860e9171749fe4dbe84003d03297fb98ed3a034446a5085268b73eed3eb02e96c0c33deed02ae54d14e1c4d86921579d8ccf29320e740aa8e71c93680342 +DIST microsoft-edge-dev_90.0.796.0-1_amd64.deb 93188494 BLAKE2B 3049db63838884f9919b25a1325012bddfa936bab4d090f8f9df2d6b79afd5b83d315673e8f9b656280a7c71a408ca1d2049c4c12db2fc24086f8638daf47889 SHA512 d2705b7b557ff4fdc49bc10b79ca1d0a40bd486e961a373da7302be3cb060a6f1d9ac5142a60fca10ab2e45e18e0b28589497d833e72b2d4bac138e9cf275a3b diff --git a/www-client/microsoft-edge-dev/microsoft-edge-dev-90.0.796.0.ebuild b/www-client/microsoft-edge-dev/microsoft-edge-dev-90.0.796.0.ebuild new file mode 100644 index 000000000000..8b9535ac7993 --- /dev/null +++ b/www-client/microsoft-edge-dev/microsoft-edge-dev-90.0.796.0.ebuild @@ -0,0 +1,114 @@ +# Copyright 2011-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit chromium-2 desktop pax-utils unpacker xdg-utils + +DESCRIPTION="The web browser from Microsoft" +HOMEPAGE="https://www.microsoft.com/en-us/edge" + +if [[ ${PN} == microsoft-edge ]]; then + KEYWORDS="-* amd64" + MY_PN=${PN}-stable +else + KEYWORDS="-* ~amd64" + 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" + +LICENSE="microsoft-edge" +SLOT="0" +RESTRICT="bindist mirror strip" + +RDEPEND=" + app-accessibility/at-spi2-atk:2 + app-accessibility/at-spi2-core:2 + app-misc/ca-certificates + dev-libs/atk + 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/wget + net-print/cups + sys-apps/dbus + sys-apps/util-linux + 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/pango + x11-misc/xdg-utils +" + +QA_PREBUILT="*" +QA_DESKTOP_FILE="usr/share/applications/microsoft-edge.*\\.desktop" +S=${WORKDIR} +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 _gpgorigin || die + + rm -r etc usr/share/menu || die + mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die + + gzip -d usr/share/doc/${PF}/changelog.gz || die + gzip -d usr/share/man/man1/${MY_PN}.1.gz || die + + local suffix= + [[ ${PN} == microsoft-edge-beta ]] && suffix=_beta + [[ ${PN} == microsoft-edge-dev ]] && suffix=_dev + + local size + for size in 16 24 32 48 64 128 256 ; do + newicon -s ${size} "${EDGE_HOME}/product_logo_${size}${suffix}.png" ${PN}.png + done + + pax-mark m "${EDGE_HOME}/msedge" +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update +} |