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