Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/opera: ChangeLog opera-9.50_rc1629.ebuild
Date: Sun, 14 Oct 2007 20:34:20
Message-Id: E1IhA0P-0002qe-2L@stork.gentoo.org
1 jer 07/10/14 20:24:09
2
3 Modified: ChangeLog
4 Added: opera-9.50_rc1629.ebuild
5 Log:
6 Weekly version bump <http://my.opera.com/desktopteam/blog/2007/10/12/neat-thumbnails-instant-searching-and-more>.
7 (Portage version: 2.1.3.13)
8
9 Revision Changes Path
10 1.143 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.143&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.143&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.142&r2=1.143
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.142
20 retrieving revision 1.143
21 diff -u -r1.142 -r1.143
22 --- ChangeLog 9 Oct 2007 08:15:06 -0000 1.142
23 +++ ChangeLog 14 Oct 2007 20:24:08 -0000 1.143
24 @@ -1,6 +1,13 @@
25 # ChangeLog for www-client/opera
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.142 2007/10/09 08:15:06 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.143 2007/10/14 20:24:08 jer Exp $
29 +
30 +*opera-9.50_rc1629 (14 Oct 2007)
31 +
32 + 14 Oct 2007; Jeroen Roovers <jer@g.o> +opera-9.50_rc1629.ebuild:
33 + Weekly version bump
34 + <http://my.opera.com/desktopteam/blog/2007/10/12/neat-thumbnails-instant-sea
35 + rching-and-more>.
36
37 09 Oct 2007; Jeroen Roovers <jer@g.o> opera-9.23.ebuild,
38 opera-9.50_alpha1567.ebuild, opera-9.50_alpha1581.ebuild,
39
40
41
42 1.1 www-client/opera/opera-9.50_rc1629.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_rc1629.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_rc1629.ebuild?rev=1.1&content-type=text/plain
46
47 Index: opera-9.50_rc1629.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.50_rc1629.ebuild,v 1.1 2007/10/14 20:24:08 jer Exp $
52
53 GCONF_DEBUG="no"
54
55 inherit eutils gnome2
56
57 DESCRIPTION="Opera web browser"
58 HOMEPAGE="http://www.opera.com/"
59
60 SLOT="0"
61 LICENSE="OPERA-9.0"
62 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
63
64 IUSE="qt-static spell gnome"
65 RESTRICT="strip mirror"
66
67 O_LNG=""
68 O_SUFF="1629"
69 O_VER="9.50-20071012"
70
71 O_URI="http://snapshot.opera.com/unix/snapshot-${O_SUFF}/"
72 SRC_URI="
73 amd64? ( ${O_URI}x86_64-linux/${PN}-${O_VER}.2-shared-qt.x86_64${O_LNG}-${O_SUFF}.tar.bz2 )
74 ppc? ( ${O_URI}ppc-linux/${PN}-${O_VER}.6-shared-qt.ppc${O_LNG}-${O_SUFF}.tar.bz2 )
75 x86? (
76 qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.9-static-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 )
77 !qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.6-shared-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) )
78 x86-fbsd? (
79 qt-static? ( ${O_URI}/intel-freebsd/${PN}-${O_VER}.5-static-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 )
80 !qt-static? ( ${O_URI}/intel-freebsd/${PN}-${O_VER}.4-shared-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) )"
81
82 DEPEND=">=sys-apps/sed-4"
83
84 RDEPEND=">=media-libs/fontconfig-2.1.94-r1
85 media-libs/jpeg
86 media-libs/libexif
87 x11-libs/libXrandr
88 x11-libs/libXp
89 x11-libs/libXmu
90 x11-libs/libXi
91 x11-libs/libXft
92 x11-libs/libXext
93 x11-libs/libXcursor
94 x11-libs/libX11
95 x11-libs/libSM
96 x11-libs/libICE
97 =virtual/libstdc++-3*
98 !qt-static? ( =x11-libs/qt-3* )
99 spell? ( app-text/aspell )"
100
101 S=${WORKDIR}/${A/.tar.bz2/}
102
103 src_unpack() {
104 unpack ${A}
105 cd "${S}"
106
107 epatch "${FILESDIR}/${PN}-9.00-install.patch"
108 epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch"
109
110 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
111 -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \
112 -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \
113 -e "s:/usr/share/icons:${D}/usr/share/icons:g" \
114 -e "s:/etc/X11:${D}/etc/X11:g" \
115 -e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \
116 -e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \
117 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
118 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
119 -e 's:read str_answer:return 0:' \
120 -e "s:/opt/kde:${D}/usr/kde:" \
121 -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \
122 install.sh || die "sed failed"
123 }
124
125 src_compile() {
126 # This workaround is sadly needed because gnome2.eclass doesn't check
127 # whether a configure script or Makefile exists.
128 true
129 }
130
131 src_install() {
132 local res
133 # Prepare installation directories for Opera's installer script.
134 dodir /etc
135
136 # Opera's native installer.
137 ./install.sh --prefix="${D}"/opt/opera || die "install.sh failed"
138
139 einfo "It is safe to ignore warnings about failed checksums"
140 einfo "and about files that would be ignored ..."
141 einfo "Completing the installation where install.sh abandoned us ..."
142
143 # java workaround
144 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
145
146 dosed /opt/opera/bin/opera
147 dosed /opt/opera/share/opera/java/opera.policy
148
149 # Install the icons
150 insinto /usr/share/pixmaps
151 doins usr/share/pixmaps/opera.xpm
152 for res in 16x16 22x22 32x32 48x48 ; do
153 insinto /usr/share/icons/hicolor/${res}/apps
154 doins usr/share/icons/hicolor/${res}/apps/opera.png
155 done
156
157 # Install the menu entry
158 insinto /usr/share/applications
159 doins "${FILESDIR}"/opera.desktop
160
161 # Install a symlink /usr/bin/opera
162 dodir /usr/bin
163 dosym /opt/opera/bin/opera /usr/bin/opera
164
165 # fix plugin path
166 echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc
167
168 # enable spellcheck
169 if use spell; then
170 if use qt-static; then
171 DIR=$O_VER.1
172 else
173 use sparc && DIR=$O_VER.2 || DIR=$O_VER.5
174 fi
175 echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini
176 fi
177
178 dodir /etc/revdep-rebuild
179 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera
180
181 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
182 if use x86-fbsd; then
183 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \
184 while read i; do
185 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
186 then
187 export SANITY_CHECK_LIBZ_FAILED=1
188 break
189 fi
190 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
191 done
192 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
193 fi
194
195 # symlink to libflash-player.so:
196 dosym /opt/netscape/plugins/libflashplayer.so \
197 /opt/opera/lib/opera/plugins/libflashplayer.so
198
199 # Add the Opera man dir to MANPATH:
200 insinto /etc/env.d
201 echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera
202 }
203
204 pkg_postinst() {
205 use gnome && gnome2_pkg_postinst
206
207 elog "For localized language files take a look at:"
208 elog " http://www.opera.com/download/languagefiles/index.dml"
209 elog
210 elog "To use the spellchecker (USE=spell) for non-English simply do"
211 elog "$ emerge app-dicts/aspell-[your language]."
212
213 if use x86-fbsd; then
214 elog
215 elog "To improve shared memory usage please set:"
216 elog "$ sysctl kern.ipc.shm_allow_removed=1"
217 fi
218 }
219
220 pkg_postrm() {
221 use gnome && gnome2_pkg_postrm
222 }
223
224
225
226 --
227 gentoo-commits@g.o mailing list