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