# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-www/opera-static/opera-static-6.1.ebuild,v 1.3 2002/12/09 04:33:20 manson Exp $ DESCRIPTION="Opera web browser, statically built." HOMEPAGE="http://www.opera.com/linux/" LICENSE="OPERA" DEPEND="virtual/x11 x11-libs/lesstif" KEYWORDS="~x86 -ppc -sparc " SLOT="0" NV=6.10-20021029.1-static-qt.i386 SRC_URI="http://www.panix.com/opera/files/linux/610/final/en/i386/static/opera-${NV}.tar.bz2" S=${WORKDIR}/opera-${NV} src_unpack() { unpack ${A} cd ${S} sed -e "s:/etc:${D}/etc:g" \ -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ -e "s:read install_config:install_config=yes:" \ -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ -e "s:/usr/share/icons:${D}/usr/share/icons:g" \ -e "s:/etc/X11:${D}/etc/X11:g" \ -e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \ < install.sh >install.sh.hacked || die mv install.sh.hacked install.sh chmod +x install.sh } src_compile() { # Nothing to do. true } src_install() { dodir /etc ./install.sh --prefix="${D}"/opt/opera || die rm ${D}/opt/opera/share/doc/opera/help dosym /opt/share/doc/opera/help /opt/opera/share/opera/help dosed /opt/opera/bin/opera #install the icons insinto /usr/share/icons /etc/X11/wmconfig /etc/X11/applnk/Internet \ /usr/share/pixmaps /usr/share/gnome/pixmaps doins images/opera.xpm if [ "`use gnome`" ] then insinto /usr/share/gnome/pixmaps doins images/opera.xpm fi # Install a symlink /usr/bin/opera dodir /usr/bin dosym /opt/opera/bin/opera /usr/bin/opera }