--- old/opera-7.50-r1.ebuild 2004-06-03 12:28:44.223825480 +0200 +++ new/opera-7.51.ebuild 2004-06-03 12:55:04.714554368 +0200 @@ -2,9 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-www/opera/opera-7.50-r1.ebuild,v 1.3 2004/05/28 21:53:45 kugelfang Exp $ -IUSE="static" +IUSE="static spell" -OPERAVER="7.50-20040511" +OPERAVER="7.51-20040602" +OPERAFTPDIR="751" S=${WORKDIR}/${A/.tar.bz2/} @@ -13,14 +14,14 @@ # that's an ugly workaround for the broken src_uri syntax SRC_URI=" - x86? ( static? ( ftp://ftp.opera.com/pub/opera/linux/750/final/en/i386/static/${PN}-${OPERAVER}.1-static-qt.i386-en.tar.bz2 ) ) - x86? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/750/final/en/i386/shared/${PN}-${OPERAVER}.5-shared-qt.i386-en.tar.bz2 ) ) - amd64? ( static? ( ftp://ftp.opera.com/pub/opera/linux/750/final/en/i386/static/${PN}-${OPERAVER}.1-static-qt.i386-en.tar.bz2 ) ) - amd64? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/750/final/en/i386/shared/${PN}-${OPERAVER}.5-shared-qt.i386-en.tar.bz2 ) ) - ppc? ( static? ( ftp://ftp.opera.com/pub/opera/linux/750/final/en/ppc/static/${PN}-${OPERAVER}.1-static-qt.ppc-en.tar.bz2 ) ) - ppc? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/750/final/en/ppc/shared/gcc-2.95/${PN}-${OPERAVER}.2-shared-qt.ppc-en.tar.bz2 ) ) - sparc? ( static? ( ftp://ftp.opera.com/pub/opera/linux/750/final/en/sparc/static/${PN}-${OPERAVER}.1-static-qt.sparc-en.tar.bz2 ) ) - sparc? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/750/final/en/sparc/shared/gcc-2.95/${PN}-${OPERAVER}.2-shared-qt.sparc-en.tar.bz2 ) )" + x86? ( static? ( ftp://ftp.opera.com/pub/opera/linux/${OPERAFTPDIR}/final/en/i386/static/${PN}-${OPERAVER}.1-static-qt.i386-en.tar.bz2 ) ) + x86? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/${OPERAFTPDIR}/final/en/i386/shared/${PN}-${OPERAVER}.5-shared-qt.i386-en.tar.bz2 ) ) + amd64? ( static? ( ftp://ftp.opera.com/pub/opera/linux/${OPERAFTPDIR}/final/en/i386/static/${PN}-${OPERAVER}.1-static-qt.i386-en.tar.bz2 ) ) + amd64? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/${OPERAFTPDIR}/final/en/i386/shared/${PN}-${OPERAVER}.5-shared-qt.i386-en.tar.bz2 ) ) + ppc? ( static? ( ftp://ftp.opera.com/pub/opera/linux/${OPERAFTPDIR}/final/en/ppc/static/${PN}-${OPERAVER}.1-static-qt.ppc-en.tar.bz2 ) ) + ppc? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/${OPERAFTPDIR}/final/en/ppc/shared/gcc-2.95/${PN}-${OPERAVER}.2-shared-qt.ppc-en.tar.bz2 ) ) + sparc? ( static? ( ftp://ftp.opera.com/pub/opera/linux/${OPERAFTPDIR}/final/en/sparc/static/${PN}-${OPERAVER}.1-static-qt.sparc-en.tar.bz2 ) ) + sparc? ( !static? ( ftp://ftp.opera.com/pub/opera/linux/${OPERAFTPDIR}/final/en/sparc/shared/gcc-2.95/${PN}-${OPERAVER}.2-shared-qt.sparc-en.tar.bz2 ) )" # Dependencies may be augmented later (see below). @@ -36,7 +37,7 @@ !static? ( amd64? ( =app-emulation/emul-linux-x86-qtlibs-1* ) !amd64? ( =x11-libs/qt-3* ) ) - app-text/aspell" + spell? ( app-text/aspell )" SLOT="0" LICENSE="OPERA" @@ -94,13 +95,14 @@ echo "Plugin Path=/opt/opera/lib/opera/plugins" >> ${D}/etc/opera6rc # enable spellcheck - if [ `use static` ]; then - DIR=$OPERAVER.1 - else - use sparc && DIR=$OPERAVER.2 || DIR=$OPERAVER.5 + if [ `use spell` ]; then + if [ `use static` ]; then + DIR=$OPERAVER.1 + else + use sparc && DIR=$OPERAVER.2 || DIR=$OPERAVER.5 + fi + echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> ${D}/opt/opera/share/opera/ini/spellcheck.ini fi - echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> ${D}/opt/opera/share/opera/ini/spellcheck.ini - } pkg_postinst() {