# 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.10b1" HOMEPAGE="http://www.opera.com" NV=6.10-20021015.2 NVT=beta1 NVS=$(echo ${NV} | sed -e 's/-.*//' -e 's/\.//') S=${WORKDIR}/opera-${NV}-shared-qt.i386 SRC_URI="http://www.panix.com/opera/files/linux/${NVS}/${NVT}/en/shared/opera-${NV}-shared-qt.i386.tar.bz2" #=x11-libs/qt-3* (precompiled library included in package) DEPEND="=media-libs/libpng-1.2* media-libs/jpeg =media-libs/lcms-1* =media-libs/libmng-1* =sys-libs/zlib-1* media-libs/fontconfig media-libs/lcms x11-base/xfree" RDEPEND="${DEPEND} sys-libs/lib-compat" src_install() { mv install.sh install.sh_orig # stupid us, if we don't have a /etc directory already =) mkdir ${D}/etc 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:${D}/etc: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 echo yes | ./install.sh \ --exec_prefix=${D}/usr/lib/opera \ --wrapperdir=${D}/usr/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 # patch the startup script cp ${D}/usr/bin/opera ${WORKDIR}/ ( cat << EOF #!/bin/sh # xkr47: Add /usr/lib/opera to library path, containing old gcc-2.95.3 -compiled versions export LD_LIBRARY_PATH="/usr/lib/opera:\${LD_LIBRARY_PATH}" EOF tail -n +2 ${WORKDIR}/opera ) > ${D}/usr/bin/opera dosed /usr/bin/opera # special libs dodir /usr/lib/opera insinto /usr/lib/opera for i in libqt.so.3 ; do bzip2 -dc ${FILESDIR}/${i}.bz2 > ${D}/usr/lib/opera/${i} chown root.root ${D}/usr/lib/opera/${i} chmod 755 ${D}/usr/lib/opera/${i} done # libstdc++.so.2.8 provided by the dependency lib-compat dosym /usr/lib/libstdc++.so.2.8 /usr/lib/opera/libstdc++-libc6.2-2.so.3 #( cd ${D}/usr/lib/opera ; tar xjf ${FILESDIR}/opera-c++-libs.tar.bz2 ; chown -R root.root . ) #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 }