blob: 43a28dd09cd9250d6f2da0aeee096cd18f3c19be (
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ies4linux/ies4linux-2.5_beta6.ebuild,v 1.3 2007/08/17 21:09:11 rbu Exp $
inherit eutils versionator
MY_PV="$(replace_version_separator 2 '')"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Installer for Microsoft Internet Explorer"
HOMEPAGE="http://www.ies4linux.org/"
SRC_URI="http://www.ies4linux.org/downloads/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk kde"
DEPEND=">=app-arch/cabextract-1.0
>=app-emulation/wine-0.9.0"
RDEPEND="${DEPEND}
gtk? ( dev-python/pygtk
>=dev-lang/python-2.4 )
kde? ( || ( kde-base/kommander kde-base/kdewebdev ) )"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack "${A}"
cd "${S}"
epatch "${FILESDIR}/${P}-Installation_directory_discovery.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/files" &&
doins "lib/${PN}.svg" &&
doins "lib/messages.txt"
) || die "doins failed"
insopts -m0755
( doins "lib/"*.sh &&
doins "lib/xdg-desktop-icon" &&
doins "lib/xdg-desktop-menu"
) || 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"
# Graphical installers
insopts -m0644
insinto "${INS_BASE_PATH}/ui/kommander"
( doins "ui/kommander/"*.kmdr &&
doins "ui/kommander/"*.sh
) || die "doins failed"
insinto "${INS_BASE_PATH}/ui/pygtk"
( doins "ui/pygtk/"*.py &&
doins "ui/pygtk/"*.sh
) || die "doins failed"
# Documentation
dodoc "README" || die "dodoc failed"
}
pkg_postinst() {
elog
elog "IEs4Linux is an installer for Microsoft Internet Explorer."
elog "You just emerged the installer, you now have to run \`${PN}\`,"
elog "as a normal user, to actually install Microsoft Internet Explorer."
elog
use gtk && (
elog "To use the PyGTK installer interface, start IEs4Linux"
elog "with the \"--gui gtk\" option."
elog
)
use kde && (
elog "To use the KDE Kommander installer interface, start IEs4Linux"
elog "with the \"--gui kommander\" option."
elog
)
elog "Do note that, while IEs4Linux itself, is licensed under the GPL-2,"
elog "it is only an installer for Microsoft Internet Explorer. You must own"
elog "a Microsoft Windows license, and agree to the Internet Explorer license,"
elog "to install any version of Microsoft Internet Explorer."
elog
}
|