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_pre4492.ebuild opera-10.00_pre4394.ebuild opera-10.00_pre4345.ebuild opera-10.00_pre4340.ebuild
Date: Fri, 17 Jul 2009 15:29:26
Message-Id: E1MRpND-0005zy-RH@stork.gentoo.org
1 jer 09/07/17 15:29:23
2
3 Modified: ChangeLog
4 Added: opera-10.00_pre4492.ebuild
5 Removed: opera-10.00_pre4394.ebuild
6 opera-10.00_pre4345.ebuild
7 opera-10.00_pre4340.ebuild
8 Log:
9 Remove old. Add beta2.
10 (Portage version: 2.2_rc33/cvs/Linux i686)
11
12 Revision Changes Path
13 1.368 www-client/opera/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.368&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.368&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.367&r2=1.368
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
22 retrieving revision 1.367
23 retrieving revision 1.368
24 diff -u -r1.367 -r1.368
25 --- ChangeLog 16 Jul 2009 13:49:03 -0000 1.367
26 +++ ChangeLog 17 Jul 2009 15:29:23 -0000 1.368
27 @@ -1,6 +1,13 @@
28 # ChangeLog for www-client/opera
29 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.367 2009/07/16 13:49:03 jer Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.368 2009/07/17 15:29:23 jer Exp $
32 +
33 +*opera-10.00_pre4492 (17 Jul 2009)
34 +
35 + 17 Jul 2009; Jeroen Roovers <jer@g.o> -opera-10.00_pre4340.ebuild,
36 + -opera-10.00_pre4345.ebuild, -opera-10.00_pre4394.ebuild,
37 + +opera-10.00_pre4492.ebuild:
38 + Remove old. Add beta2.
39
40 *opera-10.00_pre4493 (16 Jul 2009)
41
42
43
44
45 1.1 www-client/opera/opera-10.00_pre4492.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4492.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.00_pre4492.ebuild?rev=1.1&content-type=text/plain
49
50 Index: opera-10.00_pre4492.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.00_pre4492.ebuild,v 1.1 2009/07/17 15:29:23 jer Exp $
55
56 EAPI="2"
57
58 GCONF_DEBUG="no"
59
60 inherit eutils gnome2
61
62 DESCRIPTION="A standards-compliant graphical Web browser"
63 HOMEPAGE="http://www.opera.com/"
64
65 SLOT="0"
66 LICENSE="OPERA-10.00"
67 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
68
69 RESTRICT="mirror strip test"
70 QA_DT_HASH="opt/${PN}/.*"
71
72 IUSE="elibc_FreeBSD gnome ia32 qt3 qt-static"
73 MY_LINGUAS="zh-CN zh-HK zh-TW"
74
75 for MY_LINGUA in ${MY_LINGUAS}; do
76 IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
77 done
78
79 O_U="mirror://opera/"
80
81 # 1) Please check for missing (qt3/qt-static) builds
82 # 2) and only then update the build number manually
83 OPERABUILD="b2"
84 O_P="${P/_pre*/}-${OPERABUILD}"
85
86 SRC_URI="
87 amd64? (
88 !ia32? (
89 qt-static? ( ${O_U}linux/1000b2/beta2/en/x86_64/${O_P}.gcc4-bundled-qt4.x86_64.tar.bz2 )
90 !qt-static? (
91 qt3? ( ${O_U}linux/1000b2/beta2/en/x86_64/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 )
92 !qt3? ( ${O_U}linux/1000b2/beta2/en/x86_64/${O_P}.gcc4-qt4.x86_64.tar.bz2 )
93 )
94 )
95 ia32? (
96 qt-static? ( ${O_U}linux/1000b2/beta2/en/i386/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 )
97 !qt-static? (
98 qt3? ( ${O_U}linux/1000b2/beta2/en/i386/shared/${O_P}.gcc4-shared-qt3.i386.tar.bz2 )
99 !qt3? ( ${O_U}linux/1000b2/beta2/en/i386/${O_P}.gcc4-qt4.i386.tar.bz2 )
100 )
101 )
102 )
103 ppc? ( ${O_U}linux/1000b2/beta2/en/ppc/shared/${O_P}.gcc4-shared-qt3.ppc.tar.bz2 )
104 x86? (
105 qt-static? ( ${O_U}linux/1000b2/beta2/en/i386/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 )
106 !qt-static? (
107 qt3? ( ${O_U}linux/1000b2/beta2/en/i386/shared/${O_P}.gcc4-shared-qt3.i386.tar.bz2 )
108 !qt3? ( ${O_U}linux/1000b2/beta2/en/i386/${O_P}.gcc4-qt4.i386.tar.bz2 )
109 )
110 )
111 x86-fbsd? ( ${O_U}unix/freebsd/1000b2/en/intel/shared/${O_P}-freebsd7-shared-qt3.i386.tar.bz2 )
112 "
113
114 DEPEND=">=sys-apps/sed-4"
115
116 RDEPEND="
117 media-libs/jpeg
118 media-libs/libexif
119 >=media-libs/fontconfig-2.1.94-r1
120 x11-libs/libXrandr
121 x11-libs/libXp
122 x11-libs/libXmu
123 x11-libs/libXi
124 x11-libs/libXft
125 x11-libs/libXext
126 x11-libs/libXcursor
127 x11-libs/libX11
128 x11-libs/libSM
129 x11-libs/libICE
130 amd64? (
131 ia32? (
132 qt-static? ( media-libs/nas )
133 !qt-static? (
134 qt3? ( =x11-libs/qt-3*[-immqt] )
135 !qt3? ( x11-libs/qt-core x11-libs/qt-gui )
136 )
137 )
138 !ia32? (
139 qt-static? ( media-libs/nas )
140 !qt-static? (
141 qt3? ( =x11-libs/qt-3*[-immqt] )
142 !qt3? ( x11-libs/qt-core x11-libs/qt-gui )
143 )
144 )
145 )
146 ppc? ( =x11-libs/qt-3*[-immqt] )
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 }