Gentoo Archives: gentoo-commits

From: "Timo Gurr (tgurr)" <tgurr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/acroread: ChangeLog acroread-8.1.4.ebuild acroread-9.1.0.ebuild acroread-8.1.2-r3.ebuild
Date: Mon, 06 Apr 2009 22:25:44
Message-Id: E1LqxG9-0002UP-7v@stork.gentoo.org
1 tgurr 09/04/06 22:25:41
2
3 Modified: ChangeLog
4 Added: acroread-8.1.4.ebuild acroread-9.1.0.ebuild
5 Removed: acroread-8.1.2-r3.ebuild
6 Log:
7 Version bump wrt security bug #259992. Also incorporates suggestion from bug #253059, thanks to Keith Gable. Remove old.
8 (Portage version: 2.2_rc28/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.123 app-text/acroread/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/ChangeLog?rev=1.123&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/ChangeLog?rev=1.123&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/ChangeLog?r1=1.122&r2=1.123
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v
20 retrieving revision 1.122
21 retrieving revision 1.123
22 diff -u -r1.122 -r1.123
23 --- ChangeLog 8 Nov 2008 13:36:42 -0000 1.122
24 +++ ChangeLog 6 Apr 2009 22:25:41 -0000 1.123
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-text/acroread
27 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.122 2008/11/08 13:36:42 maekke Exp $
29 +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.123 2009/04/06 22:25:41 tgurr Exp $
31 +
32 +*acroread-9.1.0 (06 Apr 2009)
33 +*acroread-8.1.4 (06 Apr 2009)
34 +
35 + 06 Apr 2009; Timo Gurr <tgurr@g.o> -acroread-8.1.2-r3.ebuild,
36 + +acroread-8.1.4.ebuild, +acroread-9.1.0.ebuild:
37 + Version bump wrt security bug #259992. Also incorporates suggestion from
38 + bug #253059, thanks to Keith Gable. Remove old.
39
40 08 Nov 2008; Markus Meier <maekke@g.o> acroread-8.1.3.ebuild:
41 x86 stable, bug #225483
42
43
44
45 1.1 app-text/acroread/acroread-8.1.4.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/acroread-8.1.4.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/acroread-8.1.4.ebuild?rev=1.1&content-type=text/plain
49
50 Index: acroread-8.1.4.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-8.1.4.ebuild,v 1.1 2009/04/06 22:25:41 tgurr Exp $
55
56 inherit eutils gnome2-utils nsplugins
57
58 DESCRIPTION="Adobe's PDF reader"
59 HOMEPAGE="http://www.adobe.com/products/reader/"
60 IUSE="cups ldap minimal nsplugin"
61
62 SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/${PV}"
63 SRC_FOOT="-${PV}-1.i486.tar.bz2"
64
65 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"
66 DEFAULT_URI="${SRC_HEAD}/enu/AdobeReader_enu${SRC_FOOT}"
67 for ll in ${LINGUA_LIST} ; do
68 iuse_l="linguas_${ll/:*}"
69 src_l=${ll/*:}
70 IUSE="${IUSE} ${iuse_l}"
71 DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )"
72 SRC_URI="${SRC_URI}
73 ${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdobeReader_${src_l}${SRC_FOOT} )"
74 done
75 SRC_URI="${SRC_URI}
76 ${DEFAULT_URI}"
77
78 LICENSE="Adobe"
79 SLOT="0"
80 KEYWORDS="-* ~amd64 ~x86"
81 RESTRICT="strip mirror"
82
83 # mozilla-firefox-bin won't work because it doesn't have gtkembedmoz.so
84 RDEPEND="media-libs/fontconfig
85 cups? ( net-print/cups )
86 x86? ( >=x11-libs/gtk+-2.0
87 ldap? ( net-nds/openldap )
88 !minimal? ( || ( net-libs/xulrunner
89 net-libs/xulrunner-bin
90 www-client/mozilla-firefox
91 www-client/seamonkey
92 www-client/seamonkey-bin ) ) )
93 amd64? ( >=app-emulation/emul-linux-x86-baselibs-2.4.2
94 >=app-emulation/emul-linux-x86-gtklibs-2.0
95 !minimal? ( || ( net-libs/xulrunner-bin
96 www-client/seamonkey-bin ) ) )"
97 QA_TEXTRELS="opt/Adobe/Reader8/Reader/intellinux/plug_ins/PPKLite.api
98 opt/Adobe/Reader8/Browser/intellinux/nppdf.so
99 opt/netscape/plugins/nppdf.so"
100 QA_EXECSTACK="opt/Adobe/Reader8/Reader/intellinux/plug_ins/Annots.api
101 opt/Adobe/Reader8/Reader/intellinux/plug_ins/PPKLite.api
102 opt/Adobe/Reader8/Reader/intellinux/bin/acroread
103 opt/Adobe/Reader8/Reader/intellinux/bin/SynchronizerApp-binary
104 opt/Adobe/Reader8/Reader/intellinux/lib/libsccore.so
105 opt/Adobe/Reader8/Reader/intellinux/lib/libcrypto.so.0.9.7"
106
107 INSTALLDIR=/opt
108
109 S="${WORKDIR}/AdobeReader"
110
111 # Actually, ahv segfaults when run standalone so presumably
112 # it isn't intended for direct use - so the only launcher is
113 # acroread after all.
114 LAUNCHERS="Adobe/Reader8/bin/acroread"
115 # Adobe/HelpViewer/1.0/intellinux/bin/ahv"
116
117 pkg_setup() {
118 # x86 binary package, ABI=x86
119 has_multilib_profile && ABI="x86"
120 }
121
122 # Determine lingua from filename
123 acroread_get_ll() {
124 local f_src_l ll lingua src_l
125 f_src_l=${1/${SRC_FOOT}}
126 f_src_l=${f_src_l/*_}
127 for ll in ${LINGUA_LIST} ; do
128 lingua=${ll/:*}
129 src_l=${ll/*:}
130 if [[ ${src_l} == ${f_src_l} ]] ; then
131 echo ${lingua}
132 return
133 fi
134 done
135 die "Failed to match file $1 to a LINGUA; please report."
136 }
137
138 src_unpack() {
139 local ll linguas fl launcher
140 # Unpack all into the same place; overwrite common files.
141 fl=""
142 for pkg in ${A} ; do
143 cd "${WORKDIR}"
144 unpack ${pkg}
145 cd "${S}"
146 if [[ ${pkg} =~ ^AdobeReader_ ]] ; then
147 tar xf ILINXR.TAR ||
148 die "Failed to unpack ILINXR.TAR; is distfile corrupt?"
149 tar xf COMMON.TAR ||
150 die "Failed to unpack COMMON.TAR; is distfile corrupt?"
151 ll=$(acroread_get_ll ${pkg})
152 for launcher in ${LAUNCHERS} ; do
153 mv ${launcher} ${launcher}.${ll}
154 done
155 if [[ -z ${fl} ]] ; then
156 fl=${ll}
157 linguas="${ll}"
158 else
159 linguas="${linguas} ${ll}"
160 fi
161 fi
162 done
163 if [[ ${linguas} == ${fl} ]] ; then
164 # Only one lingua selected - skip building the wrappers
165 for launcher in ${LAUNCHERS} ; do
166 mv ${launcher}.${fl} ${launcher} ||
167 die "Failed to put ${launcher}.${fl} back to ${launcher}; please report."
168 done
169 else
170 # Build wrappers. Launch the acroread for the environment variable
171 # LANG (matched with a trailing * so that for example 'de_DE' matches
172 # 'de', 'en_GB' matches 'en' etc).
173 #
174 # HelpViewer is new - We don't know if Adobe are likely to
175 # internationalize it or not.
176 for launcher in ${LAUNCHERS} ; do
177 cat > ${launcher} <<-EOF
178 #!/bin/bash
179 # Copyright 1999-2009 Gentoo Foundation
180 # Distributed under the terms of the GNU General Public License v2
181 #
182 # Automatically generated by ${CATEGORY}/${PF}
183
184 # Exec the acroread script for the language chosen in
185 # LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc)
186 L=\${LC_ALL}
187 L=\${L:-\${LC_MESSAGES}}
188 L=\${L:-\${LANG}}
189 case \${L} in
190 EOF
191 for ll in ${linguas} ; do
192 echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher}
193 done
194 # default to English (in particular for LANG=C)
195 cat >> ${launcher} <<-EOF
196 *) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";;
197 esac
198 EOF
199 chmod 755 ${launcher}
200 done
201 fi
202
203 # remove cruft
204 rm "${S}"/Adobe/Reader8/bin/UNINSTALL
205 rm "${S}"/Adobe/Reader8/Resource/Support/vnd.*.desktop
206
207 # replace some configuration sections
208 for binfile in "${S}"/Adobe/Reader8/bin/* ; do
209 sed -i -e '/Font-config/,+10d' \
210 -e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \
211 "${binfile}" || die "sed failed"
212 done
213 }
214
215 src_install() {
216 # Install desktop files
217 domenu Adobe/Reader8/Resource/Support || die "Installing desktop files failed."
218
219 # Install commonly used icon sizes
220 for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do
221 insinto /usr/share/icons/hicolor/${res}/apps
222 doins Adobe/Reader8/Resource/Icons/${res}/* || die "Installing icons failed."
223 done
224
225 dodir /opt || die "Creating directoy failed."
226 chown -R --dereference -L root:0 Adobe
227 cp -dpR Adobe "${D}"opt/
228
229 # The Browser_Plugin_HowTo.txt is now in a subdirectory, which
230 # is named according to the language the user is using.
231 # Ie. for German, it is in a DEU directory. See bug #118015
232 dodoc Adobe/Reader8/Browser/HowTo/*/Browser_Plugin_HowTo.txt || die "Installing docs failed."
233
234 if use nsplugin ; then
235 exeinto /opt/netscape/plugins
236 doexe Adobe/Reader8/Browser/intellinux/nppdf.so || die "Installing the browser plugin failed."
237 inst_plugin /opt/netscape/plugins/nppdf.so
238 fi
239
240 dodir /opt/bin || die "Creating directory failed."
241 for launcher in ${LAUNCHERS} ; do
242 dosym /opt/${launcher} /opt/bin/${launcher/*bin\/} || die "Installing launcher symlinks failed."
243 done
244
245 # We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since
246 # they don't install a configuration file for libgtkembedmoz.so
247 # detection in /etc/gre.d/ like xulrunner does.
248 if ! use minimal ; then
249 if use x86 ; then
250 for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do
251 if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
252 echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader8/Reader/GlobalPrefs/mozilla_config
253 elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on"
254 elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader8/Reader/GlobalPrefs/mozilla_config."
255 break # don't search any more libraries
256 fi
257 done
258 fi
259 if use amd64 ; then
260 for lib in /opt/seamonkey ; do
261 if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
262 echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader8/Reader/GlobalPrefs/mozilla_config
263 elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on"
264 elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader8/Reader/GlobalPrefs/mozilla_config."
265 break # don't search any more libraries
266 fi
267 done
268 fi
269 fi
270 }
271
272 pkg_preinst() {
273 gnome2_icon_savelist
274 }
275
276 pkg_postinst () {
277 local ll lc
278 lc=0
279 for ll in ${LINGUA_LIST} ; do
280 use linguas_${ll/:*} && (( lc = ${lc} + 1 ))
281 done
282 if [[ ${lc} > 1 ]] ; then
283 echo
284 elog "Multiple languages have been installed, selected via a wrapper script."
285 elog "The language is selected according to the LANG environment variable"
286 elog "(defaulting to English if LANG is not set, or no matching language"
287 elog "version is installed). Users may need to remove their preferences in"
288 elog "~/.adobe to switch languages."
289 echo
290 fi
291
292 if use minimal ; then
293 echo
294 ewarn "If you want html support and/or view the Adobe Reader help you have"
295 ewarn "to re-emerge acroread with USE=\"-minimal\"."
296 echo
297 fi
298
299 if use nsplugin ; then
300 echo
301 elog "If you're running a 64bit browser you may also want to install"
302 elog "\"net-www/nspluginwrapper\" to be able to use the Adobe Reader browser plugin."
303 echo
304 fi
305
306 gnome2_icon_cache_update
307 }
308
309 pkg_postrm() {
310 gnome2_icon_cache_update
311 }
312
313
314
315 1.1 app-text/acroread/acroread-9.1.0.ebuild
316
317 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/acroread-9.1.0.ebuild?rev=1.1&view=markup
318 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/acroread-9.1.0.ebuild?rev=1.1&content-type=text/plain
319
320 Index: acroread-9.1.0.ebuild
321 ===================================================================
322 # Copyright 1999-2009 Gentoo Foundation
323 # Distributed under the terms of the GNU General Public License v2
324 # $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.1.0.ebuild,v 1.1 2009/04/06 22:25:41 tgurr Exp $
325
326 inherit eutils gnome2-utils nsplugins
327
328 DESCRIPTION="Adobe's PDF reader"
329 HOMEPAGE="http://www.adobe.com/products/reader/"
330 IUSE="cups ldap minimal nsplugin"
331
332 SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.1"
333 SRC_FOOT=".tar.bz2"
334
335 # 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
336 LINGUA_LIST="de:deu en:enu fr:fra ja:jpn"
337 DEFAULT_URI="${SRC_HEAD}/enu/AdbeRdr${PV}-1_i486linux_enu${SRC_FOOT}"
338 for ll in ${LINGUA_LIST} ; do
339 iuse_l="linguas_${ll/:*}"
340 src_l=${ll/*:}
341 IUSE="${IUSE} ${iuse_l}"
342 DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )"
343 SRC_URI="${SRC_URI}
344 ${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdbeRdr${PV}-1_i486linux_${src_l}${SRC_FOOT} )"
345 done
346 SRC_URI="${SRC_URI}
347 ${DEFAULT_URI}"
348
349 LICENSE="Adobe"
350 SLOT="0"
351 KEYWORDS="-* ~amd64 ~x86"
352 RESTRICT="strip mirror"
353
354 # mozilla-firefox-bin won't work because it doesn't have gtkembedmoz.so
355 RDEPEND="media-libs/fontconfig
356 cups? ( net-print/cups )
357 x86? ( >=x11-libs/gtk+-2.0
358 ldap? ( net-nds/openldap )
359 !minimal? ( || ( net-libs/xulrunner
360 net-libs/xulrunner-bin
361 www-client/mozilla-firefox
362 www-client/seamonkey
363 www-client/seamonkey-bin ) ) )
364 amd64? ( >=app-emulation/emul-linux-x86-baselibs-2.4.2
365 >=app-emulation/emul-linux-x86-gtklibs-2.0
366 !minimal? ( || ( net-libs/xulrunner-bin
367 www-client/seamonkey-bin ) ) )"
368
369 QA_EXECSTACK="opt/Adobe/Reader9/Reader/intellinux/bin/acroread
370 opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0
371 opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so
372 opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8
373 opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api"
374
375 INSTALLDIR=/opt
376
377 S="${WORKDIR}/AdobeReader"
378
379 # Actually, ahv segfaults when run standalone so presumably
380 # it isn't intended for direct use - so the only launcher is
381 # acroread after all.
382 LAUNCHERS="Adobe/Reader9/bin/acroread"
383 # Adobe/HelpViewer/1.0/intellinux/bin/ahv"
384
385 pkg_setup() {
386 # x86 binary package, ABI=x86
387 has_multilib_profile && ABI="x86"
388 }
389
390 # Determine lingua from filename
391 acroread_get_ll() {
392 local f_src_l ll lingua src_l
393 f_src_l=${1/${SRC_FOOT}}
394 f_src_l=${f_src_l/*_}
395 for ll in ${LINGUA_LIST} ; do
396 lingua=${ll/:*}
397 src_l=${ll/*:}
398 if [[ ${src_l} == ${f_src_l} ]] ; then
399 echo ${lingua}
400 return
401 fi
402 done
403 die "Failed to match file $1 to a LINGUA; please report."
404 }
405
406 src_unpack() {
407 local ll linguas fl launcher
408 # Unpack all into the same place; overwrite common files.
409 fl=""
410 for pkg in ${A} ; do
411 cd "${WORKDIR}"
412 unpack ${pkg}
413 cd "${S}"
414 tar xf ILINXR.TAR || die "Failed to unpack ILINXR.TAR."
415 tar xf COMMON.TAR || die "Failed to unpack COMMON.TAR."
416 ll=$(acroread_get_ll ${pkg})
417 for launcher in ${LAUNCHERS} ; do
418 mv ${launcher} ${launcher}.${ll}
419 done
420 if [[ -z ${fl} ]] ; then
421 fl=${ll}
422 linguas="${ll}"
423 else
424 linguas="${linguas} ${ll}"
425 fi
426 done
427 if [[ ${linguas} == ${fl} ]] ; then
428 # Only one lingua selected - skip building the wrappers
429 for launcher in ${LAUNCHERS} ; do
430 mv ${launcher}.${fl} ${launcher} ||
431 die "Failed to put ${launcher}.${fl} back to ${launcher}; please report."
432 done
433 else
434 # Build wrappers. Launch the acroread for the environment variable
435 # LANG (matched with a trailing * so that for example 'de_DE' matches
436 # 'de', 'en_GB' matches 'en' etc).
437 #
438 # HelpViewer is new - We don't know if Adobe are likely to
439 # internationalize it or not.
440 for launcher in ${LAUNCHERS} ; do
441 cat > ${launcher} <<-EOF
442 #!/bin/bash
443 # Copyright 1999-2009 Gentoo Foundation
444 # Distributed under the terms of the GNU General Public License v2
445 #
446 # Automatically generated by ${CATEGORY}/${PF}
447
448 # Exec the acroread script for the language chosen in
449 # LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc)
450 L=\${LC_ALL}
451 L=\${L:-\${LC_MESSAGES}}
452 L=\${L:-\${LANG}}
453 case \${L} in
454 EOF
455 for ll in ${linguas} ; do
456 echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher}
457 done
458 # default to English (in particular for LANG=C)
459 cat >> ${launcher} <<-EOF
460 *) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";;
461 esac
462 EOF
463 chmod 755 ${launcher}
464 done
465 fi
466
467 # remove cruft
468 rm "${S}"/Adobe/Reader9/bin/UNINSTALL
469 rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin
470 rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop
471
472 # replace some configuration sections
473 for binfile in "${S}"/Adobe/Reader9/bin/* ; do
474 sed -i -e '/Font-config/,+9d' \
475 -e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \
476 "${binfile}" || die "sed configuration settings failed."
477 done
478 }
479
480 src_install() {
481 # Install desktop files
482 domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop || die "Installing desktop files failed."
483
484 # Install commonly used icon sizes
485 for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do
486 insinto /usr/share/icons/hicolor/${res}/apps
487 doins Adobe/Reader9/Resource/Icons/${res}/* || die "Installing icons failed."
488 done
489
490 dodir /opt || die "Creating directoy failed."
491 chown -R --dereference -L root:0 Adobe
492 cp -dpR Adobe "${D}"opt/
493
494 doman Adobe/Reader9/Resource/Shell/acroread.1.gz || die "Installing manpage failed."
495
496 if use nsplugin ; then
497 exeinto /opt/netscape/plugins
498 doexe Adobe/Reader9/Browser/intellinux/nppdf.so || die "Installing the browser plugin failed."
499 inst_plugin /opt/netscape/plugins/nppdf.so
500 fi
501
502 dodir /opt/bin || die "Creating directory failed."
503 for launcher in ${LAUNCHERS} ; do
504 dosym /opt/${launcher} /opt/bin/${launcher/*bin\/} || die "Installing launcher symlinks failed."
505 done
506
507 # We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since
508 # they don't install a configuration file for libgtkembedmoz.so
509 # detection in /etc/gre.d/ like xulrunner does.
510 if ! use minimal ; then
511 if use x86 ; then
512 for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do
513 if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
514 echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config
515 elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on"
516 elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config."
517 break # don't search any more libraries
518 fi
519 done
520 fi
521 if use amd64 ; then
522 for lib in /opt/seamonkey ; do
523 if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
524 echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config
525 elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on"
526 elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config."
527 break # don't search any more libraries
528 fi
529 done
530 fi
531 fi
532 }
533
534 pkg_preinst() {
535 gnome2_icon_savelist
536 }
537
538 pkg_postinst () {
539 local ll lc
540 lc=0
541 for ll in ${LINGUA_LIST} ; do
542 use linguas_${ll/:*} && (( lc = ${lc} + 1 ))
543 done
544 if [[ ${lc} > 1 ]] ; then
545 echo
546 elog "Multiple languages have been installed, selected via a wrapper script."
547 elog "The language is selected according to the LANG environment variable"
548 elog "(defaulting to English if LANG is not set, or no matching language"
549 elog "version is installed). Users may need to remove their preferences in"
550 elog "~/.adobe to switch languages."
551 echo
552 fi
553
554 if use minimal ; then
555 echo
556 ewarn "If you want html support and/or view the Adobe Reader help you have"
557 ewarn "to re-emerge acroread with USE=\"-minimal\"."
558 echo
559 fi
560
561 if use nsplugin ; then
562 echo
563 elog "If you're running a 64bit browser you may also want to install"
564 elog "\"net-www/nspluginwrapper\" to be able to use the Adobe Reader browser plugin."
565 echo
566 fi
567
568 gnome2_icon_cache_update
569 }
570
571 pkg_postrm() {
572 gnome2_icon_cache_update
573 }