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_pre4402.ebuild
Date: Wed, 03 Jun 2009 16:35:18
Message-Id: E1MBtQq-0007y7-RV@stork.gentoo.org
1 jer 09/06/03 16:35:16
2
3 Modified: ChangeLog
4 Added: opera-10.00_pre4402.ebuild
5 Log:
6 Version bump <http://my.opera.com/desktopteam/blog/2009/06/03/welcome-to-opera-10-beta-1>.
7 (Portage version: 2.2_rc33/cvs/Linux i686)
8
9 Revision Changes Path
10 1.348 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.348&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.348&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.347&r2=1.348
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.347
20 retrieving revision 1.348
21 diff -u -r1.347 -r1.348
22 --- ChangeLog 2 Jun 2009 07:18:06 -0000 1.347
23 +++ ChangeLog 3 Jun 2009 16:35:16 -0000 1.348
24 @@ -1,6 +1,13 @@
25 # ChangeLog for www-client/opera
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.347 2009/06/02 07:18:06 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.348 2009/06/03 16:35:16 jer Exp $
29 +
30 +*opera-10.00_pre4402 (03 Jun 2009)
31 +
32 + 03 Jun 2009; Jeroen Roovers <jer@g.o> +opera-10.00_pre4402.ebuild:
33 + Version bump
34 + <http://my.opera.com/desktopteam/blog/2009/06/03/welcome-to-opera-10-beta-
35 + 1>.
36
37 02 Jun 2009; Jeroen Roovers <jer@g.o> opera-10.00_pre4394.ebuild:
38 Add libXinerama dependency for qt4 build thanks to Piotr Szymaniak (bug
39
40
41
42 1.1 www-client/opera/opera-10.00_pre4402.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4402.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4402.ebuild?rev=1.1&content-type=text/plain
46
47 Index: opera-10.00_pre4402.ebuild
48 ===================================================================
49 # Copyright 1999-2009 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_pre4402.ebuild,v 1.1 2009/06/03 16:35:16 jer Exp $
52
53 EAPI="2"
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"
69 MY_LINGUAS="en-GB"
70
71 for MY_LINGUA in ${MY_LINGUAS}; do
72 IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
73 done
74
75 O_U="mirror://opera/"
76
77 SRC_URI="
78 ppc? ( ${O_U}linux/1000b1/beta1/en/ppc/shared/opera-10.00-b1.gcc4-shared-qt3.ppc.tar.bz2 )
79 qt-static? (
80 x86-fbsd? ( ${O_U}unix/freebsd/1000b1/en/intel/static/opera-10.00-b1-freebsd5-static-qt3.i386.tar.bz2 )
81 x86? (
82 qt3? ( ${O_U}linux/1000b1/beta1/en/i386/static/opera-10.00-b1.gcc4-static-qt3.i386.tar.bz2 )
83 !qt3? ( ${O_U}linux/1000b1/beta1/en/i386/opera-10.00-b1.gcc4-bundled-qt4.i386.tar.bz2 )
84 )
85 amd64? (
86 ia32? (
87 qt3? ( ${O_U}linux/1000b1/beta1/en/i386/static/opera-10.00-b1.gcc4-static-qt3.i386.tar.bz2 )
88 !qt3? ( ${O_U}linux/1000b1/beta1/en/i386/opera-10.00-b1.gcc4-bundled-qt4.i386.tar.bz2 )
89 )
90 !ia32? ( ${O_U}linux/1000b1/beta1/en/x86_64/opera-10.00-b1.gcc4-shared-qt3.x86_64.tar.bz2 )
91 )
92 )
93 !qt-static? (
94 x86-fbsd? ( ${O_U}unix/freebsd/1000b1/en/intel/shared/opera-10.00-b1-freebsd5-shared-qt3.i386.tar.bz2 )
95 x86? (
96 qt3? ( ${O_U}linux/1000b1/beta1/en/i386/shared/opera-10.00-b1.gcc4-shared-qt3.i386.tar.bz2 )
97 !qt3? ( ${O_U}linux/1000b1/beta1/en/i386/opera-10.00-b1.gcc4-qt4.i386.tar.bz2 )
98 )
99 amd64? (
100 ia32? (
101 qt3? ( ${O_U}linux/1000b1/beta1/en/i386/shared/opera-10.00-b1.gcc4-shared-qt3.i386.tar.bz2 )
102 !qt3? ( ${O_U}linux/1000b1/beta1/en/i386/opera-10.00-b1.gcc4-qt4.i386.tar.bz2 )
103 )
104 !ia32? ( ${O_U}linux/1000b1/beta1/en/x86_64/opera-10.00-b1.gcc4-shared-qt3.x86_64.tar.bz2 )
105 )
106 )
107 "
108
109 DEPEND=">=sys-apps/sed-4"
110
111 RDEPEND="
112 media-libs/jpeg
113 media-libs/libexif
114 >=media-libs/fontconfig-2.1.94-r1
115 x11-libs/libXrandr
116 x11-libs/libXp
117 x11-libs/libXmu
118 x11-libs/libXi
119 x11-libs/libXft
120 x11-libs/libXext
121 x11-libs/libXcursor
122 x11-libs/libX11
123 x11-libs/libSM
124 x11-libs/libICE
125 x86? (
126 !qt-static? (
127 qt3? ( =x11-libs/qt-3*[-immqt] )
128 !qt3? (
129 x11-libs/qt-core
130 x11-libs/qt-gui
131 )
132 )
133 )
134 ppc? ( =x11-libs/qt-3*[-immqt] )
135 amd64? (
136 ia32? (
137 !qt-static? (
138 qt3? ( =x11-libs/qt-3*[-immqt] )
139 !qt3? (
140 x11-libs/qt-core
141 x11-libs/qt-gui
142 )
143 )
144 )
145 !ia32? ( =x11-libs/qt-3*[-immqt] )
146 )
147 x86-fbsd? ( !qt-static? ( =x11-libs/qt-3*[-immqt] ) )
148 "
149
150 opera_linguas() {
151 # Remove unwanted LINGUAS:
152 local LINGUA
153 local LNGDIR="${D}/opt/opera/share/opera/locale"
154 einfo "Keeping these locales: ${LINGUAS}."
155 for LINGUA in ${MY_LINGUAS}; do
156 if ! use linguas_${LINGUA/-/_}; then
157 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
158 rm -r "${LINGUA}"
159 fi
160 done
161 }
162
163 src_unpack() {
164 unpack ${A}
165 if [[ ! -d ${S} ]]; then
166 cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
167 S="$(pwd)"
168 einfo "Setting WORKDIR to ${S}"
169 fi
170 }
171
172 src_prepare() {
173 epatch "${FILESDIR}/${PN}-gentoo.patch"
174 epatch "${FILESDIR}/${PN}-simplify-desktop.patch"
175 epatch "${FILESDIR}/${PN}-freedesktop.patch"
176
177 # bug #181300:
178 if use elibc_FreeBSD; then
179 epatch "${FILESDIR}/${PN}-10.00-pluginpath-fbsd.patch"
180 else
181 epatch "${FILESDIR}/${PN}-10.00-pluginpath.patch"
182 fi
183
184 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
185 -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \
186 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
187 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
188 install.sh || die "sed failed"
189 }
190
191 src_configure() {
192 # This workaround is sadly needed because gnome2.eclass doesn't check
193 # whether a configure script exists.
194 true
195 }
196
197 src_compile() {
198 # This workaround is sadly needed because gnome2.eclass doesn't check
199 # whether a Makefile exists.
200 true
201 }
202
203 src_install() {
204 # Prepare installation directories for Opera's installer script.
205 dodir /etc
206
207 # Opera's native installer.
208 ./install.sh --prefix="${D}"/opt/opera || die "install.sh failed"
209
210 einfo "It is safe to ignore warnings about failed checksums"
211 einfo "and about files that would be ignored ..."
212 einfo "Completing the installation where install.sh abandoned us ..."
213
214 # java workaround
215 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
216
217 dosed /opt/opera/bin/opera
218 dosed /opt/opera/share/opera/java/opera.policy
219
220 # Adapt desktop file to Gnome when needed
221 use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop
222
223 # Install a symlink /usr/bin/opera
224 dodir /usr/bin
225 dosym /opt/opera/bin/opera /usr/bin/opera
226
227 dodir /etc/revdep-rebuild
228 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera
229
230 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
231 if use elibc_FreeBSD; then
232 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \
233 while read i; do
234 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
235 then
236 export SANITY_CHECK_LIBZ_FAILED=1
237 break
238 fi
239 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
240 done
241 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
242 fi
243
244 # Add the Opera man dir to MANPATH:
245 insinto /etc/env.d
246 echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera
247
248 [[ -z MY_LINGUAS ]] || opera_linguas
249 }
250
251 pkg_postinst() {
252 use gnome && gnome2_pkg_postinst
253
254 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
255 elog "[General] tab, click on [Details...] then [Choose...] and point the"
256 elog "file chooser at /opt/opera/share/opera/locale/, then enter the"
257 elog "directory for the language you want and [Open] the .lng file."
258
259 elog
260 elog "To use the spellchecker (USE=spell) for languages other than English, do:"
261 elog " emerge app-dicts/myspell-[your language]"
262 elog " mkdir \${HOME}/.opera/dictionaries"
263 elog " cd \${HOME}/.opera/dictionaries"
264 elog " ln -s /usr/share/myspell/*.{aff,dic} ."
265 elog "A future release of Opera 10 should remedy this inconvenience."
266
267 if use elibc_FreeBSD; then
268 elog
269 elog "To improve shared memory usage please set:"
270 elog "$ sysctl kern.ipc.shm_allow_removed=1"
271 fi
272
273 elog
274 elog "The current Opera builds may still have issues with plugins, notably"
275 elog "www-plugins/adobe-flash. See also https://bugs.gentoo.org/198162"
276 }
277
278 pkg_postrm() {
279 use gnome && gnome2_pkg_postrm
280 }