1 |
dilfridge 12/01/28 20:05:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: acroread-9.4.7.ebuild |
5 |
Log: |
6 |
Version bump, unfortunately only english so far |
7 |
|
8 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.171 app-text/acroread/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/ChangeLog?rev=1.171&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/ChangeLog?rev=1.171&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/ChangeLog?r1=1.170&r2=1.171 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v |
20 |
retrieving revision 1.170 |
21 |
retrieving revision 1.171 |
22 |
diff -u -r1.170 -r1.171 |
23 |
--- ChangeLog 28 Jan 2012 19:33:42 -0000 1.170 |
24 |
+++ ChangeLog 28 Jan 2012 20:05:02 -0000 1.171 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-text/acroread |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.170 2012/01/28 19:33:42 dilfridge Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.171 2012/01/28 20:05:02 dilfridge Exp $ |
30 |
+ |
31 |
+*acroread-9.4.7 (28 Jan 2012) |
32 |
+ |
33 |
+ 28 Jan 2012; Andreas K. Huettel <dilfridge@g.o> |
34 |
+ +acroread-9.4.7.ebuild: |
35 |
+ Version bump, unfortunately only english so far |
36 |
|
37 |
*acroread-9.4.2-r2 (28 Jan 2012) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-text/acroread/acroread-9.4.7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/acroread-9.4.7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/acroread-9.4.7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: acroread-9.4.7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.7.ebuild,v 1.1 2012/01/28 20:05:02 dilfridge Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit eutils gnome2-utils nsplugins |
56 |
|
57 |
DESCRIPTION="Adobe's PDF reader" |
58 |
HOMEPAGE="http://www.adobe.com/products/reader/" |
59 |
IUSE="cups ldap minimal nsplugin" |
60 |
|
61 |
SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${PV}" |
62 |
SRC_FOOT=".tar.bz2" |
63 |
|
64 |
# 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 de:deu fr:fra ja:jpn |
65 |
LINGUA_LIST="en:enu" |
66 |
DEFAULT_URI="${SRC_HEAD}/enu/AdbeRdr${PV}-1_i486linux_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}/AdbeRdr${PV}-1_i486linux_${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 |
x86? ( =dev-libs/openssl-0.9.8* ) |
86 |
cups? ( net-print/cups ) |
87 |
x86? ( x11-libs/gtk+:2 |
88 |
ldap? ( net-nds/openldap ) |
89 |
!minimal? ( || ( net-libs/xulrunner |
90 |
www-client/firefox |
91 |
www-client/seamonkey ) ) ) |
92 |
amd64? ( app-emulation/emul-linux-x86-gtklibs app-emulation/emul-linux-x86-baselibs )" |
93 |
|
94 |
QA_EXECSTACK="opt/Adobe/Reader9/Reader/intellinux/bin/acroread |
95 |
opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0 |
96 |
opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so |
97 |
opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8 |
98 |
opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api" |
99 |
|
100 |
QA_DT_HASH="opt/Adobe/Reader9/Reader/intellinux/plug_ins3d/.*.x3d |
101 |
opt/Adobe/Reader9/Reader/intellinux/lib/lib.* |
102 |
opt/Adobe/Reader9/Reader/intellinux/bin/SynchronizerApp-binary |
103 |
opt/Adobe/Reader9/Reader/intellinux/bin/acroread |
104 |
opt/Adobe/Reader9/Reader/intellinux/bin/xdg-user-dirs-update |
105 |
opt/Adobe/Reader9/Reader/intellinux/SPPlugins/ADMPlugin.apl |
106 |
opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm/PMP/.*.pmp |
107 |
opt/Adobe/Reader9/Reader/intellinux/plug_ins/Multimedia/MPP/.*.mpp |
108 |
opt/Adobe/Reader9/Reader/intellinux/plug_ins/.*.api |
109 |
opt/Adobe/Reader9/Reader/intellinux/sidecars/.*.DEU |
110 |
opt/Adobe/Reader9/Browser/intellinux/nppdf.so |
111 |
opt/netscape/plugins/nppdf.so" |
112 |
|
113 |
INSTALLDIR=/opt |
114 |
|
115 |
S="${WORKDIR}/AdobeReader" |
116 |
|
117 |
# Actually, ahv segfaults when run standalone so presumably |
118 |
# it isn't intended for direct use - so the only launcher is |
119 |
# acroread after all. |
120 |
LAUNCHERS="Adobe/Reader9/bin/acroread" |
121 |
# Adobe/HelpViewer/1.0/intellinux/bin/ahv" |
122 |
|
123 |
# remove bundled libs to force use of system version, bug 340527 |
124 |
REMOVELIBS="libcrypto libssl" |
125 |
|
126 |
pkg_setup() { |
127 |
# x86 binary package, ABI=x86 |
128 |
has_multilib_profile && ABI="x86" |
129 |
} |
130 |
|
131 |
# Determine lingua from filename |
132 |
acroread_get_ll() { |
133 |
local f_src_l ll lingua src_l |
134 |
f_src_l=${1/${SRC_FOOT}} |
135 |
f_src_l=${f_src_l/*_} |
136 |
for ll in ${LINGUA_LIST} ; do |
137 |
lingua=${ll/:*} |
138 |
src_l=${ll/*:} |
139 |
if [[ ${src_l} == ${f_src_l} ]] ; then |
140 |
echo ${lingua} |
141 |
return |
142 |
fi |
143 |
done |
144 |
die "Failed to match file $1 to a LINGUA; please report." |
145 |
} |
146 |
|
147 |
src_unpack() { |
148 |
local ll linguas fl launcher |
149 |
# Unpack all into the same place; overwrite common files. |
150 |
fl="" |
151 |
for pkg in ${A} ; do |
152 |
cd "${WORKDIR}" |
153 |
unpack ${pkg} |
154 |
cd "${S}" |
155 |
tar xf ILINXR.TAR || die "Failed to unpack ILINXR.TAR." |
156 |
tar xf COMMON.TAR || die "Failed to unpack COMMON.TAR." |
157 |
ll=$(acroread_get_ll ${pkg}) |
158 |
for launcher in ${LAUNCHERS} ; do |
159 |
mv ${launcher} ${launcher}.${ll} |
160 |
done |
161 |
if [[ -z ${fl} ]] ; then |
162 |
fl=${ll} |
163 |
linguas="${ll}" |
164 |
else |
165 |
linguas="${linguas} ${ll}" |
166 |
fi |
167 |
done |
168 |
if [[ ${linguas} == ${fl} ]] ; then |
169 |
# Only one lingua selected - skip building the wrappers |
170 |
for launcher in ${LAUNCHERS} ; do |
171 |
mv ${launcher}.${fl} ${launcher} || |
172 |
die "Failed to put ${launcher}.${fl} back to ${launcher}; please report." |
173 |
done |
174 |
else |
175 |
# Build wrappers. Launch the acroread for the environment variable |
176 |
# LANG (matched with a trailing * so that for example 'de_DE' matches |
177 |
# 'de', 'en_GB' matches 'en' etc). |
178 |
# |
179 |
# HelpViewer is new - We don't know if Adobe are likely to |
180 |
# internationalize it or not. |
181 |
for launcher in ${LAUNCHERS} ; do |
182 |
cat > ${launcher} <<-EOF |
183 |
#!/bin/bash |
184 |
# Copyright 1999-2009 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 particular 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 |
# remove cruft |
209 |
rm "${S}"/Adobe/Reader9/bin/UNINSTALL |
210 |
rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin |
211 |
rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop |
212 |
|
213 |
# replace some configuration sections |
214 |
for binfile in "${S}"/Adobe/Reader9/bin/* ; do |
215 |
sed -i -e '/Font-config/,+9d' \ |
216 |
-e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \ |
217 |
"${binfile}" || die "sed configuration settings failed." |
218 |
done |
219 |
|
220 |
# fix erroneous Exec entry in .desktop |
221 |
sed -i -e 's/^Exec=acroread[[:space:]]*$/Exec=acroread %U/' \ |
222 |
"${S}"/Adobe/Reader9/Resource/Support/AdobeReader.desktop \ |
223 |
||die "sed .desktop fix failed" |
224 |
} |
225 |
|
226 |
src_install() { |
227 |
# Install desktop files |
228 |
domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop |
229 |
|
230 |
# Install commonly used icon sizes |
231 |
for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do |
232 |
insinto /usr/share/icons/hicolor/${res}/apps |
233 |
doins Adobe/Reader9/Resource/Icons/${res}/* |
234 |
done |
235 |
|
236 |
dodir /opt |
237 |
chown -R --dereference -L root:0 Adobe |
238 |
cp -dpR Adobe "${D}"opt/ || die |
239 |
|
240 |
# remove some bundled libs |
241 |
for mylib in ${REMOVELIBS} ; do |
242 |
einfo Removing bundled ${mylib} |
243 |
rm -v "${D}"/opt/Adobe/Reader9/Reader/intellinux/lib/${mylib}* |
244 |
done |
245 |
|
246 |
doman Adobe/Reader9/Resource/Shell/acroread.1.gz |
247 |
|
248 |
if use nsplugin ; then |
249 |
exeinto /opt/netscape/plugins |
250 |
doexe Adobe/Reader9/Browser/intellinux/nppdf.so |
251 |
inst_plugin /opt/netscape/plugins/nppdf.so |
252 |
fi |
253 |
|
254 |
dodir /opt/bin |
255 |
for launcher in ${LAUNCHERS} ; do |
256 |
dosym /opt/${launcher} /opt/bin/${launcher/*bin\/} |
257 |
done |
258 |
|
259 |
# We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since |
260 |
# they don't install a configuration file for libgtkembedmoz.so |
261 |
# detection in /etc/gre.d/ like xulrunner does. |
262 |
if ! use minimal ; then |
263 |
if use x86 ; then |
264 |
for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do |
265 |
if [[ -f ${lib}/libgtkembedmoz.so ]] ; then |
266 |
echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config |
267 |
elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on" |
268 |
elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config." |
269 |
break # don't search any more libraries |
270 |
fi |
271 |
done |
272 |
fi |
273 |
fi |
274 |
} |
275 |
|
276 |
pkg_preinst() { |
277 |
gnome2_icon_savelist |
278 |
} |
279 |
|
280 |
pkg_postinst () { |
281 |
local ll lc |
282 |
lc=0 |
283 |
for ll in ${LINGUA_LIST} ; do |
284 |
use linguas_${ll/:*} && (( lc = ${lc} + 1 )) |
285 |
done |
286 |
if [[ ${lc} > 1 ]] ; then |
287 |
echo |
288 |
elog "Multiple languages have been installed, selected via a wrapper script." |
289 |
elog "The language is selected according to the LANG environment variable" |
290 |
elog "(defaulting to English if LANG is not set, or no matching language" |
291 |
elog "version is installed). Users may need to remove their preferences in" |
292 |
elog "~/.adobe to switch languages." |
293 |
echo |
294 |
fi |
295 |
|
296 |
if use minimal ; then |
297 |
echo |
298 |
ewarn "If you want html support and/or view the Adobe Reader help you have" |
299 |
ewarn "to re-emerge acroread with USE=\"-minimal\"." |
300 |
echo |
301 |
fi |
302 |
|
303 |
if use nsplugin ; then |
304 |
echo |
305 |
elog "If you're running a 64bit browser you may also want to install" |
306 |
elog "\"www-plugins/nspluginwrapper\" to be able to use the Adobe Reader" |
307 |
elog "browser plugin." |
308 |
echo |
309 |
fi |
310 |
|
311 |
gnome2_icon_cache_update |
312 |
} |
313 |
|
314 |
pkg_postrm() { |
315 |
gnome2_icon_cache_update |
316 |
} |