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