blob: e8ea343412b9c18a8b146071fc5defcbd20314db (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ies4linux/ies4linux-2.0.5.ebuild,v 1.4 2008/08/23 18:11:20 maekke Exp $
inherit eutils
DESCRIPTION="Script to install Microsoft Internet Explorer under Linux using Wine"
HOMEPAGE="http://www.tatanka.com.br/ies4linux/"
SRC_URI="http://www.tatanka.com.br/${PN}/downloads/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=app-arch/cabextract-1.0 \
>=app-emulation/wine-0.9.0"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A} || die "unpack failed"
cd "${S}"
# The upstream maintainer was informed of this patch,
# so it might be integrated in future versions
epatch "${FILESDIR}"/${P}-Adapt_paths.patch || die "epatch failed"
}
src_install() {
INS_BASE_PATH="/usr/lib/${PN}"
#
# Main executable script
#
insinto $INS_BASE_PATH
insopts -m0755
doins ${PN} || die "doins failed"
dosym $INS_BASE_PATH/${PN} /usr/bin/${PN} || die "dosym failed"
#
# Main libraries
#
insinto $INS_BASE_PATH/lib
insopts -m0644
doins lib/*.sh || die "doins failed"
insopts -m0644
doins lib/${PN}.svg || die "doins failed"
#
# Localization libraries
#
insinto $INS_BASE_PATH/lang
insopts -m0644
doins lang/*.sh || die "doins failed"
#
# Windows registry files
#
insinto $INS_BASE_PATH/winereg
insopts -m0644
doins winereg/*.reg || die "doins failed"
#
# Documentation
#
dodoc "${S}"/README || die "dodoc failed"
}
pkg_postinst() {
elog
elog "IEs 4 Linux is a script to install versions of"
elog "Microsoft Internet Explorer. You just emerged"
elog "the script, you now have to run \`${PN}\`,"
elog "to install IEs interactively."
elog
elog "Note that IEs are installed, by default, in your"
elog "home directory, and that Wine needs write"
elog "permissions to the installation directory,"
elog "to be able to run them (meaning you should"
elog "probably just run \`${PN}\` as the user"
elog "who will use the IE installations)."
elog
}
|