Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142548 - Opera version bump 9.01
Summary: Opera version bump 9.01
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jeroen Roovers (RETIRED)
URL: http://www.opera.com/download/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 08:31 UTC by Marko Steinberger
Modified: 2006-08-08 17:26 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
opera-9.00-9.01.ebuild.patch (opera-9.0-9.01.ebuild.patch,796 bytes, patch)
2006-08-03 07:26 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Steinberger 2006-08-02 08:31:07 UTC
Minor version bump.
Comment 1 ollonois 2006-08-02 08:35:33 UTC
(In reply to comment #0)
> Minor version bump.
> 

Is ist possible to make a USE-flag for the opera-9.01-20060728.6-shared-qt.i386-en.tar.bz2 version. Cause this does not net libstdc++v3 to be installed
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-02 08:36:09 UTC
http://allen.brooker.gb.net/misc/kitten-0day.jpg
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-02 08:37:39 UTC
(In reply to comment #1)
> Is ist possible to make a USE-flag for the
> opera-9.01-20060728.6-shared-qt.i386-en.tar.bz2 version. Cause this does not
> net libstdc++v3 to be installed

Remove qt-static from your use? 

Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2006-08-02 08:59:29 UTC
OPERAVER="9.01-20060728"
OPERAFTPDIR="901/final/${OPERALNG}"
OPERASUFF="400"

are the new entries for the variables.  Install patch works without change...have fun bumping.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2006-08-03 07:26:09 UTC
Created attachment 93341 [details, diff]
opera-9.00-9.01.ebuild.patch
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2006-08-03 07:35:15 UTC
(In reply to comment #5)
> Created an attachment (id=93341) [edit]
> opera-9.00-9.01.ebuild.patch

That's just for the downloads. I haven't tested the patch system yet.

Hey, while I'm at it, why don't we make contact with the Opera devs and ask them to make the installer be more sandbox-friendly? I hate all the patching I need to do every time Opera releases a new version. :)
Comment 7 Luca Gasperini 2006-08-03 09:21:24 UTC
I had problem with this patch cause I didn't know what to patch,there are a few different ebuilds that deals with language/revision/ftp in different ways (LANG=lang-rev or two separate variables),I modified it but it couldn't find install.sh.Here is something ugly that tells the world how much noob I am but it's working.
ebuild:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.00_pre2.ebuild,v 1.1 2006/05/30 11:52:07 axxo Exp $

inherit eutils gnome2

IUSE="qt-static spell gnome"
RESTRICT="nomirror"
OPERAVER="9.01-20060728"
OPERAFTPDIR="901/final/${OPERALNG}"
OPERASUFF="400"
OPERALNG="en-400"
S=${WORKDIR}/${A/.tar.bz2/}

DESCRIPTION="Opera web browser."
HOMEPAGE="http://www.opera.com"

# that's an ugly workaround for the broken src_uri syntax
OPERA_URI="ftp://ftp.opera.com/pub/opera/linux/901/final/en/"
SRC_URI="
      x86? ( qt-static? ( ${OPERA_URI}i386/static/${PN}-${OPERAVER}.1-static-qt.i386-en.tar.bz2 ) )
 	x86? ( !qt-static? ( ${OPERA_URI}i386/shared/${PN}-${OPERAVER}.5-shared-qt.i386-en.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? ( qt-static? ( app-emulation/emul-linux-x86-xlibs )
	         !qt-static? ( app-emulation/emul-linux-x86-qtlibs ) )
	!amd64? ( media-libs/libexif
	          spell? ( app-text/aspell )
	          x86? ( !qt-static? ( =x11-libs/qt-3* ) )
	          media-libs/jpeg )"

SLOT="0"
LICENSE="OPERA-9.0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"

src_unpack() {
	unpack ${A}
	echo ${S}
	cd ${S}-400
	epatch "${FILESDIR}/${P}-install.patch"
	sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
	       -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" \
	       -e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \
	       -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
	       -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
		   -e 's:read str_answer:return 0:' \
		   -e "s:/opt/kde:${D}/usr/kde:" \
		   -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \
	       install.sh || die
}

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
	    cd /var/tmp/portage/opera-9.01/work/opera-9.01-20060728.5-shared-qt.i386-en-400 
             ./install.sh --prefix="${D}"/opt/opera || die
	fi

	# java workaround
	sed -i -e 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' ${D}/opt/opera/bin/opera

	dosed /opt/opera/bin/opera
	dosed /opt/opera/share/opera/java/opera.policy

	# Install the icons
	insinto /usr/share/pixmaps
	doins images/opera.xpm
	for res in 16x16 22x22 32x32 48x48 ; do
		insinto /usr/share/icons/hicolor/${res}/apps/
		newins images/opera_${res}.png opera.png
	done

	# Install the menu entry
	insinto /usr/share/applications
	doins ${FILESDIR}/opera.desktop

	# Install a symlink /usr/bin/opera
	dodir /usr/bin
	dosym /opt/opera/bin/opera /usr/bin/opera

	# fix plugin path
	echo "Plugin Path=/opt/opera/lib/opera/plugins" >> ${D}/etc/opera6rc

	# enable spellcheck
	if use spell; then
		if use qt-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

	dodir /etc/revdep-rebuild
	echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > ${D}/etc/revdep-rebuild/90opera
}

pkg_postinst() {
	use gnome && gnome2_pkg_postinst

	einfo "For localized language files take a look at:"
	einfo "http://www.opera.com/download/languagefiles/index.dml?platform=linux"
	einfo
	einfo "To change the spellcheck language edit /opt/opera/share/opera/ini/spellcheck.ini"
	einfo "and emerge app-text/aspell-language."
}


pkg_postrm() {
	use gnome && gnome2_pkg_postrm
}
--------------------
Ok,if you want to laugh look at line 58,in any case if you are using static qt change "5-shared" in that line to "1-static"

Install-patch (/usr/local/portage/www-client/opera/files/opera-9.01-install.patch)
--- install.sh.orig	2006-07-28 08:36:30.000000000 +0200
+++ install.sh	2006-08-03 17:23:16.000000000 +0200
@@ -1793,6 +1793,10 @@
 
 xdg()
 {   # http://standards.freedesktop.org
+
+       return; # Handled by ebuild.
+
+
     UDD=''
     for BIN_DIR in `pathdirs`; do
 	test -x ${BIN_DIR}/update-desktop-database || continue

Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2006-08-03 09:29:19 UTC
(In reply to comment #6)
> That's just for the downloads. I haven't tested the patch system yet.

install.sh patch for 9.00 seems to apply perfectly when bumped to 9.01.
Comment 9 Vasilis Lourdas 2006-08-04 09:50:33 UTC
The ebuild patch works fine for me.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2006-08-08 17:26:48 UTC
Committed to the tree.