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