1 |
jer 08/08/29 15:28:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-9.60_pre2410.ebuild |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2008/08/29/opera-9-6-snapshot-bug-fixes>. |
7 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r7-JeR i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.280 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.280&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.280&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.279&r2=1.280 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.279 |
20 |
retrieving revision 1.280 |
21 |
diff -u -r1.279 -r1.280 |
22 |
--- ChangeLog 25 Aug 2008 22:55:39 -0000 1.279 |
23 |
+++ ChangeLog 29 Aug 2008 15:28:05 -0000 1.280 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for www-client/opera |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.279 2008/08/25 22:55:39 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.280 2008/08/29 15:28:05 jer Exp $ |
29 |
+ |
30 |
+*opera-9.60_pre2410 (29 Aug 2008) |
31 |
+ |
32 |
+ 29 Aug 2008; Jeroen Roovers <jer@g.o> +opera-9.60_pre2410.ebuild: |
33 |
+ Version bump |
34 |
+ <http://my.opera.com/desktopteam/blog/2008/08/29/opera-9-6-snapshot-bug-fi |
35 |
+ xes>. |
36 |
|
37 |
*opera-9.60_pre2405 (25 Aug 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 www-client/opera/opera-9.60_pre2410.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.60_pre2410.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.60_pre2410.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: opera-9.60_pre2410.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.60_pre2410.ebuild,v 1.1 2008/08/29 15:28:05 jer Exp $ |
52 |
|
53 |
GCONF_DEBUG="no" |
54 |
|
55 |
inherit eutils gnome2 |
56 |
|
57 |
DESCRIPTION="A standards-compliant graphical Web browser" |
58 |
HOMEPAGE="http://www.opera.com/" |
59 |
|
60 |
SLOT="0" |
61 |
LICENSE="OPERA-9.0" |
62 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
63 |
|
64 |
RESTRICT="mirror strip test" |
65 |
|
66 |
IUSE="elibc_FreeBSD gnome ia32 qt-static qt3-static spell" |
67 |
#MY_LINGUAS="be bg cs da de el en en-GB es-ES es-LA fi fr fr-CA fy hi |
68 |
#hr hu it ja ka ko lt mk nb nl nn pl pt pt-BR ru sv tr zh-CN zh-TW" |
69 |
|
70 |
#for MY_LINGUA in ${MY_LINGUAS}; do |
71 |
# IUSE="${IUSE} linguas_${MY_LINGUA/-/_}" |
72 |
#done |
73 |
|
74 |
O_SUFF="2410" |
75 |
O_P="${PN}-9.60-${O_SUFF}" |
76 |
O_URI="http://snapshot.opera.com/unix/snapshot-${O_SUFF}/" |
77 |
|
78 |
SRC_URI=" |
79 |
x86-fbsd? ( ${O_URI}intel-freebsd/${O_P}.freebsd6-shared-qt3.i386.tar.bz2 ) |
80 |
ppc? ( ${O_URI}ppc-linux/${O_P}.gcc4-shared-qt3.ppc.tar.bz2 ) |
81 |
qt-static? ( |
82 |
qt3-static? ( |
83 |
amd64? ( |
84 |
ia32? ( ${O_URI}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 ) |
85 |
!ia32? ( ${O_URI}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
86 |
) |
87 |
x86? ( ${O_URI}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 ) |
88 |
) |
89 |
!qt3-static? ( |
90 |
amd64? ( |
91 |
ia32? ( ${O_URI}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
92 |
!ia32? ( ${O_URI}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
93 |
) |
94 |
x86? ( ${O_URI}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
95 |
) |
96 |
) |
97 |
!qt-static? ( |
98 |
qt3-static? ( |
99 |
amd64? ( |
100 |
ia32? ( ${O_URI}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
101 |
!ia32? ( ${O_URI}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
102 |
) |
103 |
x86? ( ${O_URI}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
104 |
) |
105 |
!qt3-static? ( |
106 |
amd64? ( |
107 |
ia32? ( ${O_URI}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
108 |
!ia32? ( ${O_URI}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
109 |
) |
110 |
x86? ( ${O_URI}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
111 |
) |
112 |
) |
113 |
" |
114 |
|
115 |
DEPEND=">=sys-apps/sed-4" |
116 |
|
117 |
RDEPEND="media-libs/libexif |
118 |
media-libs/jpeg |
119 |
>=media-libs/fontconfig-2.1.94-r1 |
120 |
x11-libs/libXrandr |
121 |
x11-libs/libXp |
122 |
x11-libs/libXmu |
123 |
x11-libs/libXi |
124 |
x11-libs/libXft |
125 |
x11-libs/libXext |
126 |
x11-libs/libXcursor |
127 |
x11-libs/libX11 |
128 |
x11-libs/libSM |
129 |
x11-libs/libICE |
130 |
x86? ( !qt-static? ( !qt3-static? ( =x11-libs/qt-3* ) ) ) |
131 |
amd64? ( |
132 |
ia32? ( app-emulation/emul-linux-x86-qtlibs ) |
133 |
!ia32? ( =x11-libs/qt-3* ) |
134 |
) |
135 |
ppc? ( =x11-libs/qt-3* ) |
136 |
spell? ( app-text/aspell ) |
137 |
x86-fbsd? ( |
138 |
=virtual/libstdc++-3* |
139 |
!qt-static? ( !qt3-static? ( =x11-libs/qt-3* ) ) |
140 |
) |
141 |
" |
142 |
|
143 |
opera_cd() { |
144 |
cd "${WORKDIR}"/${O_P}* || die "failed to enter work directory" |
145 |
S="$(pwd)" |
146 |
einfo "Working in ${S}" |
147 |
} |
148 |
|
149 |
src_unpack() { |
150 |
unpack ${A} |
151 |
opera_cd |
152 |
|
153 |
epatch "${FILESDIR}/${PN}-9.00-install.patch" |
154 |
|
155 |
# bug #181300: |
156 |
if use elibc_FreeBSD; then |
157 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath-fbsd.patch" |
158 |
else |
159 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" |
160 |
fi |
161 |
|
162 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
163 |
-e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ |
164 |
-e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ |
165 |
-e "s:/usr/share/icons:${D}/usr/share/icons:g" \ |
166 |
-e "s:/etc/X11:${D}/etc/X11:g" \ |
167 |
-e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \ |
168 |
-e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \ |
169 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
170 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
171 |
-e 's:read str_answer:return 0:' \ |
172 |
-e "s:/opt/kde:${D}/usr/kde:" \ |
173 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
174 |
install.sh || die "sed failed" |
175 |
|
176 |
} |
177 |
|
178 |
src_compile() { |
179 |
# This workaround is sadly needed because gnome2.eclass doesn't check |
180 |
# whether a configure script or Makefile exists. |
181 |
true |
182 |
} |
183 |
|
184 |
src_install() { |
185 |
opera_cd |
186 |
# Prepare installation directories for Opera's installer script. |
187 |
dodir /etc |
188 |
|
189 |
# Opera's native installer. |
190 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
191 |
|
192 |
einfo "It is safe to ignore warnings about failed checksums" |
193 |
einfo "and about files that would be ignored ..." |
194 |
einfo "Completing the installation where install.sh abandoned us ..." |
195 |
|
196 |
# java workaround |
197 |
sed -i -e 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' "${D}"/opt/opera/bin/opera |
198 |
|
199 |
dosed /opt/opera/bin/opera |
200 |
dosed /opt/opera/share/opera/java/opera.policy |
201 |
|
202 |
# Install the icons |
203 |
insinto /usr/share/pixmaps |
204 |
doins usr/share/pixmaps/opera.xpm |
205 |
|
206 |
local res |
207 |
for res in 16x16 22x22 32x32 48x48 ; do |
208 |
insinto /usr/share/icons/hicolor/${res}/apps |
209 |
doins usr/share/icons/hicolor/${res}/apps/opera.png |
210 |
done |
211 |
|
212 |
# Install the menu entry |
213 |
make_desktop_entry opera Opera /usr/share/pixmaps/opera.xpm 'Network;WebBrowser;Email;FileTransfer;IRCClient' |
214 |
|
215 |
# Install a symlink /usr/bin/opera |
216 |
dodir /usr/bin |
217 |
dosym /opt/opera/bin/opera /usr/bin/opera |
218 |
|
219 |
# fix plugin path |
220 |
echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc |
221 |
|
222 |
# enable spellcheck |
223 |
if use spell; then |
224 |
if use qt-static; then |
225 |
DIR=${P}.1 |
226 |
else |
227 |
use sparc && DIR=${P}.2 || DIR=${P}.5 |
228 |
fi |
229 |
echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini |
230 |
fi |
231 |
|
232 |
dodir /etc/revdep-rebuild |
233 |
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera |
234 |
|
235 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
236 |
if use elibc_FreeBSD; then |
237 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
238 |
while read i; do |
239 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
240 |
then |
241 |
export SANITY_CHECK_LIBZ_FAILED=1 |
242 |
break |
243 |
fi |
244 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
245 |
done |
246 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
247 |
fi |
248 |
|
249 |
# Add the Opera man dir to MANPATH: |
250 |
insinto /etc/env.d |
251 |
echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera |
252 |
|
253 |
# Remove unwanted LINGUAS: |
254 |
#local LINGUA |
255 |
#local LNGDIR="${D}/opt/opera/share/opera/locale" |
256 |
#einfo "Keeping these locales: ${LINGUAS}." |
257 |
#for LINGUA in ${MY_LINGUAS}; do |
258 |
# if ! use linguas_${LINGUA/-/_}; then |
259 |
# LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
260 |
# rm -r "${LINGUA}" |
261 |
# fi |
262 |
#done |
263 |
} |
264 |
|
265 |
pkg_postinst() { |
266 |
use gnome && gnome2_pkg_postinst |
267 |
|
268 |
#elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
269 |
#elog "[General] tab, click on [Details...] then [Choose...] and point the" |
270 |
#elog "file chooser at /opt/opera/share/opera/locale/, then enter the" |
271 |
#elog "directory for the language you want and [Open] the .lng file." |
272 |
#elog |
273 |
elog "To use the spellchecker (USE=spell) for non-English simply do" |
274 |
elog "$ emerge app-dicts/aspell-[your language]." |
275 |
|
276 |
if use elibc_FreeBSD; then |
277 |
elog |
278 |
elog "To improve shared memory usage please set:" |
279 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
280 |
fi |
281 |
|
282 |
elog "The Opera betas may still have issues with plugins, notably" |
283 |
elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162" |
284 |
} |
285 |
|
286 |
pkg_postrm() { |
287 |
use gnome && gnome2_pkg_postrm |
288 |
} |