1 |
jer 10/05/31 14:32:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-10.60_pre6344.ebuild |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2010/05/31/opera-10-60-alpha-1>. |
7 |
(Portage version: 2.2_rc67/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.483 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.483&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?rev=1.483&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/ChangeLog?r1=1.482&r2=1.483 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.482 |
20 |
retrieving revision 1.483 |
21 |
diff -u -r1.482 -r1.483 |
22 |
--- ChangeLog 26 May 2010 20:27:42 -0000 1.482 |
23 |
+++ ChangeLog 31 May 2010 14:32:43 -0000 1.483 |
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.482 2010/05/26 20:27:42 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.483 2010/05/31 14:32:43 jer Exp $ |
29 |
+ |
30 |
+*opera-10.60_pre6344 (31 May 2010) |
31 |
+ |
32 |
+ 31 May 2010; Jeroen Roovers <jer@g.o> +opera-10.60_pre6344.ebuild: |
33 |
+ Version bump |
34 |
+ <http://my.opera.com/desktopteam/blog/2010/05/31/opera-10-60-alpha-1>. |
35 |
|
36 |
*opera-10.54_pre6340-r1 (26 May 2010) |
37 |
*opera-10.53_pre6330-r2 (26 May 2010) |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/opera/opera-10.60_pre6344.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.60_pre6344.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera/opera-10.60_pre6344.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: opera-10.60_pre6344.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.60_pre6344.ebuild,v 1.1 2010/05/31 14:32:43 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" |
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 |
MY_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 MY_LINGUA in ${MY_LINGUAS}; do |
78 |
IUSE="${IUSE} linguas_${MY_LINGUA/-/_}" |
79 |
done |
80 |
|
81 |
O_U="http://snapshot.opera.com/unix/10.60a1/" |
82 |
O_P="${P/_pre/-}" |
83 |
|
84 |
SRC_URI=" |
85 |
amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 ) |
86 |
ppc? ( ${O_U}${O_P}.ppc.linux.tar.bz2 ) |
87 |
x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 ) |
88 |
x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 ) |
89 |
" |
90 |
|
91 |
DEPEND=">=sys-apps/sed-4" |
92 |
|
93 |
RDEPEND=" |
94 |
gtk? ( |
95 |
=x11-libs/gtk+-2* |
96 |
dev-libs/atk |
97 |
dev-libs/glib |
98 |
media-libs/glitz |
99 |
media-libs/libpng |
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 |
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 |
opera_linguas() { |
134 |
# Remove unwanted LINGUAS: |
135 |
local LINGUA |
136 |
local LNGDIR="${D}usr/share/${PN}/locale" |
137 |
einfo "Keeping these locales: ${LINGUAS}." |
138 |
for LINGUA in ${MY_LINGUAS}; do |
139 |
if ! use linguas_${LINGUA/-/_}; then |
140 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
141 |
rm -r "${LINGUA}" |
142 |
fi |
143 |
done |
144 |
} |
145 |
|
146 |
pkg_setup() { |
147 |
echo -e \ |
148 |
" ${GOOD}****************************************************${NORMAL}" |
149 |
elog "If you seek support, please file a bug report at" |
150 |
elog "https://bugs.gentoo.org and post the output of" |
151 |
elog " \`emerge --info =${CATEGORY}/${P}'" |
152 |
echo -e \ |
153 |
" ${GOOD}****************************************************${NORMAL}" |
154 |
} |
155 |
|
156 |
src_unpack() { |
157 |
unpack ${A} |
158 |
if [[ ! -d ${S} ]]; then |
159 |
cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" |
160 |
S="$(pwd)" |
161 |
einfo "Setting WORKDIR to ${S}" |
162 |
fi |
163 |
} |
164 |
|
165 |
src_install() { |
166 |
# Remove "license directory" (bug #315473) |
167 |
rm -rf "share/doc/opera" |
168 |
|
169 |
# We install into usr instead of opt as Opera does not support the latter |
170 |
dodir /usr |
171 |
mv lib/ "${D}/${OPREFIX}" || die "mv lib/ failed" |
172 |
mv share/ "${D}/usr/" || die "mv share/ failed" |
173 |
|
174 |
# Unzip the man pages before sedding |
175 |
gunzip "${D}"/usr/share/man/man1/* || die "gunzip failed" |
176 |
|
177 |
# Replace PREFIX and SUFFIX in various files |
178 |
sed -i \ |
179 |
-e "s:@@{PREFIX}:/usr:g" \ |
180 |
-e "s:@@{SUFFIX}::g" \ |
181 |
-e "s:@@{_SUFFIX}::g" \ |
182 |
-e "s:@@{USUFFIX}::g" \ |
183 |
"${D}"/usr/share/mime/packages/opera-widget.xml \ |
184 |
"${D}"/usr/share/man/man1/* \ |
185 |
"${D}"/usr/share/applications/opera-browser.desktop \ |
186 |
"${D}"/usr/share/applications/opera-widget-manager.desktop || die "sed failed" |
187 |
|
188 |
# Sed libdir in opera script |
189 |
sed "${FILESDIR}"/opera \ |
190 |
-e "s|OPERA_LIBDIR|${OPREFIX}|g" > opera \ |
191 |
|| die "sed opera script failed" |
192 |
|
193 |
# Sed libdir in defaults/pluginpath.ini |
194 |
sed -i \ |
195 |
-e "s|/usr/lib32|${OPREFIX}|g" \ |
196 |
"${D}"/usr/share/opera/defaults/pluginpath.ini \ |
197 |
|| die "sed pluginpath.ini failed" |
198 |
|
199 |
# Install startup scripts |
200 |
dobin ${PN} ${PN}-widget-manager || die "dobin failed" |
201 |
|
202 |
# Stop revdep-rebuild from checking opera binaries |
203 |
dodir /etc/revdep-rebuild |
204 |
echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera |
205 |
|
206 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
207 |
if use elibc_FreeBSD; then |
208 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"${OPREFIX}/${PN}/ | \ |
209 |
while read i; do |
210 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
211 |
then |
212 |
export SANITY_CHECK_LIBZ_FAILED=1 |
213 |
break |
214 |
fi |
215 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
216 |
done |
217 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
218 |
fi |
219 |
|
220 |
[[ -z MY_LINGUAS ]] || opera_linguas |
221 |
} |
222 |
|
223 |
pkg_postinst() { |
224 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
225 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
226 |
elog "file chooser at /usr/share/opera/locale/, then enter the" |
227 |
elog "directory for the language you want and [Open] the .lng file." |
228 |
|
229 |
if use elibc_FreeBSD; then |
230 |
elog |
231 |
elog "To improve shared memory usage please set:" |
232 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
233 |
fi |
234 |
} |