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