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.51_pre2052.ebuild
Date: Wed, 25 Jun 2008 16:07:52
Message-Id: E1KBXX8-0007Ld-FT@stork.gentoo.org
1 jer 08/06/25 16:07:46
2
3 Modified: ChangeLog
4 Added: opera-9.51_pre2052.ebuild
5 Log:
6 Version bump <http://my.opera.com/desktopteam/blog/2008/06/25/opera-9-51-rc-1>. Introduces USE=ia32 for amd64 systems (bug #227339).
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.24-gentoo-r2-JeR i686)
8
9 Revision Changes Path
10 1.251 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.251&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.251&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.250&r2=1.251
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.250
20 retrieving revision 1.251
21 diff -u -r1.250 -r1.251
22 --- ChangeLog 24 Jun 2008 00:38:48 -0000 1.250
23 +++ ChangeLog 25 Jun 2008 16:07:45 -0000 1.251
24 @@ -1,6 +1,12 @@
25 # ChangeLog for www-client/opera
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.250 2008/06/24 00:38:48 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.251 2008/06/25 16:07:45 jer Exp $
29 +
30 +*opera-9.51_pre2052 (25 Jun 2008)
31 +
32 + 25 Jun 2008; Jeroen Roovers <jer@g.o> +opera-9.51_pre2052.ebuild:
33 + Version bump <http://my.opera.com/desktopteam/blog/2008/06/25/opera-9-51-rc-1>
34 + Introduces USE=ia32 for amd64 systems (bug #227339).
35
36 24 Jun 2008; Jeroen Roovers <jer@g.o> opera-9.50-r1.ebuild:
37 Depend on app-emulation/emul-linux-x86-qtlibs for amd64 when USE=ia32 (bug
38
39
40
41 1.1 www-client/opera/opera-9.51_pre2052.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.51_pre2052.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.51_pre2052.ebuild?rev=1.1&content-type=text/plain
45
46 Index: opera-9.51_pre2052.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.51_pre2052.ebuild,v 1.1 2008/06/25 16:07:46 jer Exp $
51
52 GCONF_DEBUG="no"
53
54 inherit eutils gnome2
55
56 DESCRIPTION="A standards-compliant graphical Web browser"
57 HOMEPAGE="http://www.opera.com/"
58
59 SLOT="0"
60 LICENSE="OPERA-9.0"
61 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
62
63 RESTRICT="mirror strip test"
64
65 IUSE="elibc_FreeBSD gnome qt-static qt3-static spell"
66 MY_LINGUAS="be bg cs da de el en en-GB es-ES es-LA fi fr fr-CA fy hi
67 hr hu it ja ka ko lt mk nb nl nn pl pt pt-BR ru sv tr zh-CN zh-TW"
68
69 for MY_LINGUA in ${MY_LINGUAS}; do
70 IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
71 done
72
73 O_VER="opera-9.51"
74 O_SUFF="2052"
75 O_URI="http://snapshot.opera.com/unix/snapshot-${O_SUFF}/"
76
77 # +qt-static +qt3-static = static-qt3
78 # +qt-static -qt3-static = qt4
79 # -qt-static -qt3-static = shared-qt3
80 # -qt-static +qt3-static = static-qt3
81
82 SRC_URI="
83 amd64? ( ia32? ( ${O_URI}intel-linux/${O_VER}-${O_SUFF}.gcc4-static-qt3.i386.tar.bz2 )
84 !ia32? ( ${O_URI}x86_64-linux/${O_VER}-${O_SUFF}.gcc4-shared-qt3.x86_64.tar.bz2 )
85 )
86 ppc? ( ${O_URI}ppc-linux/${O_VER}-${O_SUFF}.gcc4-shared-qt3.ppc.tar.bz2 )
87 x86-fbsd? ( ${O_URI}intel-freebsd/${O_VER}-${O_SUFF}.freebsd5-shared-qt3.i386.tar.bz2 )
88 qt-static? (
89 qt3-static? (
90 x86? ( ${O_URI}intel-linux/${O_VER}-${O_SUFF}.gcc4-static-qt3.i386.tar.bz2 )
91 )
92 !qt3-static? (
93 x86? ( ${O_URI}intel-linux/${O_VER}-${O_SUFF}.gcc4-qt4.i386.tar.bz2 )
94 )
95 )
96 !qt-static? (
97 qt3-static? (
98 x86? ( ${O_URI}intel-linux/${O_VER}-${O_SUFF}.gcc4-static-qt3.i386.tar.bz2 )
99 )
100 !qt3-static? (
101 x86? ( ${O_URI}intel-linux/${O_VER}-${O_SUFF}.gcc4-shared-qt3.i386.tar.bz2 )
102 )
103 )
104 "
105
106 DEPEND=">=sys-apps/sed-4"
107
108 RDEPEND="media-libs/libexif
109 media-libs/jpeg
110 >=media-libs/fontconfig-2.1.94-r1
111 x11-libs/libXrandr
112 x11-libs/libXp
113 x11-libs/libXmu
114 x11-libs/libXi
115 x11-libs/libXft
116 x11-libs/libXext
117 x11-libs/libXcursor
118 x11-libs/libX11
119 x11-libs/libSM
120 x11-libs/libICE
121 !qt-static? ( =x11-libs/qt-3* )
122 !qt3-static? ( =x11-libs/qt-3* )
123 spell? ( app-text/aspell )
124 amd64? ( ia32? ( app-emulation/emul-linux-x86-qtlibs )
125 !ia32? ( =x11-libs/qt-3* )
126 )
127 ppc? ( =x11-libs/qt-3* )
128 x86-fbsd? ( =x11-libs/qt-3* =virtual/libstdc++-3* )"
129
130 # +qt-static +qt3-static = static-qt3
131 # +qt-static -qt3-static = qt4
132 # -qt-static -qt3-static = shared-qt3
133 # -qt-static +qt3-static = static-qt3
134
135 pkg_setup() {
136 if use amd64; then
137 if use ia32; then
138 S="${WORKDIR}/${O_VER}-${O_SUFF}.gcc4-static-qt3.i386"
139 else
140 S="${WORKDIR}/${O_VER}-${O_SUFF}.gcc4-shared-qt3.x86_64"
141 fi
142 fi
143 use ppc && S="${WORKDIR}/${O_VER}-${O_SUFF}.gcc4-shared-qt3.ppc"
144 use x86-fbsd && S="${WORKDIR}/${O_VER}-${O_SUFF}-freebsd5-shared-qt3.i386"
145 if use x86; then
146 if use qt-static; then
147 if use qt3-static; then
148 S="${WORKDIR}/${O_VER}-${O_SUFF}.gcc4-static-qt3.i386"
149 else
150 S="${WORKDIR}/${O_VER}-${O_SUFF}.gcc4-qt4.i386"
151 fi
152 else
153 if use qt3-static; then
154 S="${WORKDIR}/${O_VER}-${O_SUFF}.gcc4-static-qt3.i386"
155 else
156 S="${WORKDIR}/${O_VER}-${O_SUFF}.gcc4-shared-qt3.i386"
157 fi
158 fi
159 fi
160 }
161
162 src_unpack() {
163 unpack ${A}
164 cd "${S}"
165
166 epatch "${FILESDIR}/${PN}-9.00-install.patch"
167
168 # bug #181300:
169 use elibc_FreeBSD || epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch"
170 use elibc_FreeBSD && epatch "${FILESDIR}/${PN}-9.50-pluginpath-fbsd.patch"
171
172 cp install.sh{,.orig}
173
174 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
175 -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \
176 -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \
177 -e "s:/usr/share/icons:${D}/usr/share/icons:g" \
178 -e "s:/etc/X11:${D}/etc/X11:g" \
179 -e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \
180 -e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \
181 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
182 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
183 -e 's:read str_answer:return 0:' \
184 -e "s:/opt/kde:${D}/usr/kde:" \
185 -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \
186 install.sh || die "sed failed"
187
188 }
189
190 src_compile() {
191 # This workaround is sadly needed because gnome2.eclass doesn't check
192 # whether a configure script or Makefile exists.
193 true
194 }
195
196 src_install() {
197 # Prepare installation directories for Opera's installer script.
198 dodir /etc
199
200 # Opera's native installer.
201 ./install.sh --prefix="${D}"/opt/opera || die "install.sh failed"
202
203 einfo "It is safe to ignore warnings about failed checksums"
204 einfo "and about files that would be ignored ..."
205 einfo "Completing the installation where install.sh abandoned us ..."
206
207 # java workaround
208 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
209
210 dosed /opt/opera/bin/opera
211 dosed /opt/opera/share/opera/java/opera.policy
212
213 # Install the icons
214 insinto /usr/share/pixmaps
215 doins usr/share/pixmaps/opera.xpm
216
217 local res
218 for res in 16x16 22x22 32x32 48x48 ; do
219 insinto /usr/share/icons/hicolor/${res}/apps
220 doins usr/share/icons/hicolor/${res}/apps/opera.png
221 done
222
223 # Install the menu entry
224 make_desktop_entry opera Opera /usr/share/pixmaps/opera.xpm 'Network;WebBrowser;Email;FileTransfer;IRCClient'
225
226 # Install a symlink /usr/bin/opera
227 dodir /usr/bin
228 dosym /opt/opera/bin/opera /usr/bin/opera
229
230 # fix plugin path
231 echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc
232
233 # enable spellcheck
234 if use spell; then
235 if use qt-static; then
236 DIR=${P}.1
237 else
238 use sparc && DIR=${P}.2 || DIR=${P}.5
239 fi
240 echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini
241 fi
242
243 dodir /etc/revdep-rebuild
244 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera
245
246 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
247 if use elibc_FreeBSD; then
248 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \
249 while read i; do
250 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
251 then
252 export SANITY_CHECK_LIBZ_FAILED=1
253 break
254 fi
255 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
256 done
257 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
258 fi
259
260 # Add the Opera man dir to MANPATH:
261 insinto /etc/env.d
262 echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera
263
264 # Remove unwanted LINGUAS:
265 local LINGUA
266 local LNGDIR="${D}/opt/opera/share/opera/locale"
267 einfo "Keeping these locales: ${LINGUAS}."
268 for LINGUA in ${MY_LINGUAS}; do
269 if ! use linguas_${LINGUA/-/_}; then
270 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
271 rm -r "${LINGUA}"
272 fi
273 done
274 }
275
276 pkg_postinst() {
277 use gnome && gnome2_pkg_postinst
278
279 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
280 elog "[General] tab, click on [Details...] then [Choose...] and point the"
281 elog "file chooser at /opt/opera/share/opera/locale/, then enter the"
282 elog "directory for the language you want and [Open] the .lng file."
283 elog
284 elog "To use the spellchecker (USE=spell) for non-English simply do"
285 elog "$ emerge app-dicts/aspell-[your language]."
286
287 if use elibc_FreeBSD; then
288 elog
289 elog "To improve shared memory usage please set:"
290 elog "$ sysctl kern.ipc.shm_allow_removed=1"
291 fi
292
293 elog "The Opera betas may still have issues with plugins, notably"
294 elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162"
295 }
296
297 pkg_postrm() {
298 use gnome && gnome2_pkg_postrm
299 }
300
301
302
303 --
304 gentoo-commits@l.g.o mailing list