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