www-client/microsoft-edge-dev: add USE=mip

Closes: https://bugs.gentoo.org/832145
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
This commit is contained in:
Stephan Hartmann
2022-01-28 11:10:37 +01:00
parent 9239af451b
commit 6a47d349f0
4 changed files with 21 additions and 0 deletions

View File

@@ -9,4 +9,7 @@
Microsoft Edge is a browser that combines a minimal design with
sophisticated technology to make the web faster, safer, and easier.
</longdescription>
<use>
<flag name="mip">Install Microsoft Information Protection plugin.</flag>
</use>
</pkgmetadata>

View File

@@ -23,6 +23,7 @@ SRC_URI="https://packages.microsoft.com/repos/edge/pool/main/m/${MY_PN}/${MY_P}_
LICENSE="microsoft-edge"
SLOT="0"
RESTRICT="bindist mirror strip"
IUSE="+mip"
RDEPEND="
app-accessibility/at-spi2-atk:2
@@ -55,6 +56,7 @@ RDEPEND="
x11-libs/libxshmfence
x11-libs/pango
x11-misc/xdg-utils
mip? ( app-crypt/libsecret )
"
QA_PREBUILT="*"
@@ -105,5 +107,9 @@ src_install() {
newicon -s ${size} "${EDGE_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
done
if ! use mip; then
rm "${EDGE_HOME}"/libmip_{core,protection_sdk}.so || die
fi
pax-mark m "${EDGE_HOME}/msedge"
}

View File

@@ -23,6 +23,7 @@ SRC_URI="https://packages.microsoft.com/repos/edge/pool/main/m/${MY_PN}/${MY_P}_
LICENSE="microsoft-edge"
SLOT="0"
RESTRICT="bindist mirror strip"
IUSE="+mip"
RDEPEND="
app-accessibility/at-spi2-atk:2
@@ -55,6 +56,7 @@ RDEPEND="
x11-libs/libxshmfence
x11-libs/pango
x11-misc/xdg-utils
mip? ( app-crypt/libsecret )
"
QA_PREBUILT="*"
@@ -105,5 +107,9 @@ src_install() {
newicon -s ${size} "${EDGE_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
done
if ! use mip; then
rm "${EDGE_HOME}"/libmip_{core,protection_sdk}.so || die
fi
pax-mark m "${EDGE_HOME}/msedge"
}

View File

@@ -23,6 +23,7 @@ SRC_URI="https://packages.microsoft.com/repos/edge/pool/main/m/${MY_PN}/${MY_P}_
LICENSE="microsoft-edge"
SLOT="0"
RESTRICT="bindist mirror strip"
IUSE="+mip"
RDEPEND="
app-accessibility/at-spi2-atk:2
@@ -55,6 +56,7 @@ RDEPEND="
x11-libs/libxshmfence
x11-libs/pango
x11-misc/xdg-utils
mip? ( app-crypt/libsecret )
"
QA_PREBUILT="*"
@@ -105,5 +107,9 @@ src_install() {
newicon -s ${size} "${EDGE_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
done
if ! use mip; then
rm "${EDGE_HOME}"/libmip_{core,protection_sdk}.so || die
fi
pax-mark m "${EDGE_HOME}/msedge"
}