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: opera-10.20_pre4744.ebuild opera-10.50_pre6177.ebuild opera-10.10.ebuild ChangeLog
Date: Sat, 02 Jan 2010 16:55:01
Message-Id: E1NR7Fj-0002HK-1n@stork.gentoo.org
1 jer 10/01/02 16:54:59
2
3 Modified: opera-10.20_pre4744.ebuild opera-10.10.ebuild
4 ChangeLog
5 Added: opera-10.50_pre6177.ebuild
6 Log:
7 License change. Version bump <http://my.opera.com/desktopteam/blog/happy-new-year>.
8 (Portage version: 2.2_rc61/cvs/Linux i686)
9
10 Revision Changes Path
11 1.4 www-client/opera/opera-10.20_pre4744.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.20_pre4744.ebuild?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.20_pre4744.ebuild?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.20_pre4744.ebuild?r1=1.3&r2=1.4
16
17 Index: opera-10.20_pre4744.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.20_pre4744.ebuild,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- opera-10.20_pre4744.ebuild 15 Dec 2009 02:05:27 -0000 1.3
24 +++ opera-10.20_pre4744.ebuild 2 Jan 2010 16:54:58 -0000 1.4
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2009 Gentoo Foundation
27 +# Copyright 1999-2010 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.20_pre4744.ebuild,v 1.3 2009/12/15 02:05:27 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.20_pre4744.ebuild,v 1.4 2010/01/02 16:54:58 jer Exp $
31
32 EAPI="2"
33
34 @@ -12,7 +12,7 @@
35 HOMEPAGE="http://www.opera.com/"
36
37 SLOT="0"
38 -LICENSE="OPERA-10.00"
39 +LICENSE="OPERA-10.10"
40 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
41
42 RESTRICT="mirror test"
43
44
45
46 1.8 www-client/opera/opera-10.10.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.10.ebuild?rev=1.8&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.10.ebuild?rev=1.8&content-type=text/plain
50 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.10.ebuild?r1=1.7&r2=1.8
51
52 Index: opera-10.10.ebuild
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.10.ebuild,v
55 retrieving revision 1.7
56 retrieving revision 1.8
57 diff -u -r1.7 -r1.8
58 --- opera-10.10.ebuild 9 Dec 2009 14:50:35 -0000 1.7
59 +++ opera-10.10.ebuild 2 Jan 2010 16:54:58 -0000 1.8
60 @@ -1,6 +1,6 @@
61 -# Copyright 1999-2009 Gentoo Foundation
62 +# Copyright 1999-2010 Gentoo Foundation
63 # Distributed under the terms of the GNU General Public License v2
64 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.10.ebuild,v 1.7 2009/12/09 14:50:35 jer Exp $
65 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.10.ebuild,v 1.8 2010/01/02 16:54:58 jer Exp $
66
67 EAPI="2"
68
69 @@ -12,7 +12,7 @@
70 HOMEPAGE="http://www.opera.com/"
71
72 SLOT="0"
73 -LICENSE="OPERA-10.00"
74 +LICENSE="OPERA-10.10"
75 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
76
77 RESTRICT="mirror test"
78
79
80
81 1.431 www-client/opera/ChangeLog
82
83 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.431&view=markup
84 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.431&content-type=text/plain
85 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.430&r2=1.431
86
87 Index: ChangeLog
88 ===================================================================
89 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
90 retrieving revision 1.430
91 retrieving revision 1.431
92 diff -u -r1.430 -r1.431
93 --- ChangeLog 15 Dec 2009 02:05:27 -0000 1.430
94 +++ ChangeLog 2 Jan 2010 16:54:58 -0000 1.431
95 @@ -1,6 +1,13 @@
96 # ChangeLog for www-client/opera
97 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
98 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.430 2009/12/15 02:05:27 jer Exp $
99 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
100 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.431 2010/01/02 16:54:58 jer Exp $
101 +
102 +*opera-10.50_pre6177 (02 Jan 2010)
103 +
104 + 02 Jan 2010; Jeroen Roovers <jer@g.o> opera-10.10.ebuild,
105 + opera-10.20_pre4744.ebuild, +opera-10.50_pre6177.ebuild:
106 + License change. Version bump
107 + <http://my.opera.com/desktopteam/blog/happy-new-year>.
108
109 15 Dec 2009; Jeroen Roovers <jer@g.o> opera-10.20_pre4744.ebuild:
110 Do not use escape sequences in elog messages (bug #296916).
111
112
113
114 1.1 www-client/opera/opera-10.50_pre6177.ebuild
115
116 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.50_pre6177.ebuild?rev=1.1&view=markup
117 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.50_pre6177.ebuild?rev=1.1&content-type=text/plain
118
119 Index: opera-10.50_pre6177.ebuild
120 ===================================================================
121 # Copyright 1999-2010 Gentoo Foundation
122 # Distributed under the terms of the GNU General Public License v2
123 # $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.50_pre6177.ebuild,v 1.1 2010/01/02 16:54:58 jer Exp $
124
125 EAPI="2"
126
127 OPREFIX="/usr/lib"
128
129 inherit eutils
130
131 DESCRIPTION="A standards-compliant graphical Web browser"
132 HOMEPAGE="http://www.opera.com/"
133
134 SLOT="0"
135 LICENSE="OPERA-10.10 LGPL-2"
136 KEYWORDS="~amd64 ~x86 ~x86-fbsd"
137
138 RESTRICT="mirror test"
139
140 QA_DT_HASH="${OPREFIX}/${PN}/.*"
141 QA_PRESTRIPPED="${OPREFIX}/${PN}/.*"
142
143 IUSE="elibc_FreeBSD"
144
145 MY_LINGUAS="en zh-CN zh-HK zh-TW"
146
147 for MY_LINGUA in ${MY_LINGUAS}; do
148 IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
149 done
150
151 O_U="http://snapshot.opera.com/unix/labs-${PV/*_pre}/"
152 O_P="${P/_pre/-}"
153
154 SRC_URI="
155 amd64? ( ${O_U}${O_P}.linux.x86_64.tar.bz2 )
156 x86? ( ${O_U}${O_P}.linux.i386.tar.bz2 )
157 x86-fbsd? ( ${O_U}${O_P}.freebsd.i386.tar.bz2 )
158 "
159
160 DEPEND=">=sys-apps/sed-4"
161
162 RDEPEND="
163 dev-libs/atk
164 dev-libs/expat
165 dev-libs/glib
166 media-libs/fontconfig
167 media-libs/freetype
168 media-libs/gst-plugins-base
169 media-libs/glitz
170 media-libs/libpng
171 sys-apps/util-linux
172 sys-libs/zlib
173 x11-libs/cairo
174 =x11-libs/gtk+-2*
175 x11-libs/libICE
176 x11-libs/libSM
177 x11-libs/libX11
178 x11-libs/libXau
179 x11-libs/libxcb
180 x11-libs/libXcomposite
181 x11-libs/libXcursor
182 x11-libs/libXdamage
183 x11-libs/libXdmcp
184 x11-libs/libXext
185 x11-libs/libXfixes
186 x11-libs/libXi
187 x11-libs/libXmu
188 x11-libs/libXrandr
189 x11-libs/libXrender
190 x11-libs/libXt
191 x11-libs/pango
192 x11-libs/pixman
193 x11-libs/xcb-util
194 virtual/opengl
195 "
196
197 opera_linguas() {
198 # Remove unwanted LINGUAS:
199 local LINGUA
200 local LNGDIR="${D}usr/share/${PN}/locale"
201 einfo "Keeping these locales: ${LINGUAS}."
202 for LINGUA in ${MY_LINGUAS}; do
203 if ! use linguas_${LINGUA/-/_}; then
204 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
205 rm -r "${LINGUA}"
206 fi
207 done
208 }
209
210 pkg_setup() {
211 echo -e \
212 " ${GOOD}****************************************************${NORMAL}"
213 elog "If you seek support, please file a bug report at"
214 elog "https://bugs.gentoo.org and post the output of"
215 elog " \`emerge --info =${CATEGORY}/${P}'"
216 echo -e \
217 " ${GOOD}****************************************************${NORMAL}"
218 }
219
220 src_unpack() {
221 unpack ${A}
222 if [[ ! -d ${S} ]]; then
223 cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
224 S="$(pwd)"
225 einfo "Setting WORKDIR to ${S}"
226 fi
227 }
228
229 src_prepare() {
230 sed -i opera \
231 -e 's|=usr/lib/opera|=/usr/lib/opera|g' || \
232 die "sed opera script failed"
233 }
234
235 src_install() {
236 # This alpha build hardcodes /usr as prefix
237 mv -v etc/ usr/ "${D}"/ || die "mv etc/ usr/ failed"
238
239 make_desktop_entry ${PN} Opera ${PN} # TODO
240
241 # Install startup script
242 dobin ${PN}
243
244 # Stop revdep-rebuild from checking opera binaries
245 dodir /etc/revdep-rebuild
246 echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera
247
248 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
249 if use elibc_FreeBSD; then
250 scanelf -qR -N libz.so.3 -F "#N" "${D}"${OPREFIX}/${PN}/ | \
251 while read i; do
252 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
253 then
254 export SANITY_CHECK_LIBZ_FAILED=1
255 break
256 fi
257 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
258 done
259 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
260 fi
261
262 # Special for this build, otherwise opera won't find its files
263 dodir /etc/env.d
264 echo "OPERA_DIR=\"/usr/share/${PN}\"" >> "${D}"/etc/env.d/90opera
265
266 [[ -z MY_LINGUAS ]] || opera_linguas
267 }
268
269 pkg_postinst() {
270 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
271 elog "[General] tab, click on [Details...] then [Choose...] and point the"
272 elog "file chooser at ${OPREFIX}/opera/share/opera/locale/, then enter the"
273 elog "directory for the language you want and [Open] the .lng file."
274
275 if use elibc_FreeBSD; then
276 elog
277 elog "To improve shared memory usage please set:"
278 elog "$ sysctl kern.ipc.shm_allow_removed=1"
279 fi
280 }