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