1 |
jer 10/08/02 15:16:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-10.61_pre6422.ebuild |
5 |
Log: |
6 |
http://my.opera.com/desktopteam/blog/2010/08/02/second-release-candidate-for-10-61 |
7 |
(Portage version: 2.2_rc67/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.524 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.524&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.524&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?r1=1.523&r2=1.524 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.523 |
20 |
retrieving revision 1.524 |
21 |
diff -u -r1.523 -r1.524 |
22 |
--- ChangeLog 28 Jul 2010 16:21:22 -0000 1.523 |
23 |
+++ ChangeLog 2 Aug 2010 15:16:42 -0000 1.524 |
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.523 2010/07/28 16:21:22 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.524 2010/08/02 15:16:42 jer Exp $ |
29 |
+ |
30 |
+*opera-10.61_pre6422 (02 Aug 2010) |
31 |
+ |
32 |
+ 02 Aug 2010; Jeroen Roovers <jer@g.o> +opera-10.61_pre6422.ebuild: |
33 |
+ http://my.opera.com/desktopteam/blog/2010/08/02/second-release-candidate-f |
34 |
+ or-10-61 |
35 |
|
36 |
28 Jul 2010; Jeroen Roovers <jer@g.o> opera-10.61_pre6415.ebuild: |
37 |
Whitespace style. |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/opera/opera-10.61_pre6422.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.61_pre6422.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.61_pre6422.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: opera-10.61_pre6422.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.61_pre6422.ebuild,v 1.1 2010/08/02 15:16:42 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 ~ppc ~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/15204_${O_V}/" |
84 |
|
85 |
SRC_URI=" |
86 |
amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 ) |
87 |
ppc? ( ${O_U}${O_P}.ppc.linux.tar.bz2 ) |
88 |
x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 ) |
89 |
x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 ) |
90 |
" |
91 |
|
92 |
DEPEND=">=sys-apps/sed-4" |
93 |
|
94 |
RDEPEND=" |
95 |
gtk? ( |
96 |
=x11-libs/gtk+-2* |
97 |
dev-libs/atk |
98 |
dev-libs/glib |
99 |
media-libs/glitz |
100 |
x11-libs/cairo |
101 |
x11-libs/pango |
102 |
x11-libs/pixman |
103 |
) |
104 |
kde? ( |
105 |
kde-base/kdelibs |
106 |
) |
107 |
dev-libs/expat |
108 |
media-libs/fontconfig |
109 |
media-libs/freetype |
110 |
gstreamer? ( media-plugins/gst-plugins-meta ) |
111 |
sys-apps/util-linux |
112 |
sys-libs/zlib |
113 |
virtual/opengl |
114 |
x11-libs/libICE |
115 |
x11-libs/libSM |
116 |
x11-libs/libX11 |
117 |
x11-libs/libXau |
118 |
x11-libs/libXcomposite |
119 |
x11-libs/libXcursor |
120 |
x11-libs/libXdamage |
121 |
x11-libs/libXdmcp |
122 |
x11-libs/libXext |
123 |
x11-libs/libXfixes |
124 |
x11-libs/libXi |
125 |
x11-libs/libXmu |
126 |
x11-libs/libXrandr |
127 |
x11-libs/libXrender |
128 |
x11-libs/libXt |
129 |
x11-libs/libxcb |
130 |
x11-libs/xcb-util |
131 |
" |
132 |
|
133 |
pkg_setup() { |
134 |
echo -e \ |
135 |
" ${GOOD}****************************************************${NORMAL}" |
136 |
elog "If you seek support, please file a bug report at" |
137 |
elog "https://bugs.gentoo.org and post the output of" |
138 |
elog " \`emerge --info =${CATEGORY}/${P}'" |
139 |
echo -e \ |
140 |
" ${GOOD}****************************************************${NORMAL}" |
141 |
} |
142 |
|
143 |
src_unpack() { |
144 |
unpack ${A} |
145 |
if [[ ! -d ${S} ]]; then |
146 |
cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" |
147 |
S="$(pwd)" |
148 |
einfo "Setting WORKDIR to ${S}" |
149 |
fi |
150 |
} |
151 |
|
152 |
src_prepare() { |
153 |
# Remove "license directory" (bug #315473) |
154 |
rm -rf share/doc/opera |
155 |
|
156 |
# Remove package directory |
157 |
rm -rf share/opera/package |
158 |
|
159 |
# Leave libopera*.so only if the user chooses |
160 |
if ! use gtk; then |
161 |
rm lib/opera/liboperagtk.so || die "rm liboperagtk.so failed" |
162 |
fi |
163 |
if ! use kde; then |
164 |
rm lib/opera/liboperakde4.so || die "rm liboperakde4.so failed" |
165 |
fi |
166 |
|
167 |
# Unzip the man pages before sedding |
168 |
gunzip share/man/man1/* || die "gunzip failed" |
169 |
|
170 |
# Replace PREFIX and SUFFIX in various files |
171 |
sed -i \ |
172 |
-e "s:@@{PREFIX}:/usr:g" \ |
173 |
-e "s:@@{SUFFIX}::g" \ |
174 |
-e "s:@@{_SUFFIX}::g" \ |
175 |
-e "s:@@{USUFFIX}::g" \ |
176 |
share/mime/packages/opera-widget.xml \ |
177 |
share/man/man1/* \ |
178 |
share/applications/opera-browser.desktop \ |
179 |
share/applications/opera-widget-manager.desktop \ |
180 |
|| die "sed failed" |
181 |
|
182 |
# Fix libdir in opera script |
183 |
sed \ |
184 |
"${FILESDIR}"/opera \ |
185 |
-e "s|OPERA_LIBDIR|${OPREFIX}|g" > opera \ |
186 |
|| die "sed opera script failed" |
187 |
|
188 |
# Fix libdir in defaults/pluginpath.ini |
189 |
sed -i \ |
190 |
share/opera/defaults/pluginpath.ini \ |
191 |
-e "s|/usr/lib32|${OPREFIX}|g" \ |
192 |
-e '/netscape/{s|[0-1]|2|g}' \ |
193 |
|| die "sed pluginpath.ini failed" |
194 |
|
195 |
# Remove unwanted linguas |
196 |
LNGDIR="share/${PN}/locale" |
197 |
einfo "Keeping these locales (linguas): ${LINGUAS}." |
198 |
for LINGUA in ${O_LINGUAS}; do |
199 |
if ! use linguas_${LINGUA/-/_}; then |
200 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
201 |
rm -r "${LINGUA}" |
202 |
fi |
203 |
done |
204 |
|
205 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
206 |
if use elibc_FreeBSD; then |
207 |
scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \ |
208 |
while read i; do |
209 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
210 |
then |
211 |
export SANITY_CHECK_LIBZ_FAILED=1 |
212 |
break |
213 |
fi |
214 |
sed -i \ |
215 |
"$i" \ |
216 |
-e 's/libz\.so\.3/libz.so.1/g' |
217 |
done |
218 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
219 |
fi |
220 |
} |
221 |
|
222 |
src_install() { |
223 |
# We install into usr instead of opt as Opera does not support the latter |
224 |
dodir /usr |
225 |
mv lib/ "${D}/${OPREFIX}" || die "mv lib/ failed" |
226 |
mv share/ "${D}/usr/" || die "mv share/ failed" |
227 |
|
228 |
# Install startup scripts |
229 |
dobin ${PN} ${PN}-widget-manager || die "dobin failed" |
230 |
|
231 |
# Stop revdep-rebuild from checking opera binaries |
232 |
dodir /etc/revdep-rebuild |
233 |
echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera |
234 |
} |
235 |
|
236 |
pkg_postinst() { |
237 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
238 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
239 |
elog "file chooser at /usr/share/opera/locale/, then enter the" |
240 |
elog "directory for the language you want and [Open] the .lng file." |
241 |
|
242 |
if use elibc_FreeBSD; then |
243 |
elog |
244 |
elog "To improve shared memory usage please set:" |
245 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
246 |
fi |
247 |
} |