summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Hartmann <sultan@gentoo.org>2020-10-28 08:23:49 +0100
committerStephan Hartmann <sultan@gentoo.org>2020-10-28 08:23:49 +0100
commit9b7af80e5c3fcb94cb4efeeb7e7960ad8bea3aa8 (patch)
tree81b79f74d918d310553fc468b9e1e20f8daf356b /www-client/microsoft-edge-dev
parentlicenses: add microsoft-edge (diff)
downloadgentoo-9b7af80e5c3fcb94cb4efeeb7e7960ad8bea3aa8.tar.gz
gentoo-9b7af80e5c3fcb94cb4efeeb7e7960ad8bea3aa8.tar.bz2
gentoo-9b7af80e5c3fcb94cb4efeeb7e7960ad8bea3aa8.zip
www-client/microsoft-edge-dev: new package
Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'www-client/microsoft-edge-dev')
-rw-r--r--www-client/microsoft-edge-dev/Manifest1
-rw-r--r--www-client/microsoft-edge-dev/metadata.xml12
-rw-r--r--www-client/microsoft-edge-dev/microsoft-edge-dev-88.0.673.0.ebuild114
3 files changed, 127 insertions, 0 deletions
diff --git a/www-client/microsoft-edge-dev/Manifest b/www-client/microsoft-edge-dev/Manifest
new file mode 100644
index 00000000000..98b4a367d26
--- /dev/null
+++ b/www-client/microsoft-edge-dev/Manifest
@@ -0,0 +1 @@
+DIST microsoft-edge-dev_88.0.673.0-1_amd64.deb 88309450 BLAKE2B 1fd689cb90857115f7306b1172f5f47ca0538acaa215357d66e7dc724d3253bd7b97dff93b48ff93aa8571638692745323f54e6c12f767fe4676d99c5af05c7d SHA512 26760134426aef9d3672f1acc438f976ec86eafdc74bc0ebab0bcdbff98f42e8124eac99d7abd725a469c766c93059b691e990c1bfb9cf21e272e0c663f55767
diff --git a/www-client/microsoft-edge-dev/metadata.xml b/www-client/microsoft-edge-dev/metadata.xml
new file mode 100644
index 00000000000..009771eab80
--- /dev/null
+++ b/www-client/microsoft-edge-dev/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>chromium@gentoo.org</email>
+ <name>Chromium in Gentoo Project</name>
+ </maintainer>
+ <longdescription>
+ Microsoft Edge is a browser that combines a minimal design with
+ sophisticated technology to make the web faster, safer, and easier.
+ </longdescription>
+</pkgmetadata>
diff --git a/www-client/microsoft-edge-dev/microsoft-edge-dev-88.0.673.0.ebuild b/www-client/microsoft-edge-dev/microsoft-edge-dev-88.0.673.0.ebuild
new file mode 100644
index 00000000000..41108ab2bec
--- /dev/null
+++ b/www-client/microsoft-edge-dev/microsoft-edge-dev-88.0.673.0.ebuild
@@ -0,0 +1,114 @@
+# Copyright 2011-2020 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
+}