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.10_pre4694.ebuild
Date: Thu, 05 Nov 2009 19:47:52
Message-Id: E1N68J6-0003Sd-2J@stork.gentoo.org
1 jer 09/11/05 19:47:44
2
3 Modified: ChangeLog
4 Added: opera-10.10_pre4694.ebuild
5 Log:
6 Version bump <http://my.opera.com/desktopteam/blog/2009/11/05/key-fixes-and-stability>.
7 (Portage version: 2.2_rc48/cvs/Linux i686)
8
9 Revision Changes Path
10 1.411 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.411&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.411&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.410&r2=1.411
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.410
20 retrieving revision 1.411
21 diff -u -r1.410 -r1.411
22 --- ChangeLog 4 Nov 2009 12:15:40 -0000 1.410
23 +++ ChangeLog 5 Nov 2009 19:47:43 -0000 1.411
24 @@ -1,6 +1,12 @@
25 # ChangeLog for www-client/opera
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.410 2009/11/04 12:15:40 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.411 2009/11/05 19:47:43 jer Exp $
29 +
30 +*opera-10.10_pre4694 (05 Nov 2009)
31 +
32 + 05 Nov 2009; Jeroen Roovers <jer@g.o> +opera-10.10_pre4694.ebuild:
33 + Version bump
34 + <http://my.opera.com/desktopteam/blog/2009/11/05/key-fixes-and-stability>.
35
36 04 Nov 2009; Jeroen Roovers <jer@g.o> -opera-10.00.ebuild:
37 Remove old.
38
39
40
41 1.1 www-client/opera/opera-10.10_pre4694.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.10_pre4694.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.10_pre4694.ebuild?rev=1.1&content-type=text/plain
45
46 Index: opera-10.10_pre4694.ebuild
47 ===================================================================
48 # Copyright 1999-2009 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.10_pre4694.ebuild,v 1.1 2009/11/05 19:47:43 jer Exp $
51
52 EAPI="2"
53
54 GCONF_DEBUG="no"
55
56 inherit eutils gnome2
57
58 DESCRIPTION="A standards-compliant graphical Web browser"
59 HOMEPAGE="http://www.opera.com/"
60
61 SLOT="0"
62 LICENSE="OPERA-10.00"
63 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
64
65 RESTRICT="mirror strip test"
66 QA_DT_HASH="opt/${PN}/.*"
67
68 IUSE="elibc_FreeBSD gnome ia32 qt3 +qt-static"
69 MY_LINGUAS="be bg cs da de el 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 ro ru sk sr sv ta te tr uk zh-CN zh-HK zh-TW"
70
71 for MY_LINGUA in ${MY_LINGUAS}; do
72 IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
73 done
74
75 O_U="http://snapshot.opera.com/unix/snapshot-${PV/*_pre}/"
76
77 # 1) Please check for missing (qt3/qt-static) builds
78 # 2) and only then update the build number manually
79 OPERABUILD="4694"
80
81 if [ "${PV/*_pre}" = "${OPERABUILD}" ]; then
82 O_P="${P/_pre*/}-${OPERABUILD}"
83 else
84 O_P="SET_OPERABUILD_IN_THE_EBUILD"
85 fi
86
87 SRC_URI="
88 amd64? (
89 !ia32? (
90 qt-static? ( ${O_U}x86_64-linux/${O_P}.gcc4-bundled-qt4.x86_64.tar.bz2 )
91 !qt-static? (
92 qt3? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 )
93 !qt3? ( ${O_U}x86_64-linux/${O_P}.gcc4-qt4.x86_64.tar.bz2 )
94 )
95 )
96 ia32? (
97 qt-static? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 )
98 !qt-static? (
99 qt3? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 )
100 !qt3? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 )
101 )
102 )
103 )
104 ppc? ( ${O_U}ppc-linux/${O_P}.gcc4-shared-qt3.ppc.tar.bz2 )
105 x86? (
106 qt-static? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 )
107 !qt-static? (
108 qt3? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 )
109 !qt3? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 )
110 )
111 )
112 x86-fbsd? ( ${O_U}intel-freebsd/${O_P}.freebsd7-shared-qt3.i386.tar.bz2 )
113 "
114
115 DEPEND=">=sys-apps/sed-4"
116
117 RDEPEND="
118 media-libs/jpeg
119 media-libs/libexif
120 >=media-libs/fontconfig-2.1.94-r1
121 x11-libs/libXrandr
122 x11-libs/libXp
123 x11-libs/libXmu
124 x11-libs/libXi
125 x11-libs/libXft
126 x11-libs/libXext
127 x11-libs/libXcursor
128 x11-libs/libX11
129 x11-libs/libSM
130 x11-libs/libICE
131 amd64? (
132 ia32? (
133 qt-static? ( media-libs/nas )
134 !qt-static? (
135 qt3? ( =x11-libs/qt-3*[-immqt] )
136 !qt3? ( x11-libs/qt-core x11-libs/qt-gui )
137 )
138 )
139 !ia32? (
140 qt-static? ( media-libs/nas )
141 !qt-static? (
142 qt3? ( =x11-libs/qt-3*[-immqt] )
143 !qt3? ( x11-libs/qt-core x11-libs/qt-gui )
144 )
145 )
146 )
147 x86? (
148 qt-static? ( media-libs/nas )
149 !qt-static? (
150 qt3? ( =x11-libs/qt-3*[-immqt] )
151 !qt3? ( x11-libs/qt-core x11-libs/qt-gui )
152 )
153 )
154 ppc? ( =x11-libs/qt-3*[-immqt] )
155 x86-fbsd? ( =x11-libs/qt-3*[-immqt] )
156 "
157
158 opera_linguas() {
159 # Remove unwanted LINGUAS:
160 local LINGUA
161 local LNGDIR="${D}/opt/opera/share/opera/locale"
162 einfo "Keeping these locales: ${LINGUAS}."
163 for LINGUA in ${MY_LINGUAS}; do
164 if ! use linguas_${LINGUA/-/_}; then
165 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
166 rm -r "${LINGUA}"
167 fi
168 done
169 }
170
171 pkg_setup() {
172 elog "${WARN}If you seek support, please file a bug report at${NORMAL}"
173 elog "${WARN}https://bugs.gentoo.org and post the output of${NORMAL}"
174 elog "${WARN} \`emerge --info =${CATEGORY}/${P}'${NORMAL}"
175 }
176
177 src_unpack() {
178 unpack ${A}
179 if [[ ! -d ${S} ]]; then
180 cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
181 S="$(pwd)"
182 einfo "Setting WORKDIR to ${S}"
183 fi
184 }
185
186 src_prepare() {
187 epatch "${FILESDIR}/${PN}-gentoo.patch"
188 epatch "${FILESDIR}/${PN}-simplify-desktop.patch"
189 epatch "${FILESDIR}/${PN}-freedesktop.patch"
190
191 # bug #181300:
192 if use elibc_FreeBSD; then
193 epatch "${FILESDIR}/${PN}-10.00-pluginpath-fbsd.patch"
194 else
195 epatch "${FILESDIR}/${PN}-10.00-pluginpath.patch"
196 fi
197
198 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
199 -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \
200 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
201 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
202 install.sh || die "sed failed"
203 }
204
205 # These workarounds are sadly needed because gnome2.eclass doesn't check
206 # whether a configure/Makefile script exists.
207 src_configure() { :; }
208 src_compile() { :; }
209
210 src_install() {
211 # Prepare installation directories for Opera's installer script.
212 dodir /etc
213
214 # Opera's native installer.
215 ./install.sh --prefix="${D}"/opt/opera || die "install.sh failed"
216
217 einfo "It is safe to ignore warnings about failed checksums"
218 einfo "and about files that would be ignored ..."
219 einfo "Completing the installation where install.sh abandoned us ..."
220
221 # java workaround
222 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
223
224 dosed /opt/opera/bin/opera
225 dosed /opt/opera/share/opera/java/opera.policy
226
227 # Adapt desktop file to Gnome when needed
228 use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop
229
230 # Install a symlink /usr/bin/opera
231 dodir /usr/bin
232 dosym /opt/opera/bin/opera /usr/bin/opera
233
234 dodir /etc/revdep-rebuild
235 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera
236
237 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
238 if use elibc_FreeBSD; then
239 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \
240 while read i; do
241 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
242 then
243 export SANITY_CHECK_LIBZ_FAILED=1
244 break
245 fi
246 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
247 done
248 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
249 fi
250
251 # Add the Opera man dir to MANPATH:
252 insinto /etc/env.d
253 echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera
254
255 [[ -z MY_LINGUAS ]] || opera_linguas
256 }
257
258 pkg_postinst() {
259 use gnome && gnome2_pkg_postinst
260
261 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
262 elog "[General] tab, click on [Details...] then [Choose...] and point the"
263 elog "file chooser at /opt/opera/share/opera/locale/, then enter the"
264 elog "directory for the language you want and [Open] the .lng file."
265
266 if use elibc_FreeBSD; then
267 elog
268 elog "To improve shared memory usage please set:"
269 elog "$ sysctl kern.ipc.shm_allow_removed=1"
270 fi
271
272 elog
273 elog "The current Opera builds may still have issues with plugins, notably"
274 elog "www-plugins/adobe-flash. See also https://bugs.gentoo.org/198162"
275 }
276
277 pkg_postrm() {
278 use gnome && gnome2_pkg_postrm
279 }