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