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_rc4570.ebuild
Date: Fri, 28 Aug 2009 20:15:59
Message-Id: E1Mfuk9-0002xC-I1@stork.gentoo.org
1 jer 09/08/25 12:03:17
2
3 Modified: ChangeLog
4 Added: opera-10.00_rc4570.ebuild
5 Log:
6 Version bump <http://my.opera.com/desktopteam/blog/2009/08/25/opera-10-0-release-candidate>.
7 (Portage version: 2.2_rc40/cvs/Linux i686)
8
9 Revision Changes Path
10 1.379 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.379&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.379&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.378&r2=1.379
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.378
20 retrieving revision 1.379
21 diff -u -r1.378 -r1.379
22 --- ChangeLog 22 Aug 2009 19:37:04 -0000 1.378
23 +++ ChangeLog 25 Aug 2009 12:03:17 -0000 1.379
24 @@ -1,6 +1,13 @@
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.378 2009/08/22 19:37:04 williamh Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.379 2009/08/25 12:03:17 jer Exp $
29 +
30 +*opera-10.00_rc4570 (25 Aug 2009)
31 +
32 + 25 Aug 2009; Jeroen Roovers <jer@g.o> +opera-10.00_rc4570.ebuild:
33 + Version bump
34 + <http://my.opera.com/desktopteam/blog/2009/08/25/opera-10-0-release-candid
35 + ate>.
36
37 22 Aug 2009; William Hubbs <williamh@g.o> opera-9.27.ebuild,
38 opera-9.64.ebuild:
39
40
41
42 1.1 www-client/opera/opera-10.00_rc4570.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_rc4570.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_rc4570.ebuild?rev=1.1&content-type=text/plain
46
47 Index: opera-10.00_rc4570.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.00_rc4570.ebuild,v 1.1 2009/08/25 12:03:17 jer Exp $
52
53 EAPI="2"
54
55 GCONF_DEBUG="no"
56
57 inherit eutils gnome2
58
59 DESCRIPTION="A standards-compliant graphical Web browser"
60 HOMEPAGE="http://www.opera.com/"
61
62 SLOT="0"
63 LICENSE="OPERA-10.00"
64 KEYWORDS="~amd64 ~x86 ~x86-fbsd"
65
66 RESTRICT="mirror strip test"
67 QA_DT_HASH="opt/${PN}/.*"
68
69 IUSE="elibc_FreeBSD gnome ia32 qt3 qt-static"
70 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"
71
72 for MY_LINGUA in ${MY_LINGUAS}; do
73 IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
74 done
75
76 O_U="http://snapshot.opera.com/unix/snapshot-${PV/*_rc}/"
77
78 # 1) Please check for missing (qt3/qt-static) builds
79 # 2) and only then update the build number manually
80 OPERABUILD="4570"
81
82 if [ "${PV/*_rc}" = "${OPERABUILD}" ]; then
83 O_P="${P/_rc*/}-${OPERABUILD}"
84 else
85 O_P="SET_OPERABUILD_IN_THE_EBUILD"
86 fi
87
88 SRC_URI="
89 amd64? (
90 !ia32? (
91 qt-static? ( ${O_U}x86_64-linux/${O_P}.gcc4-bundled-qt4.x86_64.tar.bz2 )
92 !qt-static? (
93 qt3? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 )
94 !qt3? ( ${O_U}x86_64-linux/${O_P}.gcc4-qt4.x86_64.tar.bz2 )
95 )
96 )
97 ia32? (
98 qt-static? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 )
99 !qt-static? (
100 qt3? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 )
101 !qt3? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 )
102 )
103 )
104 )
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 x86-fbsd? ( =x11-libs/qt-3*[-immqt] )
155 "
156
157 opera_linguas() {
158 # Remove unwanted LINGUAS:
159 local LINGUA
160 local LNGDIR="${D}/opt/opera/share/opera/locale"
161 einfo "Keeping these locales: ${LINGUAS}."
162 for LINGUA in ${MY_LINGUAS}; do
163 if ! use linguas_${LINGUA/-/_}; then
164 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
165 rm -r "${LINGUA}"
166 fi
167 done
168 }
169
170 pkg_setup() {
171 elog "${WARN}If you seek support, please file a bug report at${NORMAL}"
172 elog "${WARN}https://bugs.gentoo.org and post the output of${NORMAL}"
173 elog "${WARN} \`emerge --info =${CATEGORY}/${P}'${NORMAL}"
174 }
175
176 src_unpack() {
177 unpack ${A}
178 if [[ ! -d ${S} ]]; then
179 cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
180 S="$(pwd)"
181 einfo "Setting WORKDIR to ${S}"
182 fi
183 }
184
185 src_prepare() {
186 epatch "${FILESDIR}/${PN}-gentoo.patch"
187 epatch "${FILESDIR}/${PN}-simplify-desktop.patch"
188 epatch "${FILESDIR}/${PN}-freedesktop.patch"
189
190 # bug #181300:
191 if use elibc_FreeBSD; then
192 epatch "${FILESDIR}/${PN}-10.00-pluginpath-fbsd.patch"
193 else
194 epatch "${FILESDIR}/${PN}-10.00-pluginpath.patch"
195 fi
196
197 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
198 -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \
199 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
200 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
201 install.sh || die "sed failed"
202 }
203
204 # These workarounds are sadly needed because gnome2.eclass doesn't check
205 # whether a configure/Makefile script exists.
206 src_configure() { :; }
207 src_compile() { :; }
208
209 src_install() {
210 # Prepare installation directories for Opera's installer script.
211 dodir /etc
212
213 # Opera's native installer.
214 ./install.sh --prefix="${D}"/opt/opera || die "install.sh failed"
215
216 einfo "It is safe to ignore warnings about failed checksums"
217 einfo "and about files that would be ignored ..."
218 einfo "Completing the installation where install.sh abandoned us ..."
219
220 # java workaround
221 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
222
223 dosed /opt/opera/bin/opera
224 dosed /opt/opera/share/opera/java/opera.policy
225
226 # Adapt desktop file to Gnome when needed
227 use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop
228
229 # Install a symlink /usr/bin/opera
230 dodir /usr/bin
231 dosym /opt/opera/bin/opera /usr/bin/opera
232
233 dodir /etc/revdep-rebuild
234 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera
235
236 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
237 if use elibc_FreeBSD; then
238 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \
239 while read i; do
240 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
241 then
242 export SANITY_CHECK_LIBZ_FAILED=1
243 break
244 fi
245 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
246 done
247 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
248 fi
249
250 # Add the Opera man dir to MANPATH:
251 insinto /etc/env.d
252 echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera
253
254 [[ -z MY_LINGUAS ]] || opera_linguas
255 }
256
257 pkg_postinst() {
258 use gnome && gnome2_pkg_postinst
259
260 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
261 elog "[General] tab, click on [Details...] then [Choose...] and point the"
262 elog "file chooser at /opt/opera/share/opera/locale/, then enter the"
263 elog "directory for the language you want and [Open] the .lng file."
264
265 elog
266 elog "To use the spellchecker (USE=spell) for languages other than English, do:"
267 elog " emerge app-dicts/myspell-[your language]"
268 elog " mkdir \${HOME}/.opera/dictionaries"
269 elog " cd \${HOME}/.opera/dictionaries"
270 elog " ln -s /usr/share/myspell/*.{aff,dic} ."
271 elog "A future release of Opera 10 should remedy this inconvenience."
272
273 if use elibc_FreeBSD; then
274 elog
275 elog "To improve shared memory usage please set:"
276 elog "$ sysctl kern.ipc.shm_allow_removed=1"
277 fi
278
279 elog
280 elog "The current Opera builds may still have issues with plugins, notably"
281 elog "www-plugins/adobe-flash. See also https://bugs.gentoo.org/198162"
282 }
283
284 pkg_postrm() {
285 use gnome && gnome2_pkg_postrm
286 }