summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNP-Hardass <NP-Hardass@gentoo.org>2017-09-15 01:39:46 -0400
committerNP-Hardass <NP-Hardass@gentoo.org>2017-09-15 02:01:22 -0400
commit8ca113f247560d7799b71ff901eeca3fd7ec4464 (patch)
tree37a50ceefc334dec768547ae6a80db898da13329 /app-eselect/eselect-wine/eselect-wine-1.2.2.ebuild
parentnet-libs/liblockfile: remove hardcoded group root (diff)
downloadgentoo-8ca113f247560d7799b71ff901eeca3fd7ec4464.tar.gz
gentoo-8ca113f247560d7799b71ff901eeca3fd7ec4464.tar.bz2
gentoo-8ca113f247560d7799b71ff901eeca3fd7ec4464.zip
app-eselect/eselect-wine: Bump to 1.2.2: Fix symlink validity check
Thanks to Arfrever for pointing it out Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'app-eselect/eselect-wine/eselect-wine-1.2.2.ebuild')
-rw-r--r--app-eselect/eselect-wine/eselect-wine-1.2.2.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/app-eselect/eselect-wine/eselect-wine-1.2.2.ebuild b/app-eselect/eselect-wine/eselect-wine-1.2.2.ebuild
new file mode 100644
index 000000000000..1dd42a73cde2
--- /dev/null
+++ b/app-eselect/eselect-wine/eselect-wine-1.2.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Manage active wine version"
+HOMEPAGE="http://bitbucket.org/NP-Hardass/eselect-wine"
+SRC_URI="http://bitbucket.org/NP-Hardass/${PN}/raw/v${PV}/wine.eselect -> wine.eselect-${PV}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="app-admin/eselect
+ dev-util/desktop-file-utils
+ !!app-emulation/wine:0"
+
+S=${WORKDIR}
+
+src_install() {
+ keepdir /etc/eselect/wine
+
+ insinto /usr/share/eselect/modules
+ newins "${DISTDIR}"/wine.eselect-${PV} wine.eselect
+}
+
+pkg_postinst() {
+ # <eselect-wine-v0.3_rc7 installed symlinks with leading double-slashes.
+ # In /usr/include this breaks gcc build.
+ # http://bugs.gentoo.org/434180
+ if [[ $(readlink "${EROOT%/}"/usr/include/wine) == //* ]]; then
+ ewarn "Leading double slash in ${EPREFIX%/}/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
+}