1 |
tgurr 11/02/25 21:04:41 |
2 |
|
3 |
Modified: ChangeLog acroread-9.4.1.ebuild |
4 |
Added: acroread-9.4.2.ebuild |
5 |
Removed: acroread-9.4.0.ebuild |
6 |
Log: |
7 |
Version bump wrt security bug #354211, remove old. |
8 |
|
9 |
(Portage version: 2.2.0_alpha24/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.162 app-text/acroread/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/ChangeLog?rev=1.162&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/ChangeLog?rev=1.162&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/ChangeLog?r1=1.161&r2=1.162 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v |
21 |
retrieving revision 1.161 |
22 |
retrieving revision 1.162 |
23 |
diff -u -r1.161 -r1.162 |
24 |
--- ChangeLog 9 Dec 2010 11:53:46 -0000 1.161 |
25 |
+++ ChangeLog 25 Feb 2011 21:04:40 -0000 1.162 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for app-text/acroread |
28 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.161 2010/12/09 11:53:46 hwoarang Exp $ |
30 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.162 2011/02/25 21:04:40 tgurr Exp $ |
32 |
+ |
33 |
+*acroread-9.4.2 (25 Feb 2011) |
34 |
+ |
35 |
+ 25 Feb 2011; Timo Gurr <tgurr@g.o> -acroread-9.4.0.ebuild, |
36 |
+ +acroread-9.4.2.ebuild: |
37 |
+ Version bump wrt security bug #354211, remove old. |
38 |
|
39 |
09 Dec 2010; Markos Chandras <hwoarang@g.o> acroread-9.4.1.ebuild: |
40 |
Stable on amd64 wrt bug #343091 |
41 |
|
42 |
|
43 |
|
44 |
1.4 app-text/acroread/acroread-9.4.1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/acroread-9.4.1.ebuild?rev=1.4&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/acroread-9.4.1.ebuild?rev=1.4&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/acroread-9.4.1.ebuild?r1=1.3&r2=1.4 |
49 |
|
50 |
Index: acroread-9.4.1.ebuild |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.1.ebuild,v |
53 |
retrieving revision 1.3 |
54 |
retrieving revision 1.4 |
55 |
diff -u -r1.3 -r1.4 |
56 |
--- acroread-9.4.1.ebuild 9 Dec 2010 11:53:46 -0000 1.3 |
57 |
+++ acroread-9.4.1.ebuild 25 Feb 2011 21:04:41 -0000 1.4 |
58 |
@@ -1,6 +1,6 @@ |
59 |
-# Copyright 1999-2010 Gentoo Foundation |
60 |
+# Copyright 1999-2011 Gentoo Foundation |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.1.ebuild,v 1.3 2010/12/09 11:53:46 hwoarang Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.1.ebuild,v 1.4 2011/02/25 21:04:41 tgurr Exp $ |
64 |
|
65 |
inherit eutils gnome2-utils nsplugins |
66 |
|
67 |
|
68 |
|
69 |
|
70 |
1.1 app-text/acroread/acroread-9.4.2.ebuild |
71 |
|
72 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/acroread-9.4.2.ebuild?rev=1.1&view=markup |
73 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/acroread-9.4.2.ebuild?rev=1.1&content-type=text/plain |
74 |
|
75 |
Index: acroread-9.4.2.ebuild |
76 |
=================================================================== |
77 |
# Copyright 1999-2011 Gentoo Foundation |
78 |
# Distributed under the terms of the GNU General Public License v2 |
79 |
# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.2.ebuild,v 1.1 2011/02/25 21:04:41 tgurr Exp $ |
80 |
|
81 |
inherit eutils gnome2-utils nsplugins |
82 |
|
83 |
DESCRIPTION="Adobe's PDF reader" |
84 |
HOMEPAGE="http://www.adobe.com/products/reader/" |
85 |
IUSE="cups ldap minimal nsplugin" |
86 |
|
87 |
SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${PV}" |
88 |
SRC_FOOT=".tar.bz2" |
89 |
|
90 |
# languages not available yet: it:ita es:esp pt:ptb sv:sve zh_CN:chs zh_TW:cht fi:suo nb:nor nl:nld ko:kor da:dan |
91 |
LINGUA_LIST="de:deu en:enu fr:fra ja:jpn" |
92 |
DEFAULT_URI="${SRC_HEAD}/enu/AdbeRdr${PV}-1_i486linux_enu${SRC_FOOT}" |
93 |
for ll in ${LINGUA_LIST} ; do |
94 |
iuse_l="linguas_${ll/:*}" |
95 |
src_l=${ll/*:} |
96 |
IUSE="${IUSE} ${iuse_l}" |
97 |
DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )" |
98 |
SRC_URI="${SRC_URI} |
99 |
${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdbeRdr${PV}-1_i486linux_${src_l}${SRC_FOOT} )" |
100 |
done |
101 |
SRC_URI="${SRC_URI} |
102 |
${DEFAULT_URI}" |
103 |
|
104 |
LICENSE="Adobe" |
105 |
SLOT="0" |
106 |
KEYWORDS="-* ~amd64 ~x86" |
107 |
RESTRICT="strip mirror" |
108 |
|
109 |
# mozilla-firefox-bin won't work because it doesn't have gtkembedmoz.so |
110 |
RDEPEND="media-libs/fontconfig |
111 |
x86? ( =dev-libs/openssl-0.9.8* ) |
112 |
cups? ( net-print/cups ) |
113 |
x86? ( >=x11-libs/gtk+-2.0 |
114 |
ldap? ( net-nds/openldap ) |
115 |
!minimal? ( || ( net-libs/xulrunner |
116 |
www-client/mozilla-firefox |
117 |
www-client/seamonkey ) ) ) |
118 |
amd64? ( app-emulation/emul-linux-x86-gtklibs )" |
119 |
|
120 |
QA_EXECSTACK="opt/Adobe/Reader9/Reader/intellinux/bin/acroread |
121 |
opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0 |
122 |
opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so |
123 |
opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8 |
124 |
opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api" |
125 |
|
126 |
INSTALLDIR=/opt |
127 |
|
128 |
S="${WORKDIR}/AdobeReader" |
129 |
|
130 |
# Actually, ahv segfaults when run standalone so presumably |
131 |
# it isn't intended for direct use - so the only launcher is |
132 |
# acroread after all. |
133 |
LAUNCHERS="Adobe/Reader9/bin/acroread" |
134 |
# Adobe/HelpViewer/1.0/intellinux/bin/ahv" |
135 |
|
136 |
pkg_setup() { |
137 |
# x86 binary package, ABI=x86 |
138 |
has_multilib_profile && ABI="x86" |
139 |
} |
140 |
|
141 |
# Determine lingua from filename |
142 |
acroread_get_ll() { |
143 |
local f_src_l ll lingua src_l |
144 |
f_src_l=${1/${SRC_FOOT}} |
145 |
f_src_l=${f_src_l/*_} |
146 |
for ll in ${LINGUA_LIST} ; do |
147 |
lingua=${ll/:*} |
148 |
src_l=${ll/*:} |
149 |
if [[ ${src_l} == ${f_src_l} ]] ; then |
150 |
echo ${lingua} |
151 |
return |
152 |
fi |
153 |
done |
154 |
die "Failed to match file $1 to a LINGUA; please report." |
155 |
} |
156 |
|
157 |
src_unpack() { |
158 |
local ll linguas fl launcher |
159 |
# Unpack all into the same place; overwrite common files. |
160 |
fl="" |
161 |
for pkg in ${A} ; do |
162 |
cd "${WORKDIR}" |
163 |
unpack ${pkg} |
164 |
cd "${S}" |
165 |
tar xf ILINXR.TAR || die "Failed to unpack ILINXR.TAR." |
166 |
tar xf COMMON.TAR || die "Failed to unpack COMMON.TAR." |
167 |
ll=$(acroread_get_ll ${pkg}) |
168 |
for launcher in ${LAUNCHERS} ; do |
169 |
mv ${launcher} ${launcher}.${ll} |
170 |
done |
171 |
if [[ -z ${fl} ]] ; then |
172 |
fl=${ll} |
173 |
linguas="${ll}" |
174 |
else |
175 |
linguas="${linguas} ${ll}" |
176 |
fi |
177 |
done |
178 |
if [[ ${linguas} == ${fl} ]] ; then |
179 |
# Only one lingua selected - skip building the wrappers |
180 |
for launcher in ${LAUNCHERS} ; do |
181 |
mv ${launcher}.${fl} ${launcher} || |
182 |
die "Failed to put ${launcher}.${fl} back to ${launcher}; please report." |
183 |
done |
184 |
else |
185 |
# Build wrappers. Launch the acroread for the environment variable |
186 |
# LANG (matched with a trailing * so that for example 'de_DE' matches |
187 |
# 'de', 'en_GB' matches 'en' etc). |
188 |
# |
189 |
# HelpViewer is new - We don't know if Adobe are likely to |
190 |
# internationalize it or not. |
191 |
for launcher in ${LAUNCHERS} ; do |
192 |
cat > ${launcher} <<-EOF |
193 |
#!/bin/bash |
194 |
# Copyright 1999-2009 Gentoo Foundation |
195 |
# Distributed under the terms of the GNU General Public License v2 |
196 |
# |
197 |
# Automatically generated by ${CATEGORY}/${PF} |
198 |
|
199 |
# Exec the acroread script for the language chosen in |
200 |
# LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc) |
201 |
L=\${LC_ALL} |
202 |
L=\${L:-\${LC_MESSAGES}} |
203 |
L=\${L:-\${LANG}} |
204 |
case \${L} in |
205 |
EOF |
206 |
for ll in ${linguas} ; do |
207 |
echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher} |
208 |
done |
209 |
# default to English (in particular for LANG=C) |
210 |
cat >> ${launcher} <<-EOF |
211 |
*) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";; |
212 |
esac |
213 |
EOF |
214 |
chmod 755 ${launcher} |
215 |
done |
216 |
fi |
217 |
|
218 |
# remove cruft |
219 |
rm "${S}"/Adobe/Reader9/bin/UNINSTALL |
220 |
rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin |
221 |
rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop |
222 |
|
223 |
# replace some configuration sections |
224 |
for binfile in "${S}"/Adobe/Reader9/bin/* ; do |
225 |
sed -i -e '/Font-config/,+9d' \ |
226 |
-e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \ |
227 |
"${binfile}" || die "sed configuration settings failed." |
228 |
done |
229 |
} |
230 |
|
231 |
src_install() { |
232 |
# Install desktop files |
233 |
domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop || die "Installing desktop files failed." |
234 |
|
235 |
# Install commonly used icon sizes |
236 |
for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do |
237 |
insinto /usr/share/icons/hicolor/${res}/apps |
238 |
doins Adobe/Reader9/Resource/Icons/${res}/* || die "Installing icons failed." |
239 |
done |
240 |
|
241 |
dodir /opt || die "Creating directory failed." |
242 |
chown -R --dereference -L root:0 Adobe |
243 |
cp -dpR Adobe "${D}"opt/ |
244 |
|
245 |
doman Adobe/Reader9/Resource/Shell/acroread.1.gz || die "Installing manpage failed." |
246 |
|
247 |
if use nsplugin ; then |
248 |
exeinto /opt/netscape/plugins |
249 |
doexe Adobe/Reader9/Browser/intellinux/nppdf.so || die "Installing the browser plugin failed." |
250 |
inst_plugin /opt/netscape/plugins/nppdf.so |
251 |
fi |
252 |
|
253 |
dodir /opt/bin || die "Creating directory failed." |
254 |
for launcher in ${LAUNCHERS} ; do |
255 |
dosym /opt/${launcher} /opt/bin/${launcher/*bin\/} || die "Installing launcher symlinks failed." |
256 |
done |
257 |
|
258 |
# We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since |
259 |
# they don't install a configuration file for libgtkembedmoz.so |
260 |
# detection in /etc/gre.d/ like xulrunner does. |
261 |
if ! use minimal ; then |
262 |
if use x86 ; then |
263 |
for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do |
264 |
if [[ -f ${lib}/libgtkembedmoz.so ]] ; then |
265 |
echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config |
266 |
elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on" |
267 |
elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config." |
268 |
break # don't search any more libraries |
269 |
fi |
270 |
done |
271 |
fi |
272 |
fi |
273 |
} |
274 |
|
275 |
pkg_preinst() { |
276 |
gnome2_icon_savelist |
277 |
} |
278 |
|
279 |
pkg_postinst () { |
280 |
local ll lc |
281 |
lc=0 |
282 |
for ll in ${LINGUA_LIST} ; do |
283 |
use linguas_${ll/:*} && (( lc = ${lc} + 1 )) |
284 |
done |
285 |
if [[ ${lc} > 1 ]] ; then |
286 |
echo |
287 |
elog "Multiple languages have been installed, selected via a wrapper script." |
288 |
elog "The language is selected according to the LANG environment variable" |
289 |
elog "(defaulting to English if LANG is not set, or no matching language" |
290 |
elog "version is installed). Users may need to remove their preferences in" |
291 |
elog "~/.adobe to switch languages." |
292 |
echo |
293 |
fi |
294 |
|
295 |
if use minimal ; then |
296 |
echo |
297 |
ewarn "If you want html support and/or view the Adobe Reader help you have" |
298 |
ewarn "to re-emerge acroread with USE=\"-minimal\"." |
299 |
echo |
300 |
fi |
301 |
|
302 |
if use nsplugin ; then |
303 |
echo |
304 |
elog "If you're running a 64bit browser you may also want to install" |
305 |
elog "\"www-plugins/nspluginwrapper\" to be able to use the Adobe Reader" |
306 |
elog "browser plugin." |
307 |
echo |
308 |
fi |
309 |
|
310 |
gnome2_icon_cache_update |
311 |
} |
312 |
|
313 |
pkg_postrm() { |
314 |
gnome2_icon_cache_update |
315 |
} |