1 |
kevquinn 07/09/27 21:13:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: acroread-8.1.1.ebuild |
5 |
Log: |
6 |
Revision bump to 8.1.1 |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.101 app-text/acroread/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/ChangeLog?rev=1.101&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/ChangeLog?rev=1.101&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/ChangeLog?r1=1.100&r2=1.101 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v |
19 |
retrieving revision 1.100 |
20 |
retrieving revision 1.101 |
21 |
diff -u -r1.100 -r1.101 |
22 |
--- ChangeLog 7 Apr 2007 14:48:46 -0000 1.100 |
23 |
+++ ChangeLog 27 Sep 2007 21:13:17 -0000 1.101 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for app-text/acroread |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.100 2007/04/07 14:48:46 genstef Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.101 2007/09/27 21:13:17 kevquinn Exp $ |
29 |
+ |
30 |
+*acroread-8.1.1 (27 Sep 2007) |
31 |
+ |
32 |
+ 27 Sep 2007; Kevin F. Quinn <kevquinn@g.o> +acroread-8.1.1.ebuild: |
33 |
+ New version - includes help viewer. |
34 |
|
35 |
07 Apr 2007; Stefan Schweizer <genstef@g.o> -acroread-7.0.9.ebuild, |
36 |
acroread-7.0.9-r1.ebuild: |
37 |
|
38 |
|
39 |
|
40 |
1.1 app-text/acroread/acroread-8.1.1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/acroread-8.1.1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/acroread-8.1.1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: acroread-8.1.1.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-8.1.1.ebuild,v 1.1 2007/09/27 21:13:17 kevquinn Exp $ |
50 |
|
51 |
inherit eutils nsplugins |
52 |
|
53 |
DESCRIPTION="Adobe's PDF reader" |
54 |
HOMEPAGE="http://www.adobe.com/products/acrobat/" |
55 |
IUSE="cups ldap nsplugin" |
56 |
|
57 |
SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/${PV}" |
58 |
SRC_FOOT="-${PV}-1.i486.tar.bz2" |
59 |
|
60 |
#LINGUA_LIST="en:enu de:deu fr:fra sv:sve es:esp pt:ptb nb:nor it:ita fi:suo nl:nld da:dan ja:jpn ko:kor zh_CN:chs zh_TW:cht" |
61 |
LINGUA_LIST="en:enu" |
62 |
SRC_URI= |
63 |
DEFAULT_URI="${SRC_HEAD}/enu/AdobeReader_enu${SRC_FOOT}" |
64 |
for ll in ${LINGUA_LIST}; do |
65 |
iuse_l="linguas_${ll/:*}" |
66 |
src_l=${ll/*:} |
67 |
IUSE="${IUSE} ${iuse_l}" |
68 |
DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )" |
69 |
SRC_URI="${SRC_URI} |
70 |
${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdobeReader_${src_l}${SRC_FOOT} )" |
71 |
done |
72 |
SRC_URI="${SRC_URI} |
73 |
${DEFAULT_URI} |
74 |
x86? ( !cups? ( mirror://gentoo/libcups.so-i386.bz2 ) )" |
75 |
|
76 |
LICENSE="Adobe" |
77 |
SLOT="0" |
78 |
# NOTE - Do not go stable until all language variants are released for this version |
79 |
KEYWORDS="-* ~amd64 ~x86" |
80 |
RESTRICT="strip mirror" |
81 |
|
82 |
# Firefox is needed for libgtkembedmoz.so which is used to render files with |
83 |
# HTML. |
84 |
RDEPEND="x86? ( >=x11-libs/gtk+-2.0 |
85 |
cups? ( net-print/cups ) |
86 |
ldap? ( net-nds/openldap ) ) |
87 |
amd64? ( >=app-emulation/emul-linux-x86-baselibs-2.4.2 |
88 |
>=app-emulation/emul-linux-x86-gtklibs-2.0 ) |
89 |
|| ( www-client/mozilla-firefox |
90 |
www-client/mozilla-firefox-bin )" |
91 |
QA_TEXTRELS="opt/Acrobat8/Reader/intellinux/plug_ins/PPKLite.api |
92 |
opt/Adobe/Adobe/Reader8/Browser/intellinux/nppdf.so |
93 |
opt/netscape/plugins/nppdf.so" |
94 |
QA_EXECSTACK="opt/Adobe/Adobe/Reader8/Reader/intellinux/plug_ins/Annots.api |
95 |
opt/Adobe/Adobe/Reader8/Reader/intellinux/plug_ins/PPKLite.api |
96 |
opt/Adobe/Adobe/Reader8/Reader/intellinux/bin/acroread |
97 |
opt/Adobe/Adobe/Reader8/Reader/intellinux/bin/SynchronizerApp-binary |
98 |
opt/Adobe/Adobe/Reader8/Reader/intellinux/lib/libsccore.so |
99 |
opt/Adobe/Adobe/Reader8/Reader/intellinux/lib/libcrypto.so.0.9.7" |
100 |
|
101 |
INSTALLDIR=/opt/Adobe |
102 |
|
103 |
S=${WORKDIR}/AdobeReader |
104 |
|
105 |
# Actually, ahv segfaults when run standalone so presumably |
106 |
# it isn't intended for direct use - so the only launcher is |
107 |
# acroread after all. |
108 |
LAUNCHERS="Adobe/Reader8/bin/acroread" |
109 |
# Adobe/HelpViewer/1.0/intellinux/bin/ahv" |
110 |
|
111 |
pkg_setup() { |
112 |
# x86 binary package, ABI=x86 |
113 |
# Danny van Dyk <kugelfang@g.o> 2005/03/25 |
114 |
has_multilib_profile && ABI="x86" |
115 |
} |
116 |
|
117 |
# Determine lingua from filename |
118 |
acroread_get_ll() { |
119 |
local f_src_l ll lingua src_l |
120 |
f_src_l=${1/${SRC_FOOT}} |
121 |
f_src_l=${f_src_l/*_} |
122 |
for ll in ${LINGUA_LIST}; do |
123 |
lingua=${ll/:*} |
124 |
src_l=${ll/*:} |
125 |
if [[ ${src_l} == ${f_src_l} ]]; then |
126 |
echo ${lingua} |
127 |
return |
128 |
fi |
129 |
done |
130 |
die "Failed to match file $1 to a LINGUA; please report" |
131 |
} |
132 |
|
133 |
src_unpack() { |
134 |
local ll linguas fl launcher |
135 |
# Unpack all into the same place; overwrite common files. |
136 |
fl="" |
137 |
for pkg in ${A}; do |
138 |
cd ${WORKDIR} |
139 |
unpack ${pkg} |
140 |
cd ${S} |
141 |
if [[ ${pkg} =~ ^AdobeReader_ ]]; then |
142 |
tar xf ILINXR.TAR || |
143 |
die "Failed to unpack ILINXR.TAR; is distfile corrupt?" |
144 |
tar xf COMMON.TAR || |
145 |
die "Failed to unpack COMMON.TAR; is distfile corrupt?" |
146 |
# Don't know if this is still necessary or not... |
147 |
#epatch ${FILESDIR}/acroread-scim.patch |
148 |
# Don't know if this is still necessary or not... |
149 |
#epatch ${FILESDIR}/acroread-low-startup-fontissue.patch |
150 |
# Old under-quoted expr functions no longer appear |
151 |
#epatch ${FILESDIR}/acroread-expr.patch |
152 |
ll=$(acroread_get_ll ${pkg}) |
153 |
for launcher in ${LAUNCHERS}; do |
154 |
mv ${launcher} ${launcher}.${ll} |
155 |
done |
156 |
if [[ -z ${fl} ]]; then |
157 |
fl=${ll} |
158 |
linguas="${ll}" |
159 |
else |
160 |
linguas="${linguas} ${ll}" |
161 |
fi |
162 |
fi |
163 |
done |
164 |
if [[ ${linguas} == ${fl} ]]; then |
165 |
# Only one lingua selected - skip building the wrappers |
166 |
for launcher in ${LAUNCHERS}; do |
167 |
mv ${launcher}.${fl} ${launcher} || |
168 |
die "Failed to put ${launcher}.${fl} back to ${launcher}; please report" |
169 |
done |
170 |
else |
171 |
# Build wrappers. Launch the acroread for the environment variable |
172 |
# LANG (matched with a trailing * so that for example 'de_DE' matches |
173 |
# 'de', 'en_GB' matches 'en' etc). |
174 |
# |
175 |
# This is a bit premature at the moment on 8.1.1, for two reasons: |
176 |
# 1) The only language issued so far by Adobe is English, and the |
177 |
# provided launcher doesn't bring out its strings separately |
178 |
# (indicating internationalisation hasn't yet begin for 8.1.1) |
179 |
# 2) HelpViewer is new - I don't know if Adobe are likely to |
180 |
# internationalise it or not. |
181 |
for launcher in ${LAUNCHERS}; do |
182 |
cat > ${launcher} <<-EOF |
183 |
#!/bin/bash |
184 |
# Copyright 1999-2007 Gentoo Foundation |
185 |
# Distributed under the terms of the GNU General Public License v2 |
186 |
# |
187 |
# Automatically generated by ${CATEGORY}/${PF} |
188 |
|
189 |
# Exec the acroread script for the language chosen in |
190 |
# LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc) |
191 |
L=\${LC_ALL} |
192 |
L=\${L:-\${LC_MESSAGES}} |
193 |
L=\${L:-\${LANG}} |
194 |
case \${L} in |
195 |
EOF |
196 |
for ll in ${linguas}; do |
197 |
echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher} |
198 |
done |
199 |
# default to English (in particualr for LANG=C) |
200 |
cat >> ${launcher} <<-EOF |
201 |
*) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";; |
202 |
esac |
203 |
EOF |
204 |
chmod 755 ${launcher} |
205 |
done |
206 |
fi |
207 |
} |
208 |
|
209 |
src_install() { |
210 |
local dir |
211 |
|
212 |
# Install desktop files |
213 |
domenu Adobe/Reader8/Resource/Support |
214 |
# Install Icons - choose 48x48 since that's what the previous versions |
215 |
# supplied. |
216 |
doicon Adobe/Reader8/Resource/Icons/48x48 |
217 |
|
218 |
dodir /opt |
219 |
chown -R --dereference -L root:0 Adobe |
220 |
cp -dpR Adobe ${D}opt/ |
221 |
|
222 |
# The Browser_Plugin_HowTo.txt is now in a subdirectory, which |
223 |
# is named according to the language the user is using. |
224 |
# Ie. for German, it is in a DEU directory. See bug #118015 |
225 |
#dodoc Browser/${LANG_TAG}/Browser_Plugin_HowTo.txt |
226 |
dodoc Adobe/Reader8/Browser/HowTo/*/Browser_Plugin_HowTo.txt |
227 |
|
228 |
if use nsplugin ; then |
229 |
exeinto /opt/netscape/plugins |
230 |
doexe Adobe/Reader8/Browser/intellinux/nppdf.so |
231 |
inst_plugin /opt/netscape/plugins/nppdf.so |
232 |
fi |
233 |
|
234 |
if ! use ldap ; then |
235 |
rm ${D}${INSTALLDIR}/Reader8/Reader/intellinux/plug_ins/PPKLite.api |
236 |
fi |
237 |
|
238 |
# libcups is needed for printing support (bug 118417) |
239 |
if use x86 && ! use cups ; then |
240 |
mv ${WORKDIR}/libcups.so-i386 ${WORKDIR}/libcups.so.2 |
241 |
exeinto ${INSTALLDIR}/Reader8/Reader/intellinux/lib |
242 |
doexe ${WORKDIR}/libcups.so.2 |
243 |
dosym libcups.so.2 ${INSTALLDIR}/Reader8/Reader/intellinux/lib/libcups.so |
244 |
fi |
245 |
|
246 |
dodir /opt/bin |
247 |
for launcher in ${LAUNCHERS}; do |
248 |
dosym /opt/${launcher} /opt/bin/${launcher/*bin\/} |
249 |
done |
250 |
|
251 |
# # fix wrong directory permissions (bug #25931) |
252 |
# find ${D}${INSTALLDIR}/. -type d | xargs chmod 755 || die |
253 |
} |
254 |
|
255 |
pkg_postinst () { |
256 |
local ll lc |
257 |
use ldap || |
258 |
elog "The Acrobat(TM) Security Plugin can be enabled with USE=ldap" |
259 |
use nsplugin || |
260 |
elog "The Acrobat(TM) Browser Plugin can be enabled with USE=nsplugin" |
261 |
lc=0 |
262 |
for ll in ${LINGUA_LIST}; do |
263 |
use linguas_${ll/:*} && (( lc = ${lc} + 1 )) |
264 |
done |
265 |
if [[ ${lc} > 1 ]]; then |
266 |
elog "Multiple languages have been installed, selected via a wrapper script." |
267 |
elog "The language is selected according to the LANG environment variable" |
268 |
elog "(defaulting to English if LANG is not set, or no matching language" |
269 |
elog "version is installed). Users may need to remove their preferences in" |
270 |
elog "~/.adobe to switch languages." |
271 |
fi |
272 |
ewarn "Acrobat Reader depends dynamically on libgtkembedmoz.so, which comes" |
273 |
ewarn "with Mozilla Firefox. The first time you start acroread, it will" |
274 |
ewarn "complain about this, telling you to add the path to it to your" |
275 |
ewarn "preferences. Clear the error dialog, close the Beyond Acrobat" |
276 |
ewarn "Reader dialog, go to Edit -> Preferences -> Internet, and set" |
277 |
ewarn "the libgtkembedmoz directory to /usr/lib/mozilla-firefox, then" |
278 |
ewarn "close and restart acroread." |
279 |
} |
280 |
|
281 |
|
282 |
|
283 |
-- |
284 |
gentoo-commits@g.o mailing list |