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