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