1 |
jer 09/01/13 16:05:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-10.00_pre4126.ebuild |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2009/01/13/new-year-snapshot>. |
7 |
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7-JeR i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.316 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.316&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.316&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.315&r2=1.316 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.315 |
20 |
retrieving revision 1.316 |
21 |
diff -u -r1.315 -r1.316 |
22 |
--- ChangeLog 30 Dec 2008 17:37:20 -0000 1.315 |
23 |
+++ ChangeLog 13 Jan 2009 16:05:52 -0000 1.316 |
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.315 2008/12/30 17:37:20 jer Exp $ |
28 |
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.316 2009/01/13 16:05:52 jer Exp $ |
30 |
+ |
31 |
+*opera-10.00_pre4126 (13 Jan 2009) |
32 |
+ |
33 |
+ 13 Jan 2009; Jeroen Roovers <jer@g.o> +opera-10.00_pre4126.ebuild: |
34 |
+ Version bump |
35 |
+ <http://my.opera.com/desktopteam/blog/2009/01/13/new-year-snapshot>. |
36 |
|
37 |
30 Dec 2008; Jeroen Roovers <jer@g.o> opera-10.00_pre4116.ebuild: |
38 |
Depend on Qt 4 instead of 3 (bug #252630). |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-client/opera/opera-10.00_pre4126.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4126.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4126.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: opera-10.00_pre4126.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 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.00_pre4126.ebuild,v 1.1 2009/01/13 16:05:52 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 spell" |
67 |
MY_LINGUAS="be bg cs da de el en en-GB es-ES es-LA et fi fr fr-CA fy hi hr hu id it ja ka ko lt mk nb nl nn pl pt pt-BR ru sv ta te tr uk zh-CN zh-TW" |
68 |
|
69 |
for MY_LINGUA in ${MY_LINGUAS}; do |
70 |
IUSE="${IUSE} linguas_${MY_LINGUA/-/_}" |
71 |
done |
72 |
|
73 |
O_U="http://snapshot.opera.com/unix/snapshot-4126/" |
74 |
O_P="${P/_pre/-}" |
75 |
|
76 |
SRC_URI=" |
77 |
x86-fbsd? ( ${O_U}intel-freebsd/${O_P}.freebsd6-shared-qt3.i386.tar.bz2 ) |
78 |
ppc? ( ${O_U}ppc-linux/${O_P}.gcc4-shared-qt3.ppc.tar.bz2 ) |
79 |
qt-static? ( |
80 |
qt3? ( |
81 |
amd64? ( |
82 |
ia32? ( ${O_U}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 ) |
83 |
!ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
84 |
) |
85 |
x86? ( ${O_U}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 ) |
86 |
) |
87 |
!qt3? ( |
88 |
amd64? ( |
89 |
ia32? ( ${O_U}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 ) |
90 |
!ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
91 |
) |
92 |
x86? ( ${O_U}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 ) |
93 |
) |
94 |
) |
95 |
!qt-static? ( |
96 |
qt3? ( |
97 |
amd64? ( |
98 |
ia32? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
99 |
!ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
100 |
) |
101 |
x86? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
102 |
) |
103 |
!qt3? ( |
104 |
amd64? ( |
105 |
ia32? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
106 |
!ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
107 |
) |
108 |
x86? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
109 |
) |
110 |
) |
111 |
" |
112 |
|
113 |
DEPEND=">=sys-apps/sed-4" |
114 |
|
115 |
RDEPEND="media-libs/libexif |
116 |
media-libs/jpeg |
117 |
>=media-libs/fontconfig-2.1.94-r1 |
118 |
x11-libs/libXrandr |
119 |
x11-libs/libXp |
120 |
x11-libs/libXmu |
121 |
x11-libs/libXi |
122 |
x11-libs/libXft |
123 |
x11-libs/libXext |
124 |
x11-libs/libXcursor |
125 |
x11-libs/libX11 |
126 |
x11-libs/libSM |
127 |
x11-libs/libICE |
128 |
qt-static? ( !qt3? ( x11-libs/libXinerama media-libs/nas ) ) |
129 |
x86? ( !qt-static? ( |
130 |
qt3? ( =x11-libs/qt-3* ) |
131 |
!qt3? ( =x11-libs/qt-core-4* =x11-libs/qt-gui-4* ) |
132 |
) |
133 |
) |
134 |
amd64? ( |
135 |
ia32? ( app-emulation/emul-linux-x86-qtlibs ) |
136 |
!ia32? ( =x11-libs/qt-3* ) |
137 |
) |
138 |
ppc? ( =x11-libs/qt-3* ) |
139 |
spell? ( app-text/aspell ) |
140 |
x86-fbsd? ( |
141 |
=virtual/libstdc++-3* |
142 |
!qt-static? ( !qt3? ( =x11-libs/qt-3* ) ) |
143 |
) |
144 |
" |
145 |
|
146 |
opera_cd() { |
147 |
cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" |
148 |
S="$(pwd)" |
149 |
einfo "Working in ${S}" |
150 |
} |
151 |
|
152 |
opera_linguas() { |
153 |
# Remove unwanted LINGUAS: |
154 |
local LINGUA |
155 |
local LNGDIR="${D}/opt/opera/share/opera/locale" |
156 |
einfo "Keeping these locales: ${LINGUAS}." |
157 |
for LINGUA in ${MY_LINGUAS}; do |
158 |
if ! use linguas_${LINGUA/-/_}; then |
159 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
160 |
rm -r "${LINGUA}" |
161 |
fi |
162 |
done |
163 |
} |
164 |
|
165 |
src_unpack() { |
166 |
unpack ${A} |
167 |
opera_cd |
168 |
|
169 |
epatch "${FILESDIR}/${PN}-gentoo.patch" |
170 |
epatch "${FILESDIR}/${PN}-simplify-desktop.patch" |
171 |
epatch "${FILESDIR}/${PN}-freedesktop.patch" |
172 |
|
173 |
# bug #181300: |
174 |
if use elibc_FreeBSD; then |
175 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath-fbsd.patch" |
176 |
else |
177 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" |
178 |
fi |
179 |
|
180 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
181 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
182 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
183 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
184 |
install.sh || die "sed failed" |
185 |
|
186 |
} |
187 |
|
188 |
src_compile() { |
189 |
# This workaround is sadly needed because gnome2.eclass doesn't check |
190 |
# whether a configure script or Makefile exists. |
191 |
true |
192 |
} |
193 |
|
194 |
src_install() { |
195 |
opera_cd |
196 |
# Prepare installation directories for Opera's installer script. |
197 |
dodir /etc |
198 |
|
199 |
# Opera's native installer. |
200 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
201 |
|
202 |
einfo "It is safe to ignore warnings about failed checksums" |
203 |
einfo "and about files that would be ignored ..." |
204 |
einfo "Completing the installation where install.sh abandoned us ..." |
205 |
|
206 |
# java workaround |
207 |
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 |
208 |
|
209 |
dosed /opt/opera/bin/opera |
210 |
dosed /opt/opera/share/opera/java/opera.policy |
211 |
|
212 |
# Adapt desktop file to Gnome when needed |
213 |
use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop |
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 |
[[ -z MY_LINGUAS ]] || opera_linguas |
254 |
} |
255 |
|
256 |
pkg_postinst() { |
257 |
use gnome && gnome2_pkg_postinst |
258 |
|
259 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
260 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
261 |
elog "file chooser at /opt/opera/share/opera/locale/, then enter the" |
262 |
elog "directory for the language you want and [Open] the .lng file." |
263 |
elog |
264 |
elog "To use the spellchecker (USE=spell) for non-English simply do" |
265 |
elog "$ emerge app-dicts/aspell-[your language]." |
266 |
|
267 |
if use elibc_FreeBSD; then |
268 |
elog |
269 |
elog "To improve shared memory usage please set:" |
270 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
271 |
fi |
272 |
|
273 |
elog "The current Opera builds may still have issues with plugins, notably" |
274 |
elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162" |
275 |
} |
276 |
|
277 |
pkg_postrm() { |
278 |
use gnome && gnome2_pkg_postrm |
279 |
} |