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