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-10.00_pre4116.ebuild
Date: Wed, 24 Dec 2008 16:14:58
Message-Id: E1LFWNr-0005iE-Cs@stork.gentoo.org
1 jer 08/12/24 16:14:55
2
3 Modified: ChangeLog
4 Added: opera-10.00_pre4116.ebuild
5 Log:
6 Cleaned up ebuild and version bump <http://my.opera.com/desktopteam/blog/2008/12/19/the-christmas-edition>.
7 (Portage version: 2.2_rc18/cvs/Linux 2.6.25-gentoo-r7-JeR i686)
8
9 Revision Changes Path
10 1.314 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.314&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.314&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.313&r2=1.314
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.313
20 retrieving revision 1.314
21 diff -u -r1.313 -r1.314
22 --- ChangeLog 20 Dec 2008 17:40:26 -0000 1.313
23 +++ ChangeLog 24 Dec 2008 16:14:55 -0000 1.314
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.313 2008/12/20 17:40:26 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.314 2008/12/24 16:14:55 jer Exp $
29 +
30 +*opera-10.00_pre4116 (24 Dec 2008)
31 +
32 + 24 Dec 2008; Jeroen Roovers <jer@g.o> +opera-10.00_pre4116.ebuild:
33 + Cleaned up ebuild and version bump
34 + <http://my.opera.com/desktopteam/blog/2008/12/19/the-christmas-edition>.
35
36 20 Dec 2008; Jeroen Roovers <jer@g.o> -opera-9.62.ebuild:
37 Remove old.
38
39
40
41 1.1 www-client/opera/opera-10.00_pre4116.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4116.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4116.ebuild?rev=1.1&content-type=text/plain
45
46 Index: opera-10.00_pre4116.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-10.00_pre4116.ebuild,v 1.1 2008/12/24 16:14:55 jer Exp $
51
52 GCONF_DEBUG="no"
53
54 inherit eutils gnome2
55
56 DESCRIPTION="A standards-compliant graphical 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 RESTRICT="mirror strip test"
64
65 IUSE="elibc_FreeBSD gnome ia32 qt-static qt3 spell"
66 MY_LINGUAS="be bg cs da de el en en-GB es-ES es-LA et fi fr fr-CA fy hi hr hu id it ja ka ko lt mk nb nl nn pl pt pt-BR ru sv ta te tr uk zh-CN zh-TW"
67
68 for MY_LINGUA in ${MY_LINGUAS}; do
69 IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
70 done
71
72 O_U="http://snapshot.opera.com/unix/snapshot-4116/"
73 O_P="${P/_pre/-}"
74
75 SRC_URI="
76 x86-fbsd? ( ${O_U}intel-freebsd/${O_P}.freebsd6-shared-qt3.i386.tar.bz2 )
77 ppc? ( ${O_U}ppc-linux/${O_P}.gcc4-shared-qt3.ppc.tar.bz2 )
78 qt-static? (
79 qt3? (
80 amd64? (
81 ia32? ( ${O_U}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 )
82 !ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 )
83 )
84 x86? ( ${O_U}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 )
85 )
86 !qt3? (
87 amd64? (
88 ia32? ( ${O_U}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 )
89 !ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 )
90 )
91 x86? ( ${O_U}intel-linux/${O_P}.gcc4-static-qt3.i386.tar.bz2 )
92 )
93 )
94 !qt-static? (
95 qt3? (
96 amd64? (
97 ia32? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 )
98 !ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 )
99 )
100 x86? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 )
101 )
102 !qt3? (
103 amd64? (
104 ia32? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 )
105 !ia32? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 )
106 )
107 x86? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 )
108 )
109 )
110 "
111
112 DEPEND=">=sys-apps/sed-4"
113
114 RDEPEND="media-libs/libexif
115 media-libs/jpeg
116 >=media-libs/fontconfig-2.1.94-r1
117 x11-libs/libXrandr
118 x11-libs/libXp
119 x11-libs/libXmu
120 x11-libs/libXi
121 x11-libs/libXft
122 x11-libs/libXext
123 x11-libs/libXcursor
124 x11-libs/libX11
125 x11-libs/libSM
126 x11-libs/libICE
127 qt-static? ( !qt3? ( x11-libs/libXinerama media-libs/nas ) )
128 x86? ( !qt-static? ( !qt3? ( =x11-libs/qt-3* ) ) )
129 amd64? (
130 ia32? ( app-emulation/emul-linux-x86-qtlibs )
131 !ia32? ( =x11-libs/qt-3* )
132 )
133 ppc? ( =x11-libs/qt-3* )
134 spell? ( app-text/aspell )
135 x86-fbsd? (
136 =virtual/libstdc++-3*
137 !qt-static? ( !qt3? ( =x11-libs/qt-3* ) )
138 )
139 "
140
141 opera_cd() {
142 cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
143 S="$(pwd)"
144 einfo "Working in ${S}"
145 }
146
147 opera_linguas() {
148 # Remove unwanted LINGUAS:
149 local LINGUA
150 local LNGDIR="${D}/opt/opera/share/opera/locale"
151 einfo "Keeping these locales: ${LINGUAS}."
152 for LINGUA in ${MY_LINGUAS}; do
153 if ! use linguas_${LINGUA/-/_}; then
154 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
155 rm -r "${LINGUA}"
156 fi
157 done
158 }
159
160 src_unpack() {
161 unpack ${A}
162 opera_cd
163
164 epatch "${FILESDIR}/${PN}-gentoo.patch"
165 epatch "${FILESDIR}/${PN}-simplify-desktop.patch"
166 epatch "${FILESDIR}/${PN}-freedesktop.patch"
167
168 # bug #181300:
169 if use elibc_FreeBSD; then
170 epatch "${FILESDIR}/${PN}-9.50-pluginpath-fbsd.patch"
171 else
172 epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch"
173 fi
174
175 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
176 -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \
177 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
178 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
179 install.sh || die "sed failed"
180
181 }
182
183 src_compile() {
184 # This workaround is sadly needed because gnome2.eclass doesn't check
185 # whether a configure script or Makefile exists.
186 true
187 }
188
189 src_install() {
190 opera_cd
191 # Prepare installation directories for Opera's installer script.
192 dodir /etc
193
194 # Opera's native installer.
195 ./install.sh --prefix="${D}"/opt/opera || die "install.sh failed"
196
197 einfo "It is safe to ignore warnings about failed checksums"
198 einfo "and about files that would be ignored ..."
199 einfo "Completing the installation where install.sh abandoned us ..."
200
201 # java workaround
202 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
203
204 dosed /opt/opera/bin/opera
205 dosed /opt/opera/share/opera/java/opera.policy
206
207 # Adapt desktop file to Gnome when needed
208 use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop
209
210 # Install a symlink /usr/bin/opera
211 dodir /usr/bin
212 dosym /opt/opera/bin/opera /usr/bin/opera
213
214 # fix plugin path
215 echo "Plugin Path=/opt/opera/lib/opera/plugins" >> "${D}"/etc/opera6rc
216
217 # enable spellcheck
218 if use spell; then
219 if use qt-static; then
220 DIR=${P}.1
221 else
222 use sparc && DIR=${P}.2 || DIR=${P}.5
223 fi
224 echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> "${D}"/opt/opera/share/opera/ini/spellcheck.ini
225 fi
226
227 dodir /etc/revdep-rebuild
228 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera
229
230 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
231 if use elibc_FreeBSD; then
232 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \
233 while read i; do
234 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
235 then
236 export SANITY_CHECK_LIBZ_FAILED=1
237 break
238 fi
239 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
240 done
241 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
242 fi
243
244 # Add the Opera man dir to MANPATH:
245 insinto /etc/env.d
246 echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera
247
248 [[ -z MY_LINGUAS ]] || opera_linguas
249 }
250
251 pkg_postinst() {
252 use gnome && gnome2_pkg_postinst
253
254 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
255 elog "[General] tab, click on [Details...] then [Choose...] and point the"
256 elog "file chooser at /opt/opera/share/opera/locale/, then enter the"
257 elog "directory for the language you want and [Open] the .lng file."
258 elog
259 elog "To use the spellchecker (USE=spell) for non-English simply do"
260 elog "$ emerge app-dicts/aspell-[your language]."
261
262 if use elibc_FreeBSD; then
263 elog
264 elog "To improve shared memory usage please set:"
265 elog "$ sysctl kern.ipc.shm_allow_removed=1"
266 fi
267
268 elog "The current Opera builds may still have issues with plugins, notably"
269 elog "net-www/netscape-flash. See also https://bugs.gentoo.org/198162"
270 }
271
272 pkg_postrm() {
273 use gnome && gnome2_pkg_postrm
274 }