1 |
jer 10/08/18 16:34:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-10.70_pre9013.ebuild |
5 |
Log: |
6 |
http://my.opera.com/desktopteam/blog/new-10-70-snapshot-synchronizing-build-numbers-almost |
7 |
(Portage version: 2.2_rc67/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.535 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.535&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.535&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?r1=1.534&r2=1.535 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.534 |
20 |
retrieving revision 1.535 |
21 |
diff -u -r1.534 -r1.535 |
22 |
--- ChangeLog 13 Aug 2010 12:13:58 -0000 1.534 |
23 |
+++ ChangeLog 18 Aug 2010 16:34:43 -0000 1.535 |
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.534 2010/08/13 12:13:58 josejx Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.535 2010/08/18 16:34:43 jer Exp $ |
29 |
+ |
30 |
+*opera-10.70_pre9013 (18 Aug 2010) |
31 |
+ |
32 |
+ 18 Aug 2010; Jeroen Roovers <jer@g.o> +opera-10.70_pre9013.ebuild: |
33 |
+ http://my.opera.com/desktopteam/blog/new-10-70-snapshot-synchronizing-buil |
34 |
+ d-numbers-almost |
35 |
|
36 |
13 Aug 2010; Joseph Jezak <josejx@g.o> opera-10.61.ebuild: |
37 |
Marked ppc stable for bug #332449. |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/opera/opera-10.70_pre9013.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.70_pre9013.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.70_pre9013.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: opera-10.70_pre9013.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.70_pre9013.ebuild,v 1.1 2010/08/18 16:34:43 jer Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit eutils multilib |
55 |
|
56 |
DESCRIPTION="A standards-compliant graphical Web browser" |
57 |
HOMEPAGE="http://www.opera.com/" |
58 |
|
59 |
SLOT="0" |
60 |
LICENSE="OPERA-10.53 LGPL-2 LGPL-3" |
61 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
62 |
IUSE="elibc_FreeBSD gtk kde +gstreamer" |
63 |
|
64 |
RESTRICT="mirror test" |
65 |
|
66 |
OPREFIX="/usr/$(get_libdir)" |
67 |
|
68 |
QA_DT_HASH="${OPREFIX}/${PN}/.*" |
69 |
QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" |
70 |
|
71 |
O_LINGUAS=" |
72 |
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 |
73 |
ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk vi zh-CN zh-HK |
74 |
zh-TW |
75 |
" |
76 |
|
77 |
for O_LINGUA in ${O_LINGUAS}; do |
78 |
IUSE="${IUSE} linguas_${O_LINGUA/-/_}" |
79 |
done |
80 |
|
81 |
O_V="${PV/_pre/-}" |
82 |
O_P="${PN}-${O_V}" |
83 |
O_U="http://snapshot.opera.com/unix/14397_${O_V}/" |
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 |
gtk? ( |
95 |
=x11-libs/gtk+-2* |
96 |
dev-libs/atk |
97 |
dev-libs/glib |
98 |
x11-libs/cairo |
99 |
x11-libs/pango |
100 |
x11-libs/pixman |
101 |
) |
102 |
kde? ( |
103 |
kde-base/kdelibs |
104 |
) |
105 |
dev-libs/expat |
106 |
media-libs/fontconfig |
107 |
media-libs/freetype |
108 |
gstreamer? ( media-plugins/gst-plugins-meta ) |
109 |
sys-apps/util-linux |
110 |
sys-libs/zlib |
111 |
virtual/opengl |
112 |
x11-libs/libICE |
113 |
x11-libs/libSM |
114 |
x11-libs/libX11 |
115 |
x11-libs/libXau |
116 |
x11-libs/libXcomposite |
117 |
x11-libs/libXcursor |
118 |
x11-libs/libXdamage |
119 |
x11-libs/libXdmcp |
120 |
x11-libs/libXext |
121 |
x11-libs/libXfixes |
122 |
x11-libs/libXi |
123 |
x11-libs/libXmu |
124 |
x11-libs/libXrandr |
125 |
x11-libs/libXrender |
126 |
x11-libs/libXt |
127 |
x11-libs/libxcb |
128 |
x11-libs/xcb-util |
129 |
" |
130 |
|
131 |
pkg_setup() { |
132 |
echo -e \ |
133 |
" ${GOOD}****************************************************${NORMAL}" |
134 |
elog "If you seek support, please file a bug report at" |
135 |
elog "https://bugs.gentoo.org and post the output of" |
136 |
elog " \`emerge --info =${CATEGORY}/${P}'" |
137 |
echo -e \ |
138 |
" ${GOOD}****************************************************${NORMAL}" |
139 |
} |
140 |
|
141 |
src_unpack() { |
142 |
unpack ${A} |
143 |
if [[ ! -d ${S} ]]; then |
144 |
cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" |
145 |
S="$(pwd)" |
146 |
einfo "Setting WORKDIR to ${S}" |
147 |
fi |
148 |
} |
149 |
|
150 |
src_prepare() { |
151 |
# Remove "license directory" (bug #315473) |
152 |
rm -rf share/doc/opera |
153 |
|
154 |
# Remove package directory |
155 |
rm -rf share/opera/package |
156 |
|
157 |
# Leave libopera*.so only if the user chooses |
158 |
if ! use gtk; then |
159 |
rm lib/opera/liboperagtk.so || die "rm liboperagtk.so failed" |
160 |
fi |
161 |
if ! use kde; then |
162 |
rm lib/opera/liboperakde4.so || die "rm liboperakde4.so failed" |
163 |
fi |
164 |
|
165 |
# Unzip the man pages before sedding |
166 |
gunzip share/man/man1/* || die "gunzip failed" |
167 |
|
168 |
# Replace PREFIX and SUFFIX in various files |
169 |
sed -i \ |
170 |
-e "s:@@{PREFIX}:/usr:g" \ |
171 |
-e "s:@@{SUFFIX}::g" \ |
172 |
-e "s:@@{_SUFFIX}::g" \ |
173 |
-e "s:@@{USUFFIX}::g" \ |
174 |
share/mime/packages/opera-widget.xml \ |
175 |
share/man/man1/* \ |
176 |
share/applications/opera-browser.desktop \ |
177 |
share/applications/opera-widget-manager.desktop \ |
178 |
|| die "sed failed" |
179 |
|
180 |
# Fix libdir in opera script |
181 |
sed \ |
182 |
"${FILESDIR}"/opera \ |
183 |
-e "s|OPERA_LIBDIR|${OPREFIX}|g" > opera \ |
184 |
|| die "sed opera script failed" |
185 |
|
186 |
# Fix libdir in defaults/pluginpath.ini |
187 |
sed -i \ |
188 |
share/opera/defaults/pluginpath.ini \ |
189 |
-e "s|/usr/lib32|${OPREFIX}|g" \ |
190 |
-e '/netscape/{s|[0-1]|2|g}' \ |
191 |
|| die "sed pluginpath.ini failed" |
192 |
|
193 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
194 |
if use elibc_FreeBSD; then |
195 |
scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \ |
196 |
while read i; do |
197 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
198 |
then |
199 |
export SANITY_CHECK_LIBZ_FAILED=1 |
200 |
break |
201 |
fi |
202 |
sed -i \ |
203 |
"$i" \ |
204 |
-e 's/libz\.so\.3/libz.so.1/g' |
205 |
done |
206 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
207 |
fi |
208 |
} |
209 |
|
210 |
src_install() { |
211 |
# Remove unwanted linguas |
212 |
LNGDIR="share/${PN}/locale" |
213 |
einfo "Installing these locales (linguas): ${LINGUAS}." |
214 |
for LINGUA in ${O_LINGUAS}; do |
215 |
if ! use linguas_${LINGUA/-/_}; then |
216 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
217 |
rm -r "${LINGUA}" |
218 |
fi |
219 |
done |
220 |
|
221 |
# We install into usr instead of opt as Opera does not support the latter |
222 |
dodir /usr |
223 |
mv lib/ "${D}/${OPREFIX}" || die "mv lib/ failed" |
224 |
mv share/ "${D}/usr/" || die "mv share/ failed" |
225 |
|
226 |
# Install startup scripts |
227 |
dobin ${PN} ${PN}-widget-manager || die "dobin failed" |
228 |
|
229 |
# Stop revdep-rebuild from checking opera binaries |
230 |
dodir /etc/revdep-rebuild |
231 |
echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera |
232 |
} |
233 |
|
234 |
pkg_postinst() { |
235 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
236 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
237 |
elog "file chooser at /usr/share/opera/locale/, then enter the" |
238 |
elog "directory for the language you want and [Open] the .lng file." |
239 |
|
240 |
if use elibc_FreeBSD; then |
241 |
elog |
242 |
elog "To improve shared memory usage please set:" |
243 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
244 |
fi |
245 |
} |