# Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Karl Trygve Kalleberg # /space/gentoo/cvsroot/gentoo-x86/net-www/opera/opera-6.0.ebuild,v 1.4 2002/05/20 18:09:34 agenkin Exp DESCRIPTION="Opera web browser, version 6.02." HOMEPAGE="http://www.opera.com" NV=6.02-20020701.2-shared-qt.i386 S=${WORKDIR}/opera-${NV} SRC_URI="http://www.panix.com/opera/files/linux/602/final/en/qt_shared/opera-${NV}.tar.bz2" DEPEND="=x11-libs/qt-2* =media-libs/libpng-1.0.12* media-libs/jpeg =media-libs/lcms-1* =media-libs/libmng-1* =sys-libs/zlib-1* x11-base/xfree " src_install() { mv install.sh install.sh_orig sed -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ -e "s:/usr/share/applnk:${D}/usr/share/applnk: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" \ -e "s:/opt/gnome/share\(/gnome\)?:${D}/usr/share/gnome:g" \ install.sh_orig > install.sh chmod 755 install.sh # say NO to not install the config files directly into /etc # we do it later on manually with doins instead. echo no | ./install.sh \ --exec_prefix=${D}/usr/bin \ --wrapperdir=${D}/usr/share/opera/bin \ --docdir=${D}/usr/share/doc/${P} \ --sharedir=${D}/usr/share/opera \ --plugindir=${D}/usr/share/opera/plugins || die rm ${D}/usr/share/doc/${P}/help dosym /usr/share/opera/help /usr/share/doc/${P}/help dosed /usr/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 insinto /etc/X11/wmconfig doins images/opera.xpm insinto /etc/X11/applnk/Internet doins images/opera.xpm insinto /usr/share/pixmaps doins images/opera.xpm insinto /etc doins config/* if [ "`use gnome`" ] then insinto /usr/share/gnome/pixmaps doins images/opera.xpm fi insinto /etc/env.d doins ${FILESDIR}/10opera601 }