# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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/ies4linux/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~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}/ies4linux-2.0.3-Adapt_paths.patch || die "epatch failed" } src_install() { INS_BASE_PATH="/usr/lib/${PN}" # # Main executable script # insinto $INS_BASE_PATH insopts -m0755 doins ies4linux || die "dobin failed" dosym $INS_BASE_PATH/ies4linux /usr/bin/ies4linux || die "dosym failed" # # Main libraries # insinto $INS_BASE_PATH/lib insopts -m0644 doins lib/*.sh || die "doins failed" insopts -m0755 doins lib/mkicon || die "doins failed" insopts -m0644 doins lib/ies4linux.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" } pkg_postinst() { dodoc ${S}/README || die "dodoc failed" einfo einfo "IEs 4 Linux is a script to install versions of" einfo "Microsoft Internet Explorer. You just emerged" einfo "the script, you now have to run \`ies4linux\`," einfo "to install IEs interactively." einfo einfo "Note that IEs are installed, by default, in your" einfo "home directory, and that Wine needs write" einfo "permissions to the installation directory," einfo "to be able to run them (meaning you should" einfo "probably just run \`ies4linux\` as the user" einfo "who will use the IE installations)." einfo }