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