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