1 |
jer 07/11/03 17:10:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-9.50_beta2.ebuild |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2007/11/02/beta-plus-plus>. |
7 |
(Portage version: 2.1.3.16) |
8 |
|
9 |
Revision Changes Path |
10 |
1.168 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.168&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.168&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.167&r2=1.168 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.167 |
20 |
retrieving revision 1.168 |
21 |
diff -u -r1.167 -r1.168 |
22 |
--- ChangeLog 30 Oct 2007 03:12:23 -0000 1.167 |
23 |
+++ ChangeLog 3 Nov 2007 17:09:59 -0000 1.168 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for www-client/opera |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.167 2007/10/30 03:12:23 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.168 2007/11/03 17:09:59 jer Exp $ |
29 |
+ |
30 |
+*opera-9.50_beta2 (03 Nov 2007) |
31 |
+ |
32 |
+ 03 Nov 2007; Jeroen Roovers <jer@g.o> +opera-9.50_beta2.ebuild: |
33 |
+ Version bump <http://my.opera.com/desktopteam/blog/2007/11/02/beta-plus-plus>. |
34 |
|
35 |
30 Oct 2007; Jeroen Roovers <jer@g.o> opera-9.50_beta1.ebuild: |
36 |
Fix spelling error critical for ppc users (thanks to mr_bones). |
37 |
|
38 |
|
39 |
|
40 |
1.1 www-client/opera/opera-9.50_beta2.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_beta2.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_beta2.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: opera-9.50_beta2.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 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.50_beta2.ebuild,v 1.1 2007/11/03 17:09:59 jer Exp $ |
50 |
|
51 |
GCONF_DEBUG="no" |
52 |
|
53 |
inherit eutils gnome2 |
54 |
|
55 |
DESCRIPTION="Opera web browser" |
56 |
HOMEPAGE="http://www.opera.com/" |
57 |
|
58 |
SLOT="0" |
59 |
LICENSE="OPERA-9.0" |
60 |
KEYWORDS="~ppc ~x86 ~x86-fbsd" |
61 |
|
62 |
IUSE="qt-static spell gnome" |
63 |
RESTRICT="strip mirror" |
64 |
|
65 |
O_LNG="" |
66 |
O_SUFF="1652" |
67 |
O_VER="9.50-20071102" |
68 |
|
69 |
O_URI="http://snapshot.opera.com/unix/snapshot-${O_SUFF}/" |
70 |
SRC_URI=" |
71 |
ppc? ( ${O_URI}ppc-linux/${PN}-${O_VER}.6-shared-qt.ppc${O_LNG}-${O_SUFF}.tar.bz2 ) |
72 |
x86? ( |
73 |
qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.10-static-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) |
74 |
!qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.6-shared-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) ) |
75 |
x86-fbsd? ( |
76 |
qt-static? ( ${O_URI}intel-freebsd/${PN}-${O_VER}.1-static-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) |
77 |
!qt-static? ( ${O_URI}intel-freebsd/${PN}-${O_VER}.7-shared-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) ) |
78 |
" |
79 |
|
80 |
DEPEND=">=sys-apps/sed-4" |
81 |
|
82 |
RDEPEND=">=media-libs/fontconfig-2.1.94-r1 |
83 |
media-libs/jpeg |
84 |
media-libs/libexif |
85 |
x11-libs/libXrandr |
86 |
x11-libs/libXp |
87 |
x11-libs/libXmu |
88 |
x11-libs/libXi |
89 |
x11-libs/libXft |
90 |
x11-libs/libXext |
91 |
x11-libs/libXcursor |
92 |
x11-libs/libX11 |
93 |
x11-libs/libSM |
94 |
x11-libs/libICE |
95 |
!qt-static? ( =x11-libs/qt-3* ) |
96 |
spell? ( app-text/aspell )" |
97 |
|
98 |
S=${WORKDIR}/${A/.tar.bz2/} |
99 |
|
100 |
src_unpack() { |
101 |
unpack ${A} |
102 |
cd "${S}" |
103 |
|
104 |
epatch "${FILESDIR}/${PN}-9.00-install.patch" |
105 |
epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" |
106 |
|
107 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
108 |
-e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ |
109 |
-e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ |
110 |
-e "s:/usr/share/icons:${D}/usr/share/icons:g" \ |
111 |
-e "s:/etc/X11:${D}/etc/X11:g" \ |
112 |
-e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \ |
113 |
-e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \ |
114 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
115 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
116 |
-e 's:read str_answer:return 0:' \ |
117 |
-e "s:/opt/kde:${D}/usr/kde:" \ |
118 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
119 |
install.sh || die "sed failed" |
120 |
} |
121 |
|
122 |
src_compile() { |
123 |
# This workaround is sadly needed because gnome2.eclass doesn't check |
124 |
# whether a configure script or Makefile exists. |
125 |
true |
126 |
} |
127 |
|
128 |
src_install() { |
129 |
local res |
130 |
# Prepare installation directories for Opera's installer script. |
131 |
dodir /etc |
132 |
|
133 |
# Opera's native installer. |
134 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
135 |
|
136 |
einfo "It is safe to ignore warnings about failed checksums" |
137 |
einfo "and about files that would be ignored ..." |
138 |
einfo "Completing the installation where install.sh abandoned us ..." |
139 |
|
140 |
# java workaround |
141 |
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 |
142 |
|
143 |
dosed /opt/opera/bin/opera |
144 |
dosed /opt/opera/share/opera/java/opera.policy |
145 |
|
146 |
# Install the icons |
147 |
insinto /usr/share/pixmaps |
148 |
doins usr/share/pixmaps/opera.xpm |
149 |
for res in 16x16 22x22 32x32 48x48 ; do |
150 |
insinto /usr/share/icons/hicolor/${res}/apps |
151 |
doins usr/share/icons/hicolor/${res}/apps/opera.png |
152 |
done |
153 |
|
154 |
# Install the menu entry |
155 |
insinto /usr/share/applications |
156 |
doins "${FILESDIR}"/opera.desktop |
157 |
|
158 |
# Install a symlink /usr/bin/opera |
159 |
dodir /usr/bin |
160 |
dosym /opt/opera/bin/opera /usr/bin/opera |
161 |
|
162 |
# fix plugin path |
163 |
echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc |
164 |
|
165 |
# enable spellcheck |
166 |
if use spell; then |
167 |
if use qt-static; then |
168 |
DIR=$O_VER.1 |
169 |
else |
170 |
use sparc && DIR=$O_VER.2 || DIR=$O_VER.5 |
171 |
fi |
172 |
echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini |
173 |
fi |
174 |
|
175 |
dodir /etc/revdep-rebuild |
176 |
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera |
177 |
|
178 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
179 |
if use x86-fbsd; then |
180 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
181 |
while read i; do |
182 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
183 |
then |
184 |
export SANITY_CHECK_LIBZ_FAILED=1 |
185 |
break |
186 |
fi |
187 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
188 |
done |
189 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
190 |
fi |
191 |
|
192 |
# symlink to libflash-player.so: |
193 |
dosym /opt/netscape/plugins/libflashplayer.so \ |
194 |
/opt/opera/lib/opera/plugins/libflashplayer.so |
195 |
|
196 |
# Add the Opera man dir to MANPATH: |
197 |
insinto /etc/env.d |
198 |
echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera |
199 |
} |
200 |
|
201 |
pkg_postinst() { |
202 |
use gnome && gnome2_pkg_postinst |
203 |
|
204 |
elog "For localized language files take a look at:" |
205 |
elog " http://www.opera.com/download/languagefiles/index.dml" |
206 |
elog |
207 |
elog "To use the spellchecker (USE=spell) for non-English simply do" |
208 |
elog "$ emerge app-dicts/aspell-[your language]." |
209 |
|
210 |
if use x86-fbsd; then |
211 |
elog |
212 |
elog "To improve shared memory usage please set:" |
213 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
214 |
fi |
215 |
} |
216 |
|
217 |
pkg_postrm() { |
218 |
use gnome && gnome2_pkg_postrm |
219 |
} |
220 |
|
221 |
|
222 |
|
223 |
-- |
224 |
gentoo-commits@g.o mailing list |