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