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