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