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_pre6219.ebuild
Date: Thu, 11 Feb 2010 09:59:40
Message-Id: E1NfVpi-0001I2-8D@stork.gentoo.org
1 jer 10/02/11 09:59:38
2
3 Modified: ChangeLog
4 Added: opera-10.50_pre6219.ebuild
5 Log:
6 Version bump <http://my.opera.com/desktopteam/blog/2010/02/11/windows-beta-released-and-more>.
7 (Portage version: 2.2_rc62/cvs/Linux i686)
8
9 Revision Changes Path
10 1.446 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.446&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.446&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.445&r2=1.446
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.445
20 retrieving revision 1.446
21 diff -u -r1.445 -r1.446
22 --- ChangeLog 6 Feb 2010 12:12:27 -0000 1.445
23 +++ ChangeLog 11 Feb 2010 09:59:37 -0000 1.446
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.445 2010/02/06 12:12:27 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.446 2010/02/11 09:59:37 jer Exp $
29 +
30 +*opera-10.50_pre6219 (11 Feb 2010)
31 +
32 + 11 Feb 2010; Jeroen Roovers <jer@g.o> +opera-10.50_pre6219.ebuild:
33 + Version bump
34 + <http://my.opera.com/desktopteam/blog/2010/02/11/windows-beta-released-and
35 + -more>.
36
37 *opera-10.50_pre6208 (06 Feb 2010)
38
39
40
41
42 1.1 www-client/opera/opera-10.50_pre6219.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.50_pre6219.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.50_pre6219.ebuild?rev=1.1&content-type=text/plain
46
47 Index: opera-10.50_pre6219.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_pre6219.ebuild,v 1.1 2010/02/11 09:59:37 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 }
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 }