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