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