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