diff options
Diffstat (limited to 'app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild')
-rw-r--r-- | app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild b/app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild new file mode 100644 index 000000000000..5b3e569a49d6 --- /dev/null +++ b/app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Manage active wine version" +HOMEPAGE="https://bitbucket.org/NP-Hardass/eselect-wine" +SRC_URI="https://bitbucket.org/NP-Hardass/eselect-wine/get/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/NP-Hardass-eselect-wine-f18b76f9c90c" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +RDEPEND=" + app-admin/eselect + dev-util/desktop-file-utils + !app-emulation/wine:0" + +PATCHES=( + "${FILESDIR}"/${P}-proton.patch +) + +src_install() { + insinto /usr/share/eselect/modules + doins wine.eselect + + keepdir /etc/eselect/wine +} + +pkg_postinst() { + # <eselect-wine-v0.3_rc7 installed symlinks with leading double-slashes. + # In /usr/include this breaks gcc build. + # https://bugs.gentoo.org/434180 + if [[ $(readlink "${EROOT}"/usr/include/wine) == //* ]]; then + ewarn "Leading double slash in ${EROOT}/usr/include/wine symlink detected." + ewarn "Re-setting wine symlinks..." + eselect wine update --if-unset + fi +} + +pkg_prerm() { + # Avoid conflicts with wine[-multislot] installed later + if [[ -z ${REPLACED_BY_VERSION} ]]; then + elog "${PN} is being uninstalled, removing symlinks" + eselect wine unset --all || die + else + einfo "${PN} is being updated/reinstalled, not modifying symlinks" + fi +} |