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