# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils IUSE="static spell qt kde" S=${WORKDIR}/${A/.tar.bz2/} DESCRIPTION="Opera web browser." HOMEPAGE="http://my.opera.com/desktopteam/" # that's an ugly workaround for the broken src_uri syntax SRC_URI="http://snapshot.opera.com/unix/Weekly-236/intel-linux/opera-9.0-20060411.6-shared-qt.i386-en-236.tar.bz2" # Dependencies may be augmented later (see below). DEPEND=">=sys-apps/sed-4 amd64? ( sys-apps/setarch )" RDEPEND="|| ( ( x11-libs/libXrandr x11-libs/libXp x11-libs/libXmu x11-libs/libXi x11-libs/libXft x11-libs/libXext x11-libs/libXcursor x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) virtual/x11 ) >=media-libs/fontconfig-2.1.94-r1 amd64? ( static? ( app-emulation/emul-linux-x86-xlibs ) !static? ( app-emulation/emul-linux-x86-qtlibs ) ) !amd64? ( media-libs/libexif x11-libs/openmotif spell? ( app-text/aspell ) x86? ( !static? ( =x11-libs/qt-3* ) ) media-libs/jpeg )" SLOT="0" OPERAVER="9.0-20060411" LICENSE="OPERA-$OPERAVER" KEYWORDS="~x86 ~amd64" src_unpack() { unpack ${A} cd ${S} } src_compile() { true } src_install() { # Prepare installation directories for Opera's installer script. dodir /etc # Opera's native installer. if [ ${ARCH} = "amd64" ]; then linux32 ./install.sh --prefix="${D}"/opt/opera || die else ./install.sh --prefix="${D}"/opt/opera || die fi dosed /opt/opera/bin/opera # Install a symlink /usr/bin/opera dodir /usr/bin dosym /opt/opera/bin/opera /usr/bin/opera #if use qt || use kde; then # cd ${D}/opt/opera/bin # epatch ${FILESDIR}/opera-qt.2.patch #fi } pkg_postinst() { einfo "For localized language files take a look at:" einfo "http://opera-info.de/forum/thread.php?threadid=8254" einfo einfo "To change the spellcheck language edit /opt/opera/share/opera/ini/spellcheck.ini" einfo "and emerge app-text/aspell-language." }