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