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