blob: b48d9a6f73474b276298eeef3169eeaaaae36c0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
DESCRIPTION="Manage active wine version"
HOMEPAGE="http://bitbucket.org/eroen/eselect-wine"
SRC_URI="http://bitbucket.org/eroen/${PN}/raw/v${PV}/wine.eselect -> wine.eselect-${PV}"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64" # ~x86 ~x86-fbsd
IUSE=""
RDEPEND="app-admin/eselect
!app-emulation/wine[-multislot(-)]"
S=${WORKDIR}
src_install() {
insinto /usr/share/eselect/modules
newins "${DISTDIR}"/wine.eselect-${PV} wine.eselect
}
pkg_prerm() {
# Avoid conflicts with wine[-multislot] installed later
if [[ -z ${REPLACED_BY_VERSION} ]]; then
elog "${PN} is being uninstalled, removing symlinks"
eselect wine remove || die
else
elog "upgrade/reinstall"
fi
}
|