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