aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-07-27 09:01:13 -0400
committerNick Sarnie <sarnex@gentoo.org>2021-07-31 19:59:44 -0400
commit90e4b42cc3c6fcc094ffe8b413f338ea96c92517 (patch)
tree47696a6b7327a2004699f8fa042b15cbd40e3d71 /app-emulation/wine-gecko/wine-gecko-2.47.2.ebuild
parentapp-emulation/wine-mono: add shared support (diff)
downloadwine-90e4b42cc3c6fcc094ffe8b413f338ea96c92517.tar.gz
wine-90e4b42cc3c6fcc094ffe8b413f338ea96c92517.tar.bz2
wine-90e4b42cc3c6fcc094ffe8b413f338ea96c92517.zip
app-emulation/wine-gecko: add shared
skip 2.47 and 2.47.1, because poor support for shared upstream in those versions, and they are also not used by any current gentoo wines Signed-off-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca> Closes: https://github.com/gentoo/repo-proj-wine/pull/21 Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'app-emulation/wine-gecko/wine-gecko-2.47.2.ebuild')
-rw-r--r--app-emulation/wine-gecko/wine-gecko-2.47.2.ebuild25
1 files changed, 18 insertions, 7 deletions
diff --git a/app-emulation/wine-gecko/wine-gecko-2.47.2.ebuild b/app-emulation/wine-gecko/wine-gecko-2.47.2.ebuild
index 6f99f66..ad3c90c 100644
--- a/app-emulation/wine-gecko/wine-gecko-2.47.2.ebuild
+++ b/app-emulation/wine-gecko/wine-gecko-2.47.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -6,21 +6,32 @@ EAPI=6
DESCRIPTION="A Mozilla Gecko based version of Internet Explorer for Wine"
HOMEPAGE="https://winehq.org"
SRC_URI="
- abi_x86_32? ( https://dl.winehq.org/wine/${PN}/${PV}/${PN}-${PV}-x86.msi )
- abi_x86_64? ( https://dl.winehq.org/wine/${PN}/${PV}/${PN}-${PV}-x86_64.msi )
+ !shared? (
+ abi_x86_32? ( https://dl.winehq.org/wine/${PN}/${PV}/${PN}-${PV}-x86.msi )
+ abi_x86_64? ( https://dl.winehq.org/wine/${PN}/${PV}/${PN}-${PV}-x86_64.msi )
+ )
+ shared? (
+ abi_x86_32? ( https://dl.winehq.org/wine/${PN}/${PV}/${PN}-${PV}-x86.tar.xz )
+ abi_x86_64? ( https://dl.winehq.org/wine/${PN}/${PV}/${PN}-${PV}-x86_64.tar.xz )
+ )
"
LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0"
SLOT="${PV}"
KEYWORDS="~amd64 ~x86"
-IUSE="abi_x86_32 abi_x86_64"
+IUSE="abi_x86_32 abi_x86_64 +shared"
DEPEND="!!app-emulation/wine:0"
S="${WORKDIR}"
-src_install(){
+src_install() {
insinto /usr/share/wine/gecko
- use abi_x86_32 && doins "${DISTDIR}/${PN}-${PV}-x86.msi"
- use abi_x86_64 && doins "${DISTDIR}/${PN}-${PV}-x86_64.msi"
+ if use shared; then
+ use abi_x86_32 && doins -r "${P}-x86"
+ use abi_x86_64 && doins -r "${P}-x86_64"
+ else
+ use abi_x86_32 && doins "${DISTDIR}/${PN}-${PV}-x86.msi"
+ use abi_x86_64 && doins "${DISTDIR}/${PN}-${PV}-x86_64.msi"
+ fi
}