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.62.ebuild opera-10.62_pre6438.ebuild opera-10.62_pre6437.ebuild opera-10.70_pre9034.ebuild
Date: Thu, 09 Sep 2010 15:30:42
Message-Id: 20100909153035.1C5D820051@flycatcher.gentoo.org
1 jer 10/09/09 15:30:35
2
3 Modified: ChangeLog
4 Added: opera-10.62.ebuild
5 Removed: opera-10.62_pre6438.ebuild
6 opera-10.62_pre6437.ebuild
7 opera-10.70_pre9034.ebuild
8 Log:
9 http://www.opera.com/docs/changelogs/unix/1062/
10
11 (Portage version: 2.2_rc77/cvs/Linux i686)
12
13 Revision Changes Path
14 1.543 www-client/opera/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.543&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.543&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?r1=1.542&r2=1.543
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
23 retrieving revision 1.542
24 retrieving revision 1.543
25 diff -u -r1.542 -r1.543
26 --- ChangeLog 8 Sep 2010 17:47:23 -0000 1.542
27 +++ ChangeLog 9 Sep 2010 15:30:34 -0000 1.543
28 @@ -1,6 +1,13 @@
29 # ChangeLog for www-client/opera
30 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.542 2010/09/08 17:47:23 jer Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.543 2010/09/09 15:30:34 jer Exp $
33 +
34 +*opera-10.62 (09 Sep 2010)
35 +
36 + 09 Sep 2010; Jeroen Roovers <jer@g.o> -opera-10.62_pre6437.ebuild,
37 + -opera-10.62_pre6438.ebuild, +opera-10.62.ebuild,
38 + -opera-10.70_pre9034.ebuild:
39 + http://www.opera.com/docs/changelogs/unix/1062/
40
41 *opera-10.70_pre9044 (08 Sep 2010)
42
43
44
45
46 1.1 www-client/opera/opera-10.62.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.62.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.62.ebuild?rev=1.1&content-type=text/plain
50
51 Index: opera-10.62.ebuild
52 ===================================================================
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.62.ebuild,v 1.1 2010/09/09 15:30:34 jer Exp $
56
57 EAPI="2"
58
59 inherit eutils multilib
60
61 DESCRIPTION="A standards-compliant graphical Web browser"
62 HOMEPAGE="http://www.opera.com/"
63
64 SLOT="0"
65 LICENSE="OPERA-10.53 LGPL-2 LGPL-3"
66 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
67 IUSE="elibc_FreeBSD gtk kde +gstreamer"
68
69 RESTRICT="mirror test"
70
71 O_V="${PV/_pre/-}-6438"
72 O_P="${PN}-${O_V}"
73 O_U="mirror://opera/"
74
75 SRC_URI="
76 amd64? ( ${O_U}linux/${PV/./}/${O_P}.x86_64.linux.tar.bz2 )
77 ppc? ( ${O_U}linux/${PV/./}/${O_P}.ppc.linux.tar.bz2 )
78 x86? ( ${O_U}linux/${PV/./}/${O_P}.i386.linux.tar.bz2 )
79 x86-fbsd? ( ${O_U}unix/${PV/./}/${O_P}.i386.freebsd.tar.bz2 )
80 "
81
82 OPREFIX="/usr/$(get_libdir)"
83
84 QA_DT_HASH="${OPREFIX}/${PN}/.*"
85 QA_PRESTRIPPED="${OPREFIX}/${PN}/.*"
86
87 O_LINGUAS="
88 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
89 ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk vi zh-CN zh-HK
90 zh-TW
91 "
92
93 for O_LINGUA in ${O_LINGUAS}; do
94 IUSE="${IUSE} linguas_${O_LINGUA/-/_}"
95 done
96
97 DEPEND=">=sys-apps/sed-4"
98
99 RDEPEND="
100 gtk? (
101 =x11-libs/gtk+-2*
102 dev-libs/atk
103 dev-libs/glib
104 x11-libs/cairo
105 x11-libs/pango
106 x11-libs/pixman
107 )
108 kde? (
109 kde-base/kdelibs
110 )
111 dev-libs/expat
112 media-libs/fontconfig
113 media-libs/freetype
114 gstreamer? ( media-plugins/gst-plugins-meta )
115 sys-apps/util-linux
116 sys-libs/zlib
117 virtual/opengl
118 x11-libs/libICE
119 x11-libs/libSM
120 x11-libs/libX11
121 x11-libs/libXau
122 x11-libs/libXcomposite
123 x11-libs/libXcursor
124 x11-libs/libXdamage
125 x11-libs/libXdmcp
126 x11-libs/libXext
127 x11-libs/libXfixes
128 x11-libs/libXi
129 x11-libs/libXmu
130 x11-libs/libXrandr
131 x11-libs/libXrender
132 x11-libs/libXt
133 x11-libs/libxcb
134 x11-libs/xcb-util
135 "
136
137 pkg_setup() {
138 echo -e \
139 " ${GOOD}****************************************************${NORMAL}"
140 elog "If you seek support, please file a bug report at"
141 elog "https://bugs.gentoo.org and post the output of"
142 elog " \`emerge --info =${CATEGORY}/${P}'"
143 echo -e \
144 " ${GOOD}****************************************************${NORMAL}"
145 }
146
147 src_unpack() {
148 unpack ${A}
149 if [[ ! -d ${S} ]]; then
150 cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
151 S="$(pwd)"
152 einfo "Setting WORKDIR to ${S}"
153 fi
154 }
155
156 src_prepare() {
157 # Remove "license directory" (bug #315473)
158 rm -rf share/doc/opera
159
160 # Remove package directory
161 rm -rf share/opera/package
162
163 # Leave libopera*.so only if the user chooses
164 if ! use gtk; then
165 rm lib/opera/liboperagtk.so || die "rm liboperagtk.so failed"
166 fi
167 if ! use kde; then
168 rm lib/opera/liboperakde4.so || die "rm liboperakde4.so failed"
169 fi
170
171 # Unzip the man pages before sedding
172 gunzip share/man/man1/* || die "gunzip failed"
173
174 # Replace PREFIX and SUFFIX in various files
175 sed -i \
176 -e "s:@@{PREFIX}:/usr:g" \
177 -e "s:@@{SUFFIX}::g" \
178 -e "s:@@{_SUFFIX}::g" \
179 -e "s:@@{USUFFIX}::g" \
180 share/mime/packages/opera-widget.xml \
181 share/man/man1/* \
182 share/applications/opera-browser.desktop \
183 share/applications/opera-widget-manager.desktop \
184 || die "sed failed"
185
186 # Create /usr/bin/opera wrapper
187 echo '#!/bin/bash' > opera
188 echo 'export OPERA_DIR=/usr/share/opera' >> opera
189 echo 'export OPERA_PERSONALDIR="${HOME}/.opera"' >> opera
190 echo 'exec '"${OPREFIX}"'/opera/opera "$@"' >> opera
191
192 # Fix libdir in defaults/pluginpath.ini
193 sed -i \
194 share/opera/defaults/pluginpath.ini \
195 -e "s|/usr/lib32|${OPREFIX}|g" \
196 -e '/netscape/{s|[0-1]|2|g}' \
197 || die "sed pluginpath.ini failed"
198
199 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
200 if use elibc_FreeBSD; then
201 scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \
202 while read i; do
203 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
204 then
205 export SANITY_CHECK_LIBZ_FAILED=1
206 break
207 fi
208 sed -i \
209 "$i" \
210 -e 's/libz\.so\.3/libz.so.1/g'
211 done
212 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] \
213 && die "failed to change libz.so.3 to libz.so.1"
214 fi
215 }
216
217 src_install() {
218 # Remove unwanted linguas
219 LNGDIR="share/${PN}/locale"
220 einfo "Installing these locales (linguas): ${LINGUAS}."
221 for LINGUA in ${O_LINGUAS}; do
222 if ! use linguas_${LINGUA/-/_}; then
223 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
224 rm -r "${LINGUA}"
225 fi
226 done
227
228 # We install into usr instead of opt as Opera does not support the latter
229 dodir /usr
230 mv lib/ "${D}/${OPREFIX}" || die "mv lib/ failed"
231 mv share/ "${D}/usr/" || die "mv share/ failed"
232
233 # Install startup scripts
234 dobin ${PN} ${PN}-widget-manager || die "dobin failed"
235
236 # Stop revdep-rebuild from checking opera binaries
237 dodir /etc/revdep-rebuild
238 echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera
239 }
240
241 pkg_postinst() {
242 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
243 elog "[General] tab, click on [Details...] then [Choose...] and point the"
244 elog "file chooser at /usr/share/opera/locale/, then enter the"
245 elog "directory for the language you want and [Open] the .lng file."
246
247 if use elibc_FreeBSD; then
248 elog
249 elog "To improve shared memory usage please set:"
250 elog "$ sysctl kern.ipc.shm_allow_removed=1"
251 fi
252 }