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.50_pre6235.ebuild
Date: Thu, 25 Feb 2010 15:12:11
Message-Id: E1NkfNp-0006gX-Ed@stork.gentoo.org
1 jer 10/02/25 15:12:09
2
3 Modified: ChangeLog
4 Added: opera-10.50_pre6235.ebuild
5 Log:
6 Version bump <http://my.opera.com/desktopteam/blog/2010/02/25/more-fixes> thanks to Christian Faulhammer.
7 (Portage version: 2.2_rc63/cvs/Linux i686)
8
9 Revision Changes Path
10 1.452 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.452&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.452&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.451&r2=1.452
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.451
20 retrieving revision 1.452
21 diff -u -r1.451 -r1.452
22 --- ChangeLog 24 Feb 2010 15:42:33 -0000 1.451
23 +++ ChangeLog 25 Feb 2010 15:12:08 -0000 1.452
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.451 2010/02/24 15:42:33 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.452 2010/02/25 15:12:08 jer Exp $
29 +
30 +*opera-10.50_pre6235 (25 Feb 2010)
31 +
32 + 25 Feb 2010; Jeroen Roovers <jer@g.o> +opera-10.50_pre6235.ebuild:
33 + Version bump <http://my.opera.com/desktopteam/blog/2010/02/25/more-fixes>
34 + thanks to Christian Faulhammer.
35
36 *opera-10.50_pre6232 (24 Feb 2010)
37
38
39
40
41 1.1 www-client/opera/opera-10.50_pre6235.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.50_pre6235.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.50_pre6235.ebuild?rev=1.1&content-type=text/plain
45
46 Index: opera-10.50_pre6235.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.50_pre6235.ebuild,v 1.1 2010/02/25 15:12:08 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.10 LGPL-2"
63 KEYWORDS="~amd64 ~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 zh-CN zh-HK zh-TW
75 "
76
77 for MY_LINGUA in ${MY_LINGUAS}; do
78 IUSE="${IUSE} linguas_${MY_LINGUA/-/_}"
79 done
80
81 O_U="http://snapshot.opera.com/unix/snapshot-${PV/*_pre}/"
82 O_P="${P/_pre/-}"
83
84 SRC_URI="
85 amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 )
86 x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 )
87 x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 )
88 "
89
90 DEPEND=">=sys-apps/sed-4"
91
92 RDEPEND="
93 =x11-libs/gtk+-2*
94 dev-libs/atk
95 dev-libs/expat
96 dev-libs/glib
97 media-libs/fontconfig
98 media-libs/freetype
99 media-libs/glitz
100 media-plugins/gst-plugins-meta
101 media-libs/libpng
102 sys-apps/util-linux
103 sys-libs/zlib
104 virtual/opengl
105 x11-libs/cairo
106 x11-libs/libICE
107 x11-libs/libSM
108 x11-libs/libX11
109 x11-libs/libXau
110 x11-libs/libXcomposite
111 x11-libs/libXcursor
112 x11-libs/libXdamage
113 x11-libs/libXdmcp
114 x11-libs/libXext
115 x11-libs/libXfixes
116 x11-libs/libXi
117 x11-libs/libXmu
118 x11-libs/libXrandr
119 x11-libs/libXrender
120 x11-libs/libXt
121 x11-libs/libxcb
122 x11-libs/pango
123 x11-libs/pixman
124 x11-libs/xcb-util
125 "
126
127 opera_linguas() {
128 # Remove unwanted LINGUAS:
129 local LINGUA
130 local LNGDIR="${D}usr/share/${PN}/locale"
131 einfo "Keeping these locales: ${LINGUAS}."
132 for LINGUA in ${MY_LINGUAS}; do
133 if ! use linguas_${LINGUA/-/_}; then
134 LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-})
135 rm -r "${LINGUA}"
136 fi
137 done
138 }
139
140 pkg_setup() {
141 echo -e \
142 " ${GOOD}****************************************************${NORMAL}"
143 elog "If you seek support, please file a bug report at"
144 elog "https://bugs.gentoo.org and post the output of"
145 elog " \`emerge --info =${CATEGORY}/${P}'"
146 echo -e \
147 " ${GOOD}****************************************************${NORMAL}"
148 }
149
150 src_unpack() {
151 unpack ${A}
152 if [[ ! -d ${S} ]]; then
153 cd "${WORKDIR}"/${PN}* || die "failed to enter work directory"
154 S="$(pwd)"
155 einfo "Setting WORKDIR to ${S}"
156 fi
157 }
158
159 src_prepare() {
160 sed -i opera \
161 -e 's|=usr/lib/opera|=/usr/lib/opera|g' \
162 -e '6a\OPERA_DIR=/usr/share/opera' \
163 || die "sed opera script failed"
164 epatch "${FILESDIR}"/${PN}-10.50-paths.patch
165 }
166
167 src_install() {
168 # This alpha build hardcodes /usr as prefix
169 mv etc/ usr/ "${D}"/ || die "mv etc/ usr/ failed"
170
171 make_desktop_entry ${PN} Opera ${PN} # TODO
172
173 # Install startup script
174 dobin ${PN} || die "dobin failed"
175
176 # Stop revdep-rebuild from checking opera binaries
177 dodir /etc/revdep-rebuild
178 echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera
179
180 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
181 if use elibc_FreeBSD; then
182 scanelf -qR -N libz.so.3 -F "#N" "${D}"${OPREFIX}/${PN}/ | \
183 while read i; do
184 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
185 then
186 export SANITY_CHECK_LIBZ_FAILED=1
187 break
188 fi
189 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
190 done
191 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
192 fi
193
194 [[ -z MY_LINGUAS ]] || opera_linguas
195 }
196
197 pkg_postinst() {
198 elog "To change the UI language, choose [Tools] -> [Preferences], open the"
199 elog "[General] tab, click on [Details...] then [Choose...] and point the"
200 elog "file chooser at ${OPREFIX}/opera/share/opera/locale/, then enter the"
201 elog "directory for the language you want and [Open] the .lng file."
202
203 if use elibc_FreeBSD; then
204 elog
205 elog "To improve shared memory usage please set:"
206 elog "$ sysctl kern.ipc.shm_allow_removed=1"
207 fi
208 }