1 |
jer 11/06/01 14:43:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-next-11.50.1031.ebuild |
5 |
Log: |
6 |
http://my.opera.com/desktopteam/blog/2011/06/01/a-couple-of-improvements-since-the-beta |
7 |
|
8 |
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.13 www-client/opera-next/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?rev=1.13&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?rev=1.13&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?r1=1.12&r2=1.13 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v |
20 |
retrieving revision 1.12 |
21 |
retrieving revision 1.13 |
22 |
diff -u -r1.12 -r1.13 |
23 |
--- ChangeLog 31 May 2011 07:17:30 -0000 1.12 |
24 |
+++ ChangeLog 1 Jun 2011 14:43:49 -0000 1.13 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for www-client/opera-next |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.12 2011/05/31 07:17:30 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.13 2011/06/01 14:43:49 jer Exp $ |
30 |
+ |
31 |
+*opera-next-11.50.1031 (01 Jun 2011) |
32 |
+ |
33 |
+ 01 Jun 2011; Jeroen Roovers <jer@g.o> +opera-next-11.50.1031.ebuild: |
34 |
+ http://my.opera.com/desktopteam/blog/2011/06/01/a-couple-of-improvements-sinc |
35 |
+ e-the-beta |
36 |
|
37 |
31 May 2011; Jeroen Roovers <jer@g.o> opera-next-11.50.1027.ebuild: |
38 |
Changed "opera" to "PN" in a comment. |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-client/opera-next/opera-next-11.50.1031.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-11.50.1031.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-11.50.1031.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: opera-next-11.50.1031.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/opera-next-11.50.1031.ebuild,v 1.1 2011/06/01 14:43:49 jer Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
|
55 |
inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator |
56 |
|
57 |
DESCRIPTION="A fast and secure web browser and Internet suite" |
58 |
HOMEPAGE="http://www.opera.com/" |
59 |
|
60 |
SLOT="0" |
61 |
LICENSE="OPERA-11 LGPL-2 LGPL-3" |
62 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
63 |
IUSE="elibc_FreeBSD gtk kde +gstreamer" |
64 |
|
65 |
O_V="$(get_version_component_range 1-2)" # Major version, i.e. 11.00 |
66 |
O_B="$(get_version_component_range 3)" # Build version, i.e. 1156 |
67 |
|
68 |
O_D="betaplus_${O_V}-${O_B}" |
69 |
O_P="${PN}-${O_V}-${O_B}" |
70 |
O_U="http://snapshot.opera.com/unix/" |
71 |
|
72 |
SRC_URI=" |
73 |
amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz ) |
74 |
x86? ( ${O_U}${O_D}/${O_P}.i386.linux.tar.xz ) |
75 |
x86-fbsd? ( ${O_U}${O_D}/${O_P}.i386.freebsd.tar.xz ) |
76 |
" |
77 |
|
78 |
OPREFIX="/usr/$(get_libdir)" |
79 |
|
80 |
QA_DT_HASH="${OPREFIX}/${PN}/.*" |
81 |
QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" |
82 |
|
83 |
O_LINGUAS=" |
84 |
af az be bg cs da de el en-GB es-ES es-LA et fi fr fr-CA fy gd hi hr hu id |
85 |
it ja ka ko lt me mk ms nb nl nn pl pt pt-BR ro ru sk sr sv ta te th tl tr |
86 |
uk uz vi zh-CN zh-TW |
87 |
" |
88 |
|
89 |
for O_LINGUA in ${O_LINGUAS}; do |
90 |
IUSE="${IUSE} linguas_${O_LINGUA/-/_}" |
91 |
done |
92 |
|
93 |
DEPEND=" |
94 |
>=sys-apps/sed-4 |
95 |
app-arch/xz-utils |
96 |
" |
97 |
GTKRDEPEND=" |
98 |
dev-libs/atk |
99 |
dev-libs/glib:2 |
100 |
x11-libs/cairo |
101 |
x11-libs/gdk-pixbuf |
102 |
x11-libs/gtk+:2 |
103 |
x11-libs/pango |
104 |
x11-libs/pixman |
105 |
" |
106 |
KDERDEPEND=" |
107 |
kde-base/kdelibs |
108 |
x11-libs/qt-core |
109 |
x11-libs/qt-gui |
110 |
" |
111 |
GSTRDEPEND=" |
112 |
dev-libs/glib |
113 |
dev-libs/libxml2 |
114 |
media-plugins/gst-plugins-meta |
115 |
media-libs/gstreamer |
116 |
" |
117 |
RDEPEND=" |
118 |
media-libs/fontconfig |
119 |
media-libs/freetype |
120 |
sys-apps/util-linux |
121 |
sys-libs/zlib |
122 |
virtual/opengl |
123 |
x11-libs/libICE |
124 |
x11-libs/libSM |
125 |
x11-libs/libX11 |
126 |
x11-libs/libXext |
127 |
x11-libs/libXft |
128 |
x11-libs/libXrender |
129 |
gtk? ( ${GTKRDEPEND} ) |
130 |
kde? ( ${KDERDEPEND} ) |
131 |
gstreamer? ( ${GSTRDEPEND} ) |
132 |
" |
133 |
|
134 |
pkg_setup() { |
135 |
echo -e \ |
136 |
" ${GOOD}****************************************************${NORMAL}" |
137 |
elog "If you seek support, please file a bug report at" |
138 |
elog "https://bugs.gentoo.org and post the output of" |
139 |
elog " \`emerge --info =${CATEGORY}/${P}'" |
140 |
echo -e \ |
141 |
" ${GOOD}****************************************************${NORMAL}" |
142 |
} |
143 |
|
144 |
src_unpack() { |
145 |
unpack ${A} |
146 |
mv -v ${PN}* "${S}" || die |
147 |
} |
148 |
|
149 |
src_prepare() { |
150 |
# Remove unwanted linguas |
151 |
LNGDIR="share/${PN}/locale" |
152 |
einfo "Keeping these locales (linguas): ${LINGUAS}." |
153 |
for LINGUA in ${O_LINGUAS}; do |
154 |
if ! use linguas_${LINGUA/-/_}; then |
155 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
156 |
rm -r "${LINGUA}" || die "The list of linguas needs to be fixed" |
157 |
fi |
158 |
done |
159 |
|
160 |
# Remove doc directory but keep the LICENSE under another name (bug #315473) |
161 |
mv share/doc/${PN}/LICENSE share/${PN}/defaults/license.txt |
162 |
rm -rf share/doc |
163 |
for locale in share/${PN}/locale/*; do |
164 |
rm -f "${locale}/license.txt" |
165 |
ln -sn /usr/share/${PN}/defaults/license.txt "${locale}/license.txt" \ |
166 |
|| die "ln -sn license.txt" |
167 |
done |
168 |
|
169 |
# Remove package directory |
170 |
rm -rf share/${PN}/package |
171 |
|
172 |
# Leave libopera*.so only if the user chooses |
173 |
if ! use gtk; then |
174 |
rm lib/${PN}/liboperagtk.so || die "rm liboperagtk.so failed" |
175 |
fi |
176 |
if ! use kde; then |
177 |
rm lib/${PN}/liboperakde4.so || die "rm liboperakde4.so failed" |
178 |
fi |
179 |
|
180 |
# Unzip the man pages before sedding |
181 |
gunzip share/man/man1/* || die "gunzip failed" |
182 |
|
183 |
# Replace PREFIX, SUFFIX and PN in various files |
184 |
sed -i \ |
185 |
-e "s:@@{PREFIX}:/usr:g" \ |
186 |
-e "s:@@{SUFFIX}::g" \ |
187 |
-e "s:@@{_SUFFIX}::g" \ |
188 |
-e "s:@@{USUFFIX}::g" \ |
189 |
-e "s:opera:${PN}:g" \ |
190 |
share/man/man1/* \ |
191 |
share/applications/${PN}-browser.desktop \ |
192 |
|| die "sed failed" |
193 |
|
194 |
# Create /usr/bin/opera wrapper |
195 |
echo '#!/bin/sh' > ${PN} |
196 |
echo 'export OPERA_DIR=/usr/share/'"${PN}" >> ${PN} |
197 |
echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \ |
198 |
>> ${PN} |
199 |
echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN} |
200 |
|
201 |
# Fix libdir in defaults/pluginpath.ini |
202 |
sed -i \ |
203 |
share/${PN}/defaults/pluginpath.ini \ |
204 |
-e "s|/usr/lib32|${OPREFIX}|g" \ |
205 |
-e '/netscape/{s|[0-1]|2|g}' \ |
206 |
|| die "sed pluginpath.ini failed" |
207 |
|
208 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
209 |
if use elibc_FreeBSD; then |
210 |
scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \ |
211 |
while read i; do |
212 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
213 |
then |
214 |
export SANITY_CHECK_LIBZ_FAILED=1 |
215 |
break |
216 |
fi |
217 |
sed -i \ |
218 |
"$i" \ |
219 |
-e 's/libz\.so\.3/libz.so.1/g' |
220 |
done |
221 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] \ |
222 |
&& die "failed to change libz.so.3 to libz.so.1" |
223 |
fi |
224 |
} |
225 |
|
226 |
src_install() { |
227 |
# We install into usr instead of opt as Opera does not support the latter |
228 |
dodir /usr |
229 |
mv lib/ "${D}/${OPREFIX}" || die "mv lib/ failed" |
230 |
mv share/ "${D}/usr/" || die "mv share/ failed" |
231 |
|
232 |
# Install startup scripts |
233 |
dobin ${PN} || die "dobin failed" |
234 |
|
235 |
# Stop revdep-rebuild from checking opera binaries |
236 |
dodir /etc/revdep-rebuild |
237 |
echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" \ |
238 |
> "${D}"/etc/revdep-rebuild/90${PN} |
239 |
|
240 |
# Set PaX markings for hardened/PaX (bug #344267) |
241 |
pax-mark m \ |
242 |
"${D}/${OPREFIX}/${PN}/${PN}" \ |
243 |
"${D}/${OPREFIX}/${PN}/operaplugincleaner" \ |
244 |
"${D}/${OPREFIX}/${PN}/operapluginwrapper" |
245 |
} |
246 |
|
247 |
pkg_preinst() { |
248 |
gnome2_icon_savelist |
249 |
} |
250 |
|
251 |
pkg_postinst() { |
252 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
253 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
254 |
elog "file chooser at /usr/share/${PN}/locale/, then enter the" |
255 |
elog "directory for the language you want and [Open] the .lng file." |
256 |
|
257 |
if use elibc_FreeBSD; then |
258 |
elog |
259 |
elog "To improve shared memory usage please set:" |
260 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
261 |
fi |
262 |
|
263 |
# Update desktop file database and gtk icon cache (bug #334993) |
264 |
gnome2_icon_cache_update |
265 |
fdo-mime_desktop_database_update |
266 |
} |
267 |
|
268 |
pkg_postrm() { |
269 |
# Update desktop file database and gtk icon cache (bug #334993) |
270 |
gnome2_icon_cache_update |
271 |
fdo-mime_desktop_database_update |
272 |
} |