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