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