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