diff options
author | turret <turret@duck.com> | 2022-12-20 22:11:58 -0600 |
---|---|---|
committer | turret <turret@duck.com> | 2022-12-20 22:11:58 -0600 |
commit | ac090484e314a94094a2f1afdc2230abd0ed698a (patch) | |
tree | 433ed25f87408285b6c6cc7743360db1a16b459f /app-eselect | |
parent | aaf8d11692c6e431110dbeb88dba43cdcf50fb5d (diff) | |
download | portage-overlay-ac090484e314a94094a2f1afdc2230abd0ed698a.tar.gz portage-overlay-ac090484e314a94094a2f1afdc2230abd0ed698a.tar.bz2 portage-overlay-ac090484e314a94094a2f1afdc2230abd0ed698a.zip |
add old eselect wine
Diffstat (limited to 'app-eselect')
-rw-r--r-- | app-eselect/eselect-wine/Manifest | 3 | ||||
-rw-r--r-- | app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild | 49 | ||||
-rw-r--r-- | app-eselect/eselect-wine/files/eselect-wine-1.2.2-proton.patch | 8 |
3 files changed, 60 insertions, 0 deletions
diff --git a/app-eselect/eselect-wine/Manifest b/app-eselect/eselect-wine/Manifest new file mode 100644 index 0000000..b7f90c9 --- /dev/null +++ b/app-eselect/eselect-wine/Manifest @@ -0,0 +1,3 @@ +AUX eselect-wine-1.2.2-proton.patch 160 BLAKE2B 6385b15daf83e1ee1cd8fa3a16fcf075d009f260845333dc16c31022a2f2cb2c529d298ccfd2d258232800586f8855433ee40116bf1af07935c53c7ee32f6521 SHA512 be0a0b3a7da99443a7e7f2ee8f93d90001a45321aaec66ab44eac58fa226eaf9abfd7e250919a48674e3d04f5917c2461f4d94bd53de8f2dd569bb6e25aefdd5 +DIST eselect-wine-1.2.2.tar.gz 4712 BLAKE2B 6ce92654cf2a5197c18bc84f8db52a11f198f81f0a8116f1986e74a1795ad475d22ff5a7cb9e9e31ce8ca813059b33cfbc52763110238cb378b15bebeb4b4271 SHA512 39f4d91461f72aeb07292dc7479c5cb7fc080b843bac57dec85c43d8751227e6953d32d52d4a14387d398b73120a32b79370d686c823f230dfd1d8b32ac8113a +EBUILD eselect-wine-1.2.2-r1.ebuild 1282 BLAKE2B 3eeba89fe219b352d6b0ce155910aaa4aa36a831e0cb40650c8ffe5b5f26e1cacd3a9661f8c91be7c751e9e76554180eb69d0fd0a176f0a7b251998ecb2f3880 SHA512 13e7d32212515398ac9d00488a10d2b51568135dbb5bcae18c52706a373c08ce5c11196d8703d28ef94e4b74aa1a50d5d758ffb177950de29e5d4a0c59906479 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 0000000..7a4d765 --- /dev/null +++ b/app-eselect/eselect-wine/eselect-wine-1.2.2-r1.ebuild @@ -0,0 +1,49 @@ +# 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" + +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 +} diff --git a/app-eselect/eselect-wine/files/eselect-wine-1.2.2-proton.patch b/app-eselect/eselect-wine/files/eselect-wine-1.2.2-proton.patch new file mode 100644 index 0000000..7adf263 --- /dev/null +++ b/app-eselect/eselect-wine/files/eselect-wine-1.2.2-proton.patch @@ -0,0 +1,8 @@ +Temporary patch to add proton variant until a proper release +to update these. +--- a/wine.eselect ++++ b/wine.eselect +@@ -14,2 +14,3 @@ + staging ++ proton + d3d9 |