1 |
jer 08/10/30 17:34:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-9.62.ebuild |
5 |
Log: |
6 |
Version bump (bug #244980). |
7 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.25-gentoo-r7-JeR i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.301 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.301&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.301&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.300&r2=1.301 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.300 |
20 |
retrieving revision 1.301 |
21 |
diff -u -r1.300 -r1.301 |
22 |
--- ChangeLog 24 Oct 2008 22:58:51 -0000 1.300 |
23 |
+++ ChangeLog 30 Oct 2008 17:34:08 -0000 1.301 |
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.300 2008/10/24 22:58:51 maekke Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.301 2008/10/30 17:34:08 jer Exp $ |
29 |
+ |
30 |
+*opera-9.62 (30 Oct 2008) |
31 |
+ |
32 |
+ 30 Oct 2008; Jeroen Roovers <jer@g.o> +opera-9.62.ebuild: |
33 |
+ Version bump (bug #244980). |
34 |
|
35 |
24 Oct 2008; Markus Meier <maekke@g.o> opera-9.61.ebuild: |
36 |
x86 stable, bug #243060 |
37 |
|
38 |
|
39 |
|
40 |
1.1 www-client/opera/opera-9.62.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.62.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.62.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: opera-9.62.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.62.ebuild,v 1.1 2008/10/30 17:34:08 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 et fi fr fr-CA fy hi hr hu id |
66 |
it ja ka ko lt mk nb nl nn pl pt pt-BR ru sv ta te tr uk zh-CN zh-TW" |
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="/962/final/en/" |
74 |
O_SUFF="2466" |
75 |
|
76 |
SRC_URI=" |
77 |
x86-fbsd? ( ${O_URI}unix/freebsd/962/en/intel/shared/${P}-freebsd5-shared-qt3.i386.tar.bz2 ) |
78 |
ppc? ( ${O_URI}linux${O_FTP}ppc/shared/${P}.gcc4-shared-qt3.ppc.tar.bz2 ) |
79 |
qt-static? ( |
80 |
qt3-static? ( |
81 |
amd64? ( |
82 |
ia32? ( ${O_URI}linux${O_FTP}i386/static/${P}.gcc4-static-qt3.i386.tar.bz2 ) |
83 |
!ia32? ( ${O_URI}linux${O_FTP}x86_64/${P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
84 |
) |
85 |
x86? ( ${O_URI}linux${O_FTP}i386/static/${P}.gcc4-static-qt3.i386.tar.bz2 ) |
86 |
) |
87 |
!qt3-static? ( |
88 |
amd64? ( |
89 |
ia32? ( ${O_URI}linux${O_FTP}i386/${P}.gcc4-qt4.i386.tar.bz2 ) |
90 |
!ia32? ( ${O_URI}linux${O_FTP}x86_64/${P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
91 |
) |
92 |
x86? ( ${O_URI}linux${O_FTP}i386/${P}.gcc4-qt4.i386.tar.bz2 ) |
93 |
) |
94 |
) |
95 |
!qt-static? ( |
96 |
qt3-static? ( |
97 |
amd64? ( |
98 |
ia32? ( ${O_URI}linux${O_FTP}i386/shared/${P}.gcc4-shared-qt3.i386.tar.bz2 ) |
99 |
!ia32? ( ${O_URI}linux${O_FTP}x86_64/${P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
100 |
) |
101 |
x86? ( ${O_URI}linux${O_FTP}i386/shared/${P}.gcc4-shared-qt3.i386.tar.bz2 ) |
102 |
) |
103 |
!qt3-static? ( |
104 |
amd64? ( |
105 |
ia32? ( ${O_URI}linux${O_FTP}i386/shared/${P}.gcc4-shared-qt3.i386.tar.bz2 ) |
106 |
!ia32? ( ${O_URI}linux${O_FTP}x86_64/${P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
107 |
) |
108 |
x86? ( ${O_URI}linux${O_FTP}i386/shared/${P}.gcc4-shared-qt3.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 |
x86? ( !qt-static? ( !qt3-static? ( =x11-libs/qt-3* ) ) ) |
129 |
amd64? ( |
130 |
ia32? ( app-emulation/emul-linux-x86-qtlibs ) |
131 |
!ia32? ( =x11-libs/qt-3* ) |
132 |
) |
133 |
ppc? ( =x11-libs/qt-3* ) |
134 |
spell? ( app-text/aspell ) |
135 |
x86-fbsd? ( |
136 |
=virtual/libstdc++-3* |
137 |
!qt-static? ( !qt3-static? ( =x11-libs/qt-3* ) ) |
138 |
) |
139 |
" |
140 |
|
141 |
opera_cd() { |
142 |
cd "${WORKDIR}"/${O_P}* || die "failed to enter work directory" |
143 |
S="$(pwd)" |
144 |
einfo "Working in ${S}" |
145 |
} |
146 |
|
147 |
src_unpack() { |
148 |
unpack ${A} |
149 |
opera_cd |
150 |
|
151 |
#epatch "${FILESDIR}/${PN}-9.00-install.patch" |
152 |
epatch "${FILESDIR}/${PN}-gentoo.patch" |
153 |
epatch "${FILESDIR}/${PN}-simplify-desktop.patch" |
154 |
epatch "${FILESDIR}/${PN}-freedesktop.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 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
178 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
179 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
180 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
181 |
install.sh || die "sed failed" |
182 |
|
183 |
} |
184 |
|
185 |
src_compile() { |
186 |
# This workaround is sadly needed because gnome2.eclass doesn't check |
187 |
# whether a configure script or Makefile exists. |
188 |
true |
189 |
} |
190 |
|
191 |
src_install() { |
192 |
opera_cd |
193 |
# Prepare installation directories for Opera's installer script. |
194 |
dodir /etc |
195 |
|
196 |
# Opera's native installer. |
197 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
198 |
|
199 |
einfo "It is safe to ignore warnings about failed checksums" |
200 |
einfo "and about files that would be ignored ..." |
201 |
einfo "Completing the installation where install.sh abandoned us ..." |
202 |
|
203 |
# java workaround |
204 |
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 |
205 |
|
206 |
dosed /opt/opera/bin/opera |
207 |
dosed /opt/opera/share/opera/java/opera.policy |
208 |
|
209 |
# Install the icons |
210 |
# insinto /usr/share/pixmaps |
211 |
# doins usr/share/pixmaps/opera.xpm |
212 |
|
213 |
# local res |
214 |
# for res in 16x16 22x22 32x32 48x48 ; do |
215 |
# insinto /usr/share/icons/hicolor/${res}/apps |
216 |
# doins usr/share/icons/hicolor/${res}/apps/opera.png |
217 |
# done |
218 |
|
219 |
# Install the menu entry |
220 |
# make_desktop_entry opera Opera /usr/share/pixmaps/opera.xpm 'Network;WebBrowser;Email;FileTransfer;IRCClient' |
221 |
|
222 |
# Adapt desktop file to Gnome when needed |
223 |
use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop |
224 |
|
225 |
# Install a symlink /usr/bin/opera |
226 |
dodir /usr/bin |
227 |
dosym /opt/opera/bin/opera /usr/bin/opera |
228 |
|
229 |
# fix plugin path |
230 |
echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc |
231 |
|
232 |
# enable spellcheck |
233 |
if use spell; then |
234 |
if use qt-static; then |
235 |
DIR=${P}.1 |
236 |
else |
237 |
use sparc && DIR=${P}.2 || DIR=${P}.5 |
238 |
fi |
239 |
echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini |
240 |
fi |
241 |
|
242 |
dodir /etc/revdep-rebuild |
243 |
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera |
244 |
|
245 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
246 |
if use elibc_FreeBSD; then |
247 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
248 |
while read i; do |
249 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
250 |
then |
251 |
export SANITY_CHECK_LIBZ_FAILED=1 |
252 |
break |
253 |
fi |
254 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
255 |
done |
256 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
257 |
fi |
258 |
|
259 |
# Add the Opera man dir to MANPATH: |
260 |
insinto /etc/env.d |
261 |
echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera |
262 |
|
263 |
# Remove unwanted LINGUAS: |
264 |
local LINGUA |
265 |
local LNGDIR="${D}/opt/opera/share/opera/locale" |
266 |
einfo "Keeping these locales: ${LINGUAS}." |
267 |
for LINGUA in ${MY_LINGUAS}; do |
268 |
if ! use linguas_${LINGUA/-/_}; then |
269 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
270 |
rm -r "${LINGUA}" |
271 |
fi |
272 |
done |
273 |
} |
274 |
|
275 |
pkg_postinst() { |
276 |
use gnome && gnome2_pkg_postinst |
277 |
|
278 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
279 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
280 |
elog "file chooser at /opt/opera/share/opera/locale/, then enter the" |
281 |
elog "directory for the language you want and [Open] the .lng file." |
282 |
elog |
283 |
elog "To use the spellchecker (USE=spell) for non-English simply do" |
284 |
elog "$ emerge app-dicts/aspell-[your language]." |
285 |
|
286 |
if use elibc_FreeBSD; then |
287 |
elog |
288 |
elog "To improve shared memory usage please set:" |
289 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
290 |
fi |
291 |
|
292 |
elog "The current Opera builds may still have issues with plugins, notably" |
293 |
elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162" |
294 |
} |
295 |
|
296 |
pkg_postrm() { |
297 |
use gnome && gnome2_pkg_postrm |
298 |
} |