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