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