1 |
jer 10/04/23 14:21:56 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-10.52_pre6325.ebuild |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2010/04/23/windows-and-mac-rc5-plus-unix-fixes>. |
7 |
(Portage version: 2.2_rc67/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.468 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.468&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.468&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.467&r2=1.468 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.467 |
20 |
retrieving revision 1.468 |
21 |
diff -u -r1.467 -r1.468 |
22 |
--- ChangeLog 22 Apr 2010 14:31:16 -0000 1.467 |
23 |
+++ ChangeLog 23 Apr 2010 14:21:56 -0000 1.468 |
24 |
@@ -1,6 +1,13 @@ |
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.467 2010/04/22 14:31:16 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.468 2010/04/23 14:21:56 jer Exp $ |
29 |
+ |
30 |
+*opera-10.52_pre6325 (23 Apr 2010) |
31 |
+ |
32 |
+ 23 Apr 2010; Jeroen Roovers <jer@g.o> +opera-10.52_pre6325.ebuild: |
33 |
+ Version bump |
34 |
+ <http://my.opera.com/desktopteam/blog/2010/04/23/windows-and-mac-rc5-plus- |
35 |
+ unix-fixes>. |
36 |
|
37 |
*opera-10.52_pre6322 (22 Apr 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 www-client/opera/opera-10.52_pre6325.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.52_pre6325.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.52_pre6325.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: opera-10.52_pre6325.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.52_pre6325.ebuild,v 1.1 2010/04/23 14:21:56 jer Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
OPREFIX="/usr/lib" |
56 |
|
57 |
inherit eutils |
58 |
|
59 |
DESCRIPTION="A standards-compliant graphical Web browser" |
60 |
HOMEPAGE="http://www.opera.com/" |
61 |
|
62 |
SLOT="0" |
63 |
LICENSE="OPERA-10.50 LGPL-2 LGPL-3" |
64 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
65 |
|
66 |
RESTRICT="mirror test" |
67 |
|
68 |
QA_DT_HASH="${OPREFIX}/${PN}/.*" |
69 |
QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" |
70 |
|
71 |
IUSE="elibc_FreeBSD" |
72 |
|
73 |
MY_LINGUAS=" |
74 |
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 |
75 |
ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk vi zh-CN zh-HK |
76 |
zh-TW |
77 |
" |
78 |
|
79 |
for MY_LINGUA in ${MY_LINGUAS}; do |
80 |
IUSE="${IUSE} linguas_${MY_LINGUA/-/_}" |
81 |
done |
82 |
|
83 |
O_U="http://snapshot.opera.com/unix/snapshot-${PV/*_pre}/" |
84 |
O_P="${P/_pre/-}" |
85 |
|
86 |
SRC_URI=" |
87 |
amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 ) |
88 |
ppc? ( ${O_U}${O_P}.ppc.linux.tar.bz2 ) |
89 |
x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 ) |
90 |
x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 ) |
91 |
" |
92 |
|
93 |
DEPEND=">=sys-apps/sed-4" |
94 |
|
95 |
RDEPEND=" |
96 |
=x11-libs/gtk+-2* |
97 |
dev-libs/atk |
98 |
dev-libs/expat |
99 |
dev-libs/glib |
100 |
media-libs/fontconfig |
101 |
media-libs/freetype |
102 |
media-libs/glitz |
103 |
media-plugins/gst-plugins-meta |
104 |
media-libs/libpng |
105 |
sys-apps/util-linux |
106 |
sys-libs/zlib |
107 |
virtual/opengl |
108 |
x11-libs/cairo |
109 |
x11-libs/libICE |
110 |
x11-libs/libSM |
111 |
x11-libs/libX11 |
112 |
x11-libs/libXau |
113 |
x11-libs/libXcomposite |
114 |
x11-libs/libXcursor |
115 |
x11-libs/libXdamage |
116 |
x11-libs/libXdmcp |
117 |
x11-libs/libXext |
118 |
x11-libs/libXfixes |
119 |
x11-libs/libXi |
120 |
x11-libs/libXmu |
121 |
x11-libs/libXrandr |
122 |
x11-libs/libXrender |
123 |
x11-libs/libXt |
124 |
x11-libs/libxcb |
125 |
x11-libs/pango |
126 |
x11-libs/pixman |
127 |
x11-libs/xcb-util |
128 |
" |
129 |
|
130 |
opera_linguas() { |
131 |
# Remove unwanted LINGUAS: |
132 |
local LINGUA |
133 |
local LNGDIR="${D}usr/share/${PN}/locale" |
134 |
einfo "Keeping these locales: ${LINGUAS}." |
135 |
for LINGUA in ${MY_LINGUAS}; do |
136 |
if ! use linguas_${LINGUA/-/_}; then |
137 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
138 |
rm -r "${LINGUA}" |
139 |
fi |
140 |
done |
141 |
} |
142 |
|
143 |
pkg_setup() { |
144 |
echo -e \ |
145 |
" ${GOOD}****************************************************${NORMAL}" |
146 |
elog "If you seek support, please file a bug report at" |
147 |
elog "https://bugs.gentoo.org and post the output of" |
148 |
elog " \`emerge --info =${CATEGORY}/${P}'" |
149 |
echo -e \ |
150 |
" ${GOOD}****************************************************${NORMAL}" |
151 |
} |
152 |
|
153 |
src_unpack() { |
154 |
unpack ${A} |
155 |
if [[ ! -d ${S} ]]; then |
156 |
cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" |
157 |
S="$(pwd)" |
158 |
einfo "Setting WORKDIR to ${S}" |
159 |
fi |
160 |
} |
161 |
|
162 |
src_install() { |
163 |
# Remove "license directory" (bug #315473) |
164 |
rm -rf "share/doc/opera" |
165 |
|
166 |
# We install into usr instead of opt as Opera does not support the latter |
167 |
dodir /usr |
168 |
mv lib/ share/ "${D}"/usr/ || die "mv lib/ share/ failed" |
169 |
|
170 |
# Unzip the man pages before sedding |
171 |
gunzip "${D}"/usr/share/man/man1/* || die "gunzip failed" |
172 |
|
173 |
# Replace PREFIX and SUFFIX in various files |
174 |
sed -i \ |
175 |
-e "s:@@{PREFIX}:/usr:g" \ |
176 |
-e "s:@@{SUFFIX}::g" \ |
177 |
-e "s:@@{_SUFFIX}::g" \ |
178 |
-e "s:@@{USUFFIX}::g" \ |
179 |
"${D}"/usr/share/mime/packages/opera-widget.xml \ |
180 |
"${D}"/usr/share/man/man1/* \ |
181 |
"${D}"/usr/share/applications/opera-browser.desktop \ |
182 |
"${D}"/usr/share/applications/opera-widget-manager.desktop || die "sed failed" |
183 |
|
184 |
# Install startup script |
185 |
dobin ${PN}-widget-manager "${FILESDIR}"/opera || die "dobin failed" |
186 |
|
187 |
# Stop revdep-rebuild from checking opera binaries |
188 |
dodir /etc/revdep-rebuild |
189 |
echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera |
190 |
|
191 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
192 |
if use elibc_FreeBSD; then |
193 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"${OPREFIX}/${PN}/ | \ |
194 |
while read i; do |
195 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
196 |
then |
197 |
export SANITY_CHECK_LIBZ_FAILED=1 |
198 |
break |
199 |
fi |
200 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
201 |
done |
202 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
203 |
fi |
204 |
|
205 |
[[ -z MY_LINGUAS ]] || opera_linguas |
206 |
} |
207 |
|
208 |
pkg_postinst() { |
209 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
210 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
211 |
elog "file chooser at /usr/share/opera/locale/, then enter the" |
212 |
elog "directory for the language you want and [Open] the .lng file." |
213 |
|
214 |
if use elibc_FreeBSD; then |
215 |
elog |
216 |
elog "To improve shared memory usage please set:" |
217 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
218 |
fi |
219 |
} |