1 |
jer 12/07/06 14:47:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-next-12.50.1497.ebuild |
5 |
Removed: opera-next-12.01.1473.ebuild |
6 |
Log: |
7 |
http://my.opera.com/desktopteam/blog/2012/07/06/marlin-1250-swim |
8 |
|
9 |
(Portage version: 2.2.0_alpha116/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.110 www-client/opera-next/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?rev=1.110&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?rev=1.110&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?r1=1.109&r2=1.110 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v |
21 |
retrieving revision 1.109 |
22 |
retrieving revision 1.110 |
23 |
diff -u -r1.109 -r1.110 |
24 |
--- ChangeLog 29 Jun 2012 04:40:35 -0000 1.109 |
25 |
+++ ChangeLog 6 Jul 2012 14:47:28 -0000 1.110 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-client/opera-next |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.109 2012/06/29 04:40:35 jer Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.110 2012/07/06 14:47:28 jer Exp $ |
31 |
+ |
32 |
+*opera-next-12.50.1497 (06 Jul 2012) |
33 |
+ |
34 |
+ 06 Jul 2012; Jeroen Roovers <jer@g.o> -opera-next-12.01.1473.ebuild, |
35 |
+ +opera-next-12.50.1497.ebuild: |
36 |
+ http://my.opera.com/desktopteam/blog/2012/07/06/marlin-1250-swim |
37 |
|
38 |
*opera-next-12.01.1491 (29 Jun 2012) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/opera-next/opera-next-12.50.1497.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-12.50.1497.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-12.50.1497.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: opera-next-12.50.1497.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/opera-next-12.50.1497.ebuild,v 1.1 2012/07/06 14:47:28 jer Exp $ |
53 |
|
54 |
EAPI="4" |
55 |
|
56 |
inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator |
57 |
|
58 |
DESCRIPTION="A fast and secure web browser and Internet suite" |
59 |
HOMEPAGE="http://www.opera.com/" |
60 |
|
61 |
SLOT="0" |
62 |
LICENSE="OPERA-11 LGPL-2 LGPL-3" |
63 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
64 |
IUSE="elibc_FreeBSD gtk kde +gstreamer multilib" |
65 |
|
66 |
O_V="$(get_version_component_range 1-2)" # Major version, i.e. 11.00 |
67 |
O_B="$(get_version_component_range 3)" # Build version, i.e. 1156 |
68 |
|
69 |
O_D="marlin_${O_V}-${O_B}" |
70 |
O_P="${PN}-${O_V}-${O_B}" |
71 |
O_U="http://snapshot.opera.com/unix/" |
72 |
|
73 |
SRC_URI=" |
74 |
amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz ) |
75 |
x86? ( ${O_U}${O_D}/${O_P}.i386.linux.tar.xz ) |
76 |
x86-fbsd? ( ${O_U}${O_D}/${O_P}.i386.freebsd.tar.xz ) |
77 |
" |
78 |
|
79 |
O_LINGUAS=" |
80 |
af ar az be bg bn cs da de el en-GB es-ES es-LA et fa fi fr fr-CA fy gd he |
81 |
hi hr hu id it ja ka kk ko lt me mk ms nb nl nn pa pl pt pt-BR ro ru sk sr |
82 |
sv sw ta te th tl tr uk ur uz vi zh-CN zh-TW zu |
83 |
" |
84 |
|
85 |
for O_LINGUA in ${O_LINGUAS}; do |
86 |
IUSE="${IUSE} linguas_${O_LINGUA/-/_}" |
87 |
done |
88 |
|
89 |
DEPEND=" |
90 |
>=sys-apps/sed-4 |
91 |
app-arch/xz-utils |
92 |
" |
93 |
GTKRDEPEND=" |
94 |
dev-libs/atk |
95 |
dev-libs/glib:2 |
96 |
x11-libs/cairo |
97 |
x11-libs/gdk-pixbuf |
98 |
gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) ) |
99 |
x11-libs/pango |
100 |
x11-libs/pixman |
101 |
" |
102 |
KDERDEPEND=" |
103 |
kde-base/kdelibs |
104 |
x11-libs/qt-core |
105 |
x11-libs/qt-gui |
106 |
" |
107 |
GSTRDEPEND=" |
108 |
dev-libs/glib:2 |
109 |
dev-libs/libxml2 |
110 |
media-libs/gst-plugins-base |
111 |
media-libs/gstreamer |
112 |
media-plugins/gst-plugins-meta |
113 |
" |
114 |
RDEPEND=" |
115 |
media-libs/fontconfig |
116 |
media-libs/freetype |
117 |
sys-apps/util-linux |
118 |
sys-libs/zlib |
119 |
virtual/opengl |
120 |
x11-libs/libICE |
121 |
x11-libs/libSM |
122 |
x11-libs/libX11 |
123 |
x11-libs/libXext |
124 |
x11-libs/libXft |
125 |
x11-libs/libXrender |
126 |
x11-libs/libXt |
127 |
gtk? ( ${GTKRDEPEND} ) |
128 |
kde? ( ${KDERDEPEND} ) |
129 |
gstreamer? ( ${GSTRDEPEND} ) |
130 |
" |
131 |
src_unpack() { |
132 |
unpack ${A} |
133 |
mv -v ${PN}* "${S}" || die |
134 |
} |
135 |
|
136 |
src_prepare() { |
137 |
export OPREFIX="/usr/$(get_libdir)" |
138 |
export QA_DT_HASH="${OPREFIX}/${PN}/.*" |
139 |
export QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" |
140 |
|
141 |
local LNGDIR="share/${PN}/locale" |
142 |
|
143 |
# Count linguas |
144 |
count() { echo ${#}; } |
145 |
local lingua_count=$(count ${O_LINGUAS} en) |
146 |
local locale_count=$(count ${LNGDIR}/*) |
147 |
[[ ${lingua_count} = ${locale_count} ]] \ |
148 |
|| die "Number of LINGUAS does not match number of locales" |
149 |
unset count |
150 |
|
151 |
# Remove unwanted linguas |
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 |
167 |
done |
168 |
|
169 |
# Remove package directory |
170 |
rm -rf share/${PN}/package |
171 |
|
172 |
# Optional libraries |
173 |
if ! use gtk; then |
174 |
rm lib/${PN}/liboperagtk2.so || die |
175 |
rm lib/${PN}/liboperagtk3.so || die |
176 |
fi |
177 |
if ! use kde; then |
178 |
rm lib/${PN}/liboperakde4.so || die |
179 |
fi |
180 |
if ! use gstreamer; then |
181 |
rm -r lib/${PN}/gstreamer || die |
182 |
fi |
183 |
if use amd64 && ! use multilib; then |
184 |
rm lib/${PN}/pluginwrapper/operapluginwrapper-ia32-linux || die |
185 |
fi |
186 |
|
187 |
# Unzip the man pages before sedding |
188 |
gunzip share/man/man1/* || die |
189 |
|
190 |
local OPERA_SUFFIX= OPERA__SUFFIX= OPERAU_SUFFIX= |
191 |
if [[ ${PN} = opera-next ]]; then |
192 |
OPERA_SUFFIX="-next" |
193 |
OPERA__SUFFIX=" Next" |
194 |
OPERA_USUFFIX="-NEXT" |
195 |
fi |
196 |
|
197 |
# Replace PREFIX, SUFFIX and PN in various files |
198 |
sed -i \ |
199 |
-e "s:@@{PREFIX}:/usr:g" \ |
200 |
-e "s:@@{SUFFIX}:${OPERA_SUFFIX}:g" \ |
201 |
-e "s:@@{_SUFFIX}:${OPERA__SUFFIX}:g" \ |
202 |
-e "s:@@{USUFFIX}:${OPERA_USUFFIX}:g" \ |
203 |
share/man/man1/* \ |
204 |
share/mime/packages/* \ |
205 |
share/applications/${PN}-*.desktop \ |
206 |
|| die |
207 |
|
208 |
# Create /usr/bin/opera wrapper |
209 |
echo '#!/bin/sh' > ${PN} |
210 |
echo 'export OPERA_DIR="/usr/share/'"${PN}"'"' >> ${PN} |
211 |
echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \ |
212 |
>> ${PN} |
213 |
echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN} |
214 |
|
215 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
216 |
if use elibc_FreeBSD; then |
217 |
scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \ |
218 |
while read i; do |
219 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
220 |
then |
221 |
export SANITY_CHECK_LIBZ_FAILED=1 |
222 |
break |
223 |
fi |
224 |
sed -i \ |
225 |
"$i" \ |
226 |
-e 's/libz\.so\.3/libz.so.1/g' |
227 |
done |
228 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die |
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 |
236 |
mv share/ "${D}/usr/" || die |
237 |
|
238 |
# Install startup scripts |
239 |
dobin ${PN} |
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 $( list-paxables $( find "${D}"/${OPREFIX}/${PN}/ ) ) |
248 |
} |
249 |
|
250 |
pkg_preinst() { |
251 |
gnome2_icon_savelist |
252 |
} |
253 |
|
254 |
pkg_postinst() { |
255 |
if use elibc_FreeBSD; then |
256 |
elog |
257 |
elog "To improve shared memory usage please set:" |
258 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
259 |
fi |
260 |
|
261 |
# Update desktop file database and gtk icon cache (bug #334993) |
262 |
gnome2_icon_cache_update |
263 |
fdo-mime_desktop_database_update |
264 |
} |
265 |
|
266 |
pkg_postrm() { |
267 |
# Update desktop file database and gtk icon cache (bug #334993) |
268 |
gnome2_icon_cache_update |
269 |
fdo-mime_desktop_database_update |
270 |
} |