Gentoo Archives: gentoo-commits

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