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