diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-11-23 12:10:46 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-11-23 15:38:21 -0500 |
commit | 92a0b3f13f11b517cdbc6c689a8c5c29cab79cb8 (patch) | |
tree | 996088e77b0e950cf7bcd144abf1fea0ea786306 /app-emulation/wine-staging/wine-staging-9999.ebuild | |
parent | app-emulation/wine-vanilla: migrate ~arch to eselect-wine-2 (diff) | |
download | gentoo-92a0b3f13f11b517cdbc6c689a8c5c29cab79cb8.tar.gz gentoo-92a0b3f13f11b517cdbc6c689a8c5c29cab79cb8.tar.bz2 gentoo-92a0b3f13f11b517cdbc6c689a8c5c29cab79cb8.zip |
app-emulation/wine-staging: migrate to eselect-wine-2
While >=eselect-wine-2 does not need ebuild modifications to
work thanks to compat code, downgrading it does not work nicely
given Wine slots won't be "registered" anymore (requires doing
it manually, or re-emerging wine). So cleanup now and force
IDEPEND on newer to help prevent mishaps.
The replace check, nonfatal, registering, etc... is no longer
necessary. prerm -> postrm is intended, prerm still works but
relies on hacks to do so and should be avoided.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'app-emulation/wine-staging/wine-staging-9999.ebuild')
-rw-r--r-- | app-emulation/wine-staging/wine-staging-9999.ebuild | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/app-emulation/wine-staging/wine-staging-9999.ebuild b/app-emulation/wine-staging/wine-staging-9999.ebuild index 365abdfc568e..203711cfc786 100644 --- a/app-emulation/wine-staging/wine-staging-9999.ebuild +++ b/app-emulation/wine-staging/wine-staging-9999.ebuild @@ -119,7 +119,7 @@ BDEPEND=" >=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}] ) ) nls? ( sys-devel/gettext )" -IDEPEND="app-eselect/eselect-wine" +IDEPEND=">=app-eselect/eselect-wine-2" QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext @@ -338,21 +338,10 @@ src_install() { dodoc ANNOUNCE AUTHORS README* documentation/README* } -wine-eselect() { - ebegin "${1^}ing ${P} using eselect-wine" - eselect wine ${1} ${P} && - eselect wine ${1} --${PN#wine-} ${P} && - eselect wine update --if-unset && - eselect wine update --${PN#wine-} --if-unset - eend ${?} || die -n "eselect failed, may need to manually handle ${P}" -} - pkg_postinst() { - wine-eselect register + eselect wine update --if-unset || die } -pkg_prerm() { - if [[ ${REPLACED_BY_VERSION%-r*} != ${PV} ]]; then #881035 - nonfatal wine-eselect deregister - fi +pkg_postrm() { + eselect wine update --if-unset || die } |