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