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.60_pre6386.ebuild
Date: Wed, 30 Jun 2010 18:35:42
Message-Id: 20100630183535.0C4632C621@corvid.gentoo.org
1 jer 10/06/30 18:35:34
2
3 Modified: ChangeLog
4 Added: opera-10.60_pre6386.ebuild
5 Log:
6 <http://my.opera.com/desktopteam/blog/2010/06/30/opera-10-60-rc3>
7 (Portage version: 2.2_rc67/cvs/Linux i686)
8
9 Revision Changes Path
10 1.507 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.507&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.507&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?r1=1.506&r2=1.507
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.506
20 retrieving revision 1.507
21 diff -u -r1.506 -r1.507
22 --- ChangeLog 30 Jun 2010 12:57:01 -0000 1.506
23 +++ ChangeLog 30 Jun 2010 18:35:34 -0000 1.507
24 @@ -1,6 +1,11 @@
25 # ChangeLog for www-client/opera
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.506 2010/06/30 12:57:01 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.507 2010/06/30 18:35:34 jer Exp $
29 +
30 +*opera-10.60_pre6386 (30 Jun 2010)
31 +
32 + 30 Jun 2010; Jeroen Roovers <jer@g.o> +opera-10.60_pre6386.ebuild:
33 + <http://my.opera.com/desktopteam/blog/2010/06/30/opera-10-60-rc3>
34
35 *opera-10.60_pre6385 (30 Jun 2010)
36
37
38
39
40 1.1 www-client/opera/opera-10.60_pre6386.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.60_pre6386.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.60_pre6386.ebuild?rev=1.1&content-type=text/plain
44
45 Index: opera-10.60_pre6386.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.60_pre6386.ebuild,v 1.1 2010/06/30 18:35:34 jer Exp $
50
51 EAPI="2"
52
53 inherit eutils multilib
54
55 DESCRIPTION="A standards-compliant graphical Web browser"
56 HOMEPAGE="http://www.opera.com/"
57
58 SLOT="0"
59 LICENSE="OPERA-10.53 LGPL-2 LGPL-3"
60 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
61 IUSE="elibc_FreeBSD gtk kde"
62
63 RESTRICT="mirror test"
64
65 OPREFIX="/usr/$(get_libdir)"
66
67 QA_DT_HASH="${OPREFIX}/${PN}/.*"
68 QA_PRESTRIPPED="${OPREFIX}/${PN}/.*"
69
70 MY_LINGUAS="
71 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
72 ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk vi zh-CN zh-HK
73 zh-TW
74 "
75
76 for MY_LINGUA in ${MY_LINGUAS}; do
77 IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
78 done
79
80 O_U="http://snapshot.opera.com/unix/thisisit_${PV/_pre/-}/"
81 O_P="${P/_pre/-}"
82
83 SRC_URI="
84 amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 )
85 ppc? ( ${O_U}${O_P}.ppc.linux.tar.bz2 )
86 x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 )
87 x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 )
88 "
89
90 DEPEND=">=sys-apps/sed-4"
91
92 RDEPEND="
93 gtk? (
94 =x11-libs/gtk+-2*
95 dev-libs/atk
96 dev-libs/glib
97 media-libs/glitz
98 media-libs/libpng
99 x11-libs/cairo
100 x11-libs/pango
101 x11-libs/pixman
102 )
103 kde? (
104 kde-base/kdelibs
105 )
106 dev-libs/expat
107 media-libs/fontconfig
108 media-libs/freetype
109 media-plugins/gst-plugins-meta
110 sys-apps/util-linux
111 sys-libs/zlib
112 virtual/opengl
113 x11-libs/libICE
114 x11-libs/libSM
115 x11-libs/libX11
116 x11-libs/libXau
117 x11-libs/libXcomposite
118 x11-libs/libXcursor
119 x11-libs/libXdamage
120 x11-libs/libXdmcp
121 x11-libs/libXext
122 x11-libs/libXfixes
123 x11-libs/libXi
124 x11-libs/libXmu
125 x11-libs/libXrandr
126 x11-libs/libXrender
127 x11-libs/libXt
128 x11-libs/libxcb
129 x11-libs/xcb-util
130 "
131
132 opera_linguas() {
133 # Remove unwanted LINGUAS:
134 local LINGUA
135 local LNGDIR="${D}usr/share/${PN}/locale"
136 einfo "Keeping these locales: ${LINGUAS}."
137 for LINGUA in ${MY_LINGUAS}; do
138 if ! use linguas_${LINGUA/-/_}; then
139 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
140 rm -r "${LINGUA}"
141 fi
142 done
143 }
144
145 pkg_setup() {
146 echo -e \
147 " ${GOOD}****************************************************${NORMAL}"
148 elog "If you seek support, please file a bug report at"
149 elog "https://bugs.gentoo.org and post the output of"
150 elog " \`emerge --info =${CATEGORY}/${P}'"
151 echo -e \
152 " ${GOOD}****************************************************${NORMAL}"
153 }
154
155 src_unpack() {
156 unpack ${A}
157 if [[ ! -d ${S} ]]; then
158 cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
159 S="$(pwd)"
160 einfo "Setting WORKDIR to ${S}"
161 fi
162 }
163
164 src_install() {
165 # Remove "license directory" (bug #315473)
166 rm -rf "share/doc/opera"
167
168 # We install into usr instead of opt as Opera does not support the latter
169 dodir /usr
170 mv lib/ "${D}/${OPREFIX}" || die "mv lib/ failed"
171 mv share/ "${D}/usr/" || die "mv share/ failed"
172
173 # Unzip the man pages before sedding
174 gunzip "${D}"/usr/share/man/man1/* || die "gunzip failed"
175
176 # Replace PREFIX and SUFFIX in various files
177 sed -i \
178 -e "s:@@{PREFIX}:/usr:g" \
179 -e "s:@@{SUFFIX}::g" \
180 -e "s:@@{_SUFFIX}::g" \
181 -e "s:@@{USUFFIX}::g" \
182 "${D}"/usr/share/mime/packages/opera-widget.xml \
183 "${D}"/usr/share/man/man1/* \
184 "${D}"/usr/share/applications/opera-browser.desktop \
185 "${D}"/usr/share/applications/opera-widget-manager.desktop || die "sed failed"
186
187 # Sed libdir in opera script
188 sed "${FILESDIR}"/opera \
189 -e "s|OPERA_LIBDIR|${OPREFIX}|g" > opera \
190 || die "sed opera script failed"
191
192 # Sed libdir in defaults/pluginpath.ini
193 sed -i \
194 -e "s|/usr/lib32|${OPREFIX}|g" \
195 "${D}"/usr/share/opera/defaults/pluginpath.ini \
196 || die "sed pluginpath.ini failed"
197
198 # Install startup scripts
199 dobin ${PN} ${PN}-widget-manager || die "dobin failed"
200
201 # Stop revdep-rebuild from checking opera binaries
202 dodir /etc/revdep-rebuild
203 echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera
204
205 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
206 if use elibc_FreeBSD; then
207 scanelf -qR -N libz.so.3 -F "#N" "${D}"${OPREFIX}/${PN}/ | \
208 while read i; do
209 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
210 then
211 export SANITY_CHECK_LIBZ_FAILED=1
212 break
213 fi
214 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
215 done
216 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
217 fi
218
219 [[ -z MY_LINGUAS ]] || opera_linguas
220 }
221
222 pkg_postinst() {
223 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
224 elog "[General] tab, click on [Details...] then [Choose...] and point the"
225 elog "file chooser at /usr/share/opera/locale/, then enter the"
226 elog "directory for the language you want and [Open] the .lng file."
227
228 if use elibc_FreeBSD; then
229 elog
230 elog "To improve shared memory usage please set:"
231 elog "$ sysctl kern.ipc.shm_allow_removed=1"
232 fi
233 }