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