summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNP-Hardass <NP-Hardass@gentoo.org>2017-04-10 12:48:11 -0400
committerNP-Hardass <NP-Hardass@gentoo.org>2017-04-10 13:21:48 -0400
commita40a3dace2c9d0ae3716ccb9c8452613a3ee0758 (patch)
tree9d5ee982492beec38266b38987d8aeb14cc9c85e /app-eselect/eselect-wine
parentprofiles: package.use.force: force patchsets on appropriate wine pkg (diff)
downloadgentoo-a40a3dace2c9d0ae3716ccb9c8452613a3ee0758.tar.gz
gentoo-a40a3dace2c9d0ae3716ccb9c8452613a3ee0758.tar.bz2
gentoo-a40a3dace2c9d0ae3716ccb9c8452613a3ee0758.zip
app-eselect/eselect-wine: Eselect module for slotted/split wine
Imported from wine-a-holics overlay Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-eselect/eselect-wine')
-rw-r--r--app-eselect/eselect-wine/Manifest1
-rw-r--r--app-eselect/eselect-wine/eselect-wine-1.0.ebuild47
-rw-r--r--app-eselect/eselect-wine/metadata.xml8
3 files changed, 56 insertions, 0 deletions
diff --git a/app-eselect/eselect-wine/Manifest b/app-eselect/eselect-wine/Manifest
new file mode 100644
index 000000000000..7a7bb0c432ed
--- /dev/null
+++ b/app-eselect/eselect-wine/Manifest
@@ -0,0 +1 @@
+DIST wine.eselect-1.0 18653 SHA256 d8cae88a4f02c27db7e6423ceb4f2cf248af7136d32abda18349b74fa5a293b4 SHA512 cf52c8f5e72efb722f84eb5475f44ef9471122898cf6703d534c7c550d89477904f3da7aab4617be62f84c2d2c6bd8b8e711928436145f8424029f11505b3b8f WHIRLPOOL 70014c35bdf71d95f7c1ecc5d18bfc7a405d869bdb29cf4869f80c17a1e435085242b9ad66867e577279074284918c07778c07087d9561c470f70b12188d2372
diff --git a/app-eselect/eselect-wine/eselect-wine-1.0.ebuild b/app-eselect/eselect-wine/eselect-wine-1.0.ebuild
new file mode 100644
index 000000000000..1dd42a73cde2
--- /dev/null
+++ b/app-eselect/eselect-wine/eselect-wine-1.0.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
+}
diff --git a/app-eselect/eselect-wine/metadata.xml b/app-eselect/eselect-wine/metadata.xml
new file mode 100644
index 000000000000..8c68ad9f558e
--- /dev/null
+++ b/app-eselect/eselect-wine/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>NP-Hardass@gentoo.org</email>
+ <name>NP-Hardass</name>
+ </maintainer>
+</pkgmetadata>