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_pre4644.ebuild
Date: Fri, 02 Oct 2009 03:41:18
Message-Id: E1MtZ1A-0002eg-KX@stork.gentoo.org
1 jer 09/10/02 03:41:16
2
3 Modified: ChangeLog
4 Added: opera-10.10_pre4644.ebuild
5 Log:
6 Version bump <http://my.opera.com/desktopteam/blog/2009/10/01/more-unite-builds-2>.
7 (Portage version: 2.2_rc42/cvs/Linux i686)
8
9 Revision Changes Path
10 1.399 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.399&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.399&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.398&r2=1.399
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.398
20 retrieving revision 1.399
21 diff -u -r1.398 -r1.399
22 --- ChangeLog 25 Sep 2009 16:42:51 -0000 1.398
23 +++ ChangeLog 2 Oct 2009 03:41:16 -0000 1.399
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.398 2009/09/25 16:42:51 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.399 2009/10/02 03:41:16 jer Exp $
29 +
30 +*opera-10.10_pre4644 (02 Oct 2009)
31 +
32 + 02 Oct 2009; Jeroen Roovers <jer@g.o> +opera-10.10_pre4644.ebuild:
33 + Version bump
34 + <http://my.opera.com/desktopteam/blog/2009/10/01/more-unite-builds-2>.
35
36 *opera-10.10_pre4632 (25 Sep 2009)
37
38
39
40
41 1.1 www-client/opera/opera-10.10_pre4644.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.10_pre4644.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.10_pre4644.ebuild?rev=1.1&content-type=text/plain
45
46 Index: opera-10.10_pre4644.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_pre4644.ebuild,v 1.1 2009/10/02 03:41:16 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 ~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="4644"
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 x86? (
105 qt-static? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 )
106 !qt-static? (
107 qt3? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 )
108 !qt3? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 )
109 )
110 )
111 x86-fbsd? ( ${O_U}intel-freebsd/${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 x86? (
147 qt-static? ( media-libs/nas )
148 !qt-static? (
149 qt3? ( =x11-libs/qt-3*[-immqt] )
150 !qt3? ( x11-libs/qt-core x11-libs/qt-gui )
151 )
152 )
153 x86-fbsd? ( =x11-libs/qt-3*[-immqt] )
154 "
155
156 opera_linguas() {
157 # Remove unwanted LINGUAS:
158 local LINGUA
159 local LNGDIR="${D}/opt/opera/share/opera/locale"
160 einfo "Keeping these locales: ${LINGUAS}."
161 for LINGUA in ${MY_LINGUAS}; do
162 if ! use linguas_${LINGUA/-/_}; then
163 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
164 rm -r "${LINGUA}"
165 fi
166 done
167 }
168
169 pkg_setup() {
170 elog "${WARN}If you seek support, please file a bug report at${NORMAL}"
171 elog "${WARN}https://bugs.gentoo.org and post the output of${NORMAL}"
172 elog "${WARN} \`emerge --info =${CATEGORY}/${P}'${NORMAL}"
173 }
174
175 src_unpack() {
176 unpack ${A}
177 if [[ ! -d ${S} ]]; then
178 cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
179 S="$(pwd)"
180 einfo "Setting WORKDIR to ${S}"
181 fi
182 }
183
184 src_prepare() {
185 epatch "${FILESDIR}/${PN}-gentoo.patch"
186 epatch "${FILESDIR}/${PN}-simplify-desktop.patch"
187 epatch "${FILESDIR}/${PN}-freedesktop.patch"
188
189 # bug #181300:
190 if use elibc_FreeBSD; then
191 epatch "${FILESDIR}/${PN}-10.00-pluginpath-fbsd.patch"
192 else
193 epatch "${FILESDIR}/${PN}-10.00-pluginpath.patch"
194 fi
195
196 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
197 -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \
198 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
199 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
200 install.sh || die "sed failed"
201 }
202
203 # These workarounds are sadly needed because gnome2.eclass doesn't check
204 # whether a configure/Makefile script exists.
205 src_configure() { :; }
206 src_compile() { :; }
207
208 src_install() {
209 # Prepare installation directories for Opera's installer script.
210 dodir /etc
211
212 # Opera's native installer.
213 ./install.sh --prefix="${D}"/opt/opera || die "install.sh failed"
214
215 einfo "It is safe to ignore warnings about failed checksums"
216 einfo "and about files that would be ignored ..."
217 einfo "Completing the installation where install.sh abandoned us ..."
218
219 # java workaround
220 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
221
222 dosed /opt/opera/bin/opera
223 dosed /opt/opera/share/opera/java/opera.policy
224
225 # Adapt desktop file to Gnome when needed
226 use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop
227
228 # Install a symlink /usr/bin/opera
229 dodir /usr/bin
230 dosym /opt/opera/bin/opera /usr/bin/opera
231
232 dodir /etc/revdep-rebuild
233 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera
234
235 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
236 if use elibc_FreeBSD; then
237 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \
238 while read i; do
239 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
240 then
241 export SANITY_CHECK_LIBZ_FAILED=1
242 break
243 fi
244 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
245 done
246 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
247 fi
248
249 # Add the Opera man dir to MANPATH:
250 insinto /etc/env.d
251 echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera
252
253 [[ -z MY_LINGUAS ]] || opera_linguas
254 }
255
256 pkg_postinst() {
257 use gnome && gnome2_pkg_postinst
258
259 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
260 elog "[General] tab, click on [Details...] then [Choose...] and point the"
261 elog "file chooser at /opt/opera/share/opera/locale/, then enter the"
262 elog "directory for the language you want and [Open] the .lng file."
263
264 if use elibc_FreeBSD; then
265 elog
266 elog "To improve shared memory usage please set:"
267 elog "$ sysctl kern.ipc.shm_allow_removed=1"
268 fi
269
270 elog
271 elog "The current Opera builds may still have issues with plugins, notably"
272 elog "www-plugins/adobe-flash. See also https://bugs.gentoo.org/198162"
273 }
274
275 pkg_postrm() {
276 use gnome && gnome2_pkg_postrm
277 }