summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-08-13 11:50:37 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-08-13 11:50:37 +0100
commitd45546db1a0d33824bac293936dc8e4a01d983cd (patch)
treedb4848c7bf61e51d9edf5cdc33a63450a73b86de
parent24fccf5d18d3140d12477bfc34a2437bbac18375 (diff)
app-eselect/eselect-wine : import from portage tree
-rw-r--r--app-eselect/eselect-wine/Manifest1
-rw-r--r--app-eselect/eselect-wine/eselect-wine-1.1.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/app-eselect/eselect-wine/Manifest b/app-eselect/eselect-wine/Manifest
new file mode 100644
index 00000000..d16d3d44
--- /dev/null
+++ b/app-eselect/eselect-wine/Manifest
@@ -0,0 +1 @@
+DIST wine.eselect-1.1 18768 SHA256 e478ad4b7d51a064ab0ba5bd266d7c6a31f2bd6b24affbe67f03d76c932a628f SHA512 d7b17f826900cdc7bd55dae36e45b738862ca7d114fb8cf3cfd6bf887427ff7c462bb47475b61b704a206c92339bbbe6f9f6dcb2c20235d3148c8aae49006eda WHIRLPOOL df0463604bede4e6539b12e18ecaa9efa7a1e3638d211de416560590068b9c2e6eb97fe821335e54a0eceadbee1985712af2b864c8764fcf1ee4b37a1bcb4ae1
diff --git a/app-eselect/eselect-wine/eselect-wine-1.1.ebuild b/app-eselect/eselect-wine/eselect-wine-1.1.ebuild
new file mode 100644
index 00000000..6407ea6b
--- /dev/null
+++ b/app-eselect/eselect-wine/eselect-wine-1.1.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"
+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
+}