1 |
jer 09/03/13 19:46:56 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-10.00_pre4214.ebuild |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2009/03/13/opera-turbo-labs-release>. |
7 |
(Portage version: 2.2_rc25/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.329 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.329&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.329&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.328&r2=1.329 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.328 |
20 |
retrieving revision 1.329 |
21 |
diff -u -r1.328 -r1.329 |
22 |
--- ChangeLog 10 Mar 2009 17:01:55 -0000 1.328 |
23 |
+++ ChangeLog 13 Mar 2009 19:46:56 -0000 1.329 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for www-client/opera |
26 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.328 2009/03/10 17:01:55 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.329 2009/03/13 19:46:56 jer Exp $ |
29 |
+ |
30 |
+*opera-10.00_pre4214 (13 Mar 2009) |
31 |
+ |
32 |
+ 13 Mar 2009; Jeroen Roovers <jer@g.o> +opera-10.00_pre4214.ebuild: |
33 |
+ Version bump |
34 |
+ <http://my.opera.com/desktopteam/blog/2009/03/13/opera-turbo-labs-release> |
35 |
+ . |
36 |
|
37 |
10 Mar 2009; Jeroen Roovers <jer@g.o> opera-10.00_pre4205.ebuild: |
38 |
Readd ~ppc. Remove redundant media-libs/libpng dependency. |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-client/opera/opera-10.00_pre4214.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4214.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4214.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: opera-10.00_pre4214.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_pre4214.ebuild,v 1.1 2009/03/13 19:46:56 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 ~x86" |
63 |
|
64 |
RESTRICT="mirror strip test" |
65 |
|
66 |
IUSE="elibc_FreeBSD gnome ia32 qt-static qt3" |
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/10-turbo/" |
74 |
O_P="${P/_pre/-}" |
75 |
|
76 |
SRC_URI=" |
77 |
qt-static? ( |
78 |
qt3? ( |
79 |
amd64? ( |
80 |
ia32? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 ) |
81 |
!ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
82 |
) |
83 |
x86? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 ) |
84 |
) |
85 |
!qt3? ( |
86 |
amd64? ( |
87 |
ia32? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 ) |
88 |
!ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
89 |
) |
90 |
x86? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 ) |
91 |
) |
92 |
) |
93 |
!qt-static? ( |
94 |
qt3? ( |
95 |
amd64? ( |
96 |
ia32? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
97 |
!ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
98 |
) |
99 |
x86? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
100 |
) |
101 |
!qt3? ( |
102 |
amd64? ( |
103 |
ia32? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
104 |
!ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
105 |
) |
106 |
x86? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
107 |
) |
108 |
) |
109 |
" |
110 |
|
111 |
DEPEND=">=sys-apps/sed-4" |
112 |
|
113 |
RDEPEND=" |
114 |
media-libs/jpeg |
115 |
media-libs/libexif |
116 |
>=media-libs/fontconfig-2.1.94-r1 |
117 |
x11-libs/libXrandr |
118 |
x11-libs/libXp |
119 |
x11-libs/libXmu |
120 |
x11-libs/libXi |
121 |
x11-libs/libXft |
122 |
x11-libs/libXext |
123 |
x11-libs/libXcursor |
124 |
x11-libs/libX11 |
125 |
x11-libs/libSM |
126 |
x11-libs/libICE |
127 |
qt-static? ( !qt3? ( x11-libs/libXinerama media-libs/nas ) ) |
128 |
x86? ( !qt-static? ( |
129 |
qt3? ( =x11-libs/qt-3* ) |
130 |
!qt3? ( =x11-libs/qt-core-4* =x11-libs/qt-gui-4* ) |
131 |
) |
132 |
) |
133 |
amd64? ( |
134 |
ia32? ( app-emulation/emul-linux-x86-qtlibs ) |
135 |
!ia32? ( =x11-libs/qt-3* ) |
136 |
) |
137 |
" |
138 |
|
139 |
opera_cd() { |
140 |
cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" |
141 |
S="$(pwd)" |
142 |
einfo "Working in ${S}" |
143 |
} |
144 |
|
145 |
opera_linguas() { |
146 |
# Remove unwanted LINGUAS: |
147 |
local LINGUA |
148 |
local LNGDIR="${D}/opt/opera/share/opera/locale" |
149 |
einfo "Keeping these locales: ${LINGUAS}." |
150 |
for LINGUA in ${MY_LINGUAS}; do |
151 |
if ! use linguas_${LINGUA/-/_}; then |
152 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
153 |
rm -r "${LINGUA}" |
154 |
fi |
155 |
done |
156 |
} |
157 |
|
158 |
src_unpack() { |
159 |
unpack ${A} |
160 |
opera_cd |
161 |
|
162 |
epatch "${FILESDIR}/${PN}-gentoo.patch" |
163 |
epatch "${FILESDIR}/${PN}-simplify-desktop.patch" |
164 |
epatch "${FILESDIR}/${PN}-freedesktop.patch" |
165 |
|
166 |
# bug #181300: |
167 |
if use elibc_FreeBSD; then |
168 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath-fbsd.patch" |
169 |
else |
170 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" |
171 |
fi |
172 |
|
173 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
174 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
175 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
176 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
177 |
install.sh || die "sed failed" |
178 |
|
179 |
} |
180 |
|
181 |
src_compile() { |
182 |
# This workaround is sadly needed because gnome2.eclass doesn't check |
183 |
# whether a configure script or Makefile exists. |
184 |
true |
185 |
} |
186 |
|
187 |
src_install() { |
188 |
opera_cd |
189 |
# Prepare installation directories for Opera's installer script. |
190 |
dodir /etc |
191 |
|
192 |
# Opera's native installer. |
193 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
194 |
|
195 |
einfo "It is safe to ignore warnings about failed checksums" |
196 |
einfo "and about files that would be ignored ..." |
197 |
einfo "Completing the installation where install.sh abandoned us ..." |
198 |
|
199 |
# java workaround |
200 |
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 |
201 |
|
202 |
dosed /opt/opera/bin/opera |
203 |
dosed /opt/opera/share/opera/java/opera.policy |
204 |
|
205 |
# Adapt desktop file to Gnome when needed |
206 |
use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop |
207 |
|
208 |
# Install a symlink /usr/bin/opera |
209 |
dodir /usr/bin |
210 |
dosym /opt/opera/bin/opera /usr/bin/opera |
211 |
|
212 |
# fix plugin path |
213 |
echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc |
214 |
|
215 |
dodir /etc/revdep-rebuild |
216 |
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera |
217 |
|
218 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
219 |
if use elibc_FreeBSD; then |
220 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
221 |
while read i; do |
222 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
223 |
then |
224 |
export SANITY_CHECK_LIBZ_FAILED=1 |
225 |
break |
226 |
fi |
227 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
228 |
done |
229 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
230 |
fi |
231 |
|
232 |
# Add the Opera man dir to MANPATH: |
233 |
insinto /etc/env.d |
234 |
echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera |
235 |
|
236 |
[[ -z MY_LINGUAS ]] || opera_linguas |
237 |
} |
238 |
|
239 |
pkg_postinst() { |
240 |
use gnome && gnome2_pkg_postinst |
241 |
|
242 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
243 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
244 |
elog "file chooser at /opt/opera/share/opera/locale/, then enter the" |
245 |
elog "directory for the language you want and [Open] the .lng file." |
246 |
|
247 |
elog |
248 |
elog "To use the spellchecker (USE=spell) for languages other than English, do:" |
249 |
elog " emerge app-dicts/myspell-[your language]" |
250 |
elog " mkdir \${HOME}/.opera/dictionaries" |
251 |
elog " cd \${HOME}/.opera/dictionaries" |
252 |
elog " ln -s /usr/share/myspell/*.{aff,dic} ." |
253 |
elog "A future release of Opera 10 should remedy this inconvenience." |
254 |
|
255 |
if use elibc_FreeBSD; then |
256 |
elog |
257 |
elog "To improve shared memory usage please set:" |
258 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
259 |
fi |
260 |
|
261 |
elog |
262 |
elog "The current Opera builds may still have issues with plugins, notably" |
263 |
elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162" |
264 |
} |
265 |
|
266 |
pkg_postrm() { |
267 |
use gnome && gnome2_pkg_postrm |
268 |
} |