1 |
commit: fd1dd2f3c5bbc6cd48688a68e1db97de494e1bf6 |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 30 07:45:16 2012 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 30 07:45:16 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/alexxy.git;a=commit;h=fd1dd2f3 |
7 |
|
8 |
[app-text/acroread] Add back old version. Seems its last one that works with animated pdf |
9 |
|
10 |
(Portage version: 2.2.0_alpha108/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
app-text/acroread/Manifest | 1 + |
14 |
app-text/acroread/acroread-9.4.1.ebuild | 254 +++++++++++++++++++++++++++++++ |
15 |
app-text/acroread/files/gentoo_config | 10 ++ |
16 |
app-text/acroread/metadata.xml | 5 + |
17 |
4 files changed, 270 insertions(+), 0 deletions(-) |
18 |
|
19 |
diff --git a/app-text/acroread/Manifest b/app-text/acroread/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..3c99f3c |
22 |
--- /dev/null |
23 |
+++ b/app-text/acroread/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST AdbeRdr9.4.1-1_i486linux_enu.tar.bz2 60172257 SHA256 6bf9bf427462a7a9ba7e7115cffe659bccb70758428ab32571e6ed78333b0b95 SHA512 aaca5eaaed9944be6b203fdd5cdef508032f9d21b5916e6f26d94e3964b3dcdda966bef2fa0b15a9ff3f0b3a6e4a1c1fd565eff600015c403cde5956b4dd3921 WHIRLPOOL e7976999cb427033114f8c6ce04d2c30db00f096889fd9e900801d7b9bed4894e0a0c60f5fe4cb5067577f834aedb8ad623d3eec5200ed1856d6ed3788719d2a |
26 |
|
27 |
diff --git a/app-text/acroread/acroread-9.4.1.ebuild b/app-text/acroread/acroread-9.4.1.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..a25335e |
30 |
--- /dev/null |
31 |
+++ b/app-text/acroread/acroread-9.4.1.ebuild |
32 |
@@ -0,0 +1,254 @@ |
33 |
+# Copyright 1999-2011 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.2.ebuild,v 1.6 2011/06/25 07:40:18 zmedico Exp $ |
36 |
+ |
37 |
+EAPI="1" |
38 |
+ |
39 |
+inherit eutils gnome2-utils nsplugins |
40 |
+ |
41 |
+DESCRIPTION="Adobe's PDF reader" |
42 |
+HOMEPAGE="http://www.adobe.com/products/reader/" |
43 |
+IUSE="cups ldap minimal nsplugin" |
44 |
+ |
45 |
+SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${PV}" |
46 |
+SRC_FOOT=".tar.bz2" |
47 |
+ |
48 |
+# languages not available yet: de:deu fr:fra it:ita es:esp ja:jpn pt:ptb sv:sve zh_CN:chs zh_TW:cht fi:suo nb:nor nl:nld ko:kor da:dan |
49 |
+LINGUA_LIST="en:enu" |
50 |
+DEFAULT_URI="${SRC_HEAD}/enu/AdbeRdr${PV}-1_i486linux_enu${SRC_FOOT}" |
51 |
+for ll in ${LINGUA_LIST} ; do |
52 |
+ iuse_l="linguas_${ll/:*}" |
53 |
+ src_l=${ll/*:} |
54 |
+ IUSE="${IUSE} ${iuse_l}" |
55 |
+ DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )" |
56 |
+ SRC_URI="${SRC_URI} |
57 |
+ ${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdbeRdr${PV}-1_i486linux_${src_l}${SRC_FOOT} )" |
58 |
+done |
59 |
+SRC_URI="${SRC_URI} |
60 |
+ ${DEFAULT_URI}" |
61 |
+ |
62 |
+LICENSE="Adobe" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="-* amd64 x86" |
65 |
+RESTRICT="strip mirror" |
66 |
+ |
67 |
+# mozilla-firefox-bin won't work because it doesn't have gtkembedmoz.so |
68 |
+RDEPEND="media-libs/fontconfig |
69 |
+ x86? ( =dev-libs/openssl-0.9.8* ) |
70 |
+ cups? ( net-print/cups ) |
71 |
+ x86? ( x11-libs/gtk+:2 |
72 |
+ ldap? ( net-nds/openldap ) |
73 |
+ !minimal? ( || ( net-libs/xulrunner |
74 |
+ www-client/firefox |
75 |
+ www-client/seamonkey ) ) ) |
76 |
+ amd64? ( app-emulation/emul-linux-x86-gtklibs )" |
77 |
+ |
78 |
+QA_EXECSTACK="opt/Adobe/Reader9/Reader/intellinux/bin/acroread |
79 |
+ opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0 |
80 |
+ opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so |
81 |
+ opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8 |
82 |
+ opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api" |
83 |
+ |
84 |
+QA_DT_HASH="opt/Adobe/Reader9/Reader/intellinux/plug_ins3d/.*.x3d |
85 |
+ opt/Adobe/Reader9/Reader/intellinux/lib/lib.* |
86 |
+ opt/Adobe/Reader9/Reader/intellinux/bin/SynchronizerApp-binary |
87 |
+ opt/Adobe/Reader9/Reader/intellinux/bin/acroread |
88 |
+ opt/Adobe/Reader9/Reader/intellinux/bin/xdg-user-dirs-update |
89 |
+ opt/Adobe/Reader9/Reader/intellinux/SPPlugins/ADMPlugin.apl |
90 |
+ opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm/PMP/.*.pmp |
91 |
+ opt/Adobe/Reader9/Reader/intellinux/plug_ins/Multimedia/MPP/.*.mpp |
92 |
+ opt/Adobe/Reader9/Reader/intellinux/plug_ins/.*.api |
93 |
+ opt/Adobe/Reader9/Reader/intellinux/sidecars/.*.DEU |
94 |
+ opt/Adobe/Reader9/Browser/intellinux/nppdf.so |
95 |
+ opt/netscape/plugins/nppdf.so" |
96 |
+ |
97 |
+INSTALLDIR=/opt |
98 |
+ |
99 |
+S="${WORKDIR}/AdobeReader" |
100 |
+ |
101 |
+# Actually, ahv segfaults when run standalone so presumably |
102 |
+# it isn't intended for direct use - so the only launcher is |
103 |
+# acroread after all. |
104 |
+LAUNCHERS="Adobe/Reader9/bin/acroread" |
105 |
+# Adobe/HelpViewer/1.0/intellinux/bin/ahv" |
106 |
+ |
107 |
+pkg_setup() { |
108 |
+ # x86 binary package, ABI=x86 |
109 |
+ has_multilib_profile && ABI="x86" |
110 |
+} |
111 |
+ |
112 |
+# Determine lingua from filename |
113 |
+acroread_get_ll() { |
114 |
+ local f_src_l ll lingua src_l |
115 |
+ f_src_l=${1/${SRC_FOOT}} |
116 |
+ f_src_l=${f_src_l/*_} |
117 |
+ for ll in ${LINGUA_LIST} ; do |
118 |
+ lingua=${ll/:*} |
119 |
+ src_l=${ll/*:} |
120 |
+ if [[ ${src_l} == ${f_src_l} ]] ; then |
121 |
+ echo ${lingua} |
122 |
+ return |
123 |
+ fi |
124 |
+ done |
125 |
+ die "Failed to match file $1 to a LINGUA; please report." |
126 |
+} |
127 |
+ |
128 |
+src_unpack() { |
129 |
+ local ll linguas fl launcher |
130 |
+ # Unpack all into the same place; overwrite common files. |
131 |
+ fl="" |
132 |
+ for pkg in ${A} ; do |
133 |
+ cd "${WORKDIR}" |
134 |
+ unpack ${pkg} |
135 |
+ cd "${S}" |
136 |
+ tar xf ILINXR.TAR || die "Failed to unpack ILINXR.TAR." |
137 |
+ tar xf COMMON.TAR || die "Failed to unpack COMMON.TAR." |
138 |
+ ll=$(acroread_get_ll ${pkg}) |
139 |
+ for launcher in ${LAUNCHERS} ; do |
140 |
+ mv ${launcher} ${launcher}.${ll} |
141 |
+ done |
142 |
+ if [[ -z ${fl} ]] ; then |
143 |
+ fl=${ll} |
144 |
+ linguas="${ll}" |
145 |
+ else |
146 |
+ linguas="${linguas} ${ll}" |
147 |
+ fi |
148 |
+ done |
149 |
+ if [[ ${linguas} == ${fl} ]] ; then |
150 |
+ # Only one lingua selected - skip building the wrappers |
151 |
+ for launcher in ${LAUNCHERS} ; do |
152 |
+ mv ${launcher}.${fl} ${launcher} || |
153 |
+ die "Failed to put ${launcher}.${fl} back to ${launcher}; please report." |
154 |
+ done |
155 |
+ else |
156 |
+ # Build wrappers. Launch the acroread for the environment variable |
157 |
+ # LANG (matched with a trailing * so that for example 'de_DE' matches |
158 |
+ # 'de', 'en_GB' matches 'en' etc). |
159 |
+ # |
160 |
+ # HelpViewer is new - We don't know if Adobe are likely to |
161 |
+ # internationalize it or not. |
162 |
+ for launcher in ${LAUNCHERS} ; do |
163 |
+ cat > ${launcher} <<-EOF |
164 |
+ #!/bin/bash |
165 |
+ # Copyright 1999-2009 Gentoo Foundation |
166 |
+ # Distributed under the terms of the GNU General Public License v2 |
167 |
+ # |
168 |
+ # Automatically generated by ${CATEGORY}/${PF} |
169 |
+ |
170 |
+ # Exec the acroread script for the language chosen in |
171 |
+ # LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc) |
172 |
+ L=\${LC_ALL} |
173 |
+ L=\${L:-\${LC_MESSAGES}} |
174 |
+ L=\${L:-\${LANG}} |
175 |
+ case \${L} in |
176 |
+ EOF |
177 |
+ for ll in ${linguas} ; do |
178 |
+ echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher} |
179 |
+ done |
180 |
+ # default to English (in particular for LANG=C) |
181 |
+ cat >> ${launcher} <<-EOF |
182 |
+ *) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";; |
183 |
+ esac |
184 |
+ EOF |
185 |
+ chmod 755 ${launcher} |
186 |
+ done |
187 |
+ fi |
188 |
+ |
189 |
+ # remove cruft |
190 |
+ rm "${S}"/Adobe/Reader9/bin/UNINSTALL |
191 |
+ rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin |
192 |
+ rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop |
193 |
+ |
194 |
+ # replace some configuration sections |
195 |
+ for binfile in "${S}"/Adobe/Reader9/bin/* ; do |
196 |
+ sed -i -e '/Font-config/,+9d' \ |
197 |
+ -e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \ |
198 |
+ "${binfile}" || die "sed configuration settings failed." |
199 |
+ done |
200 |
+} |
201 |
+ |
202 |
+src_install() { |
203 |
+ # Install desktop files |
204 |
+ domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop || die "Installing desktop files failed." |
205 |
+ |
206 |
+ # Install commonly used icon sizes |
207 |
+ for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do |
208 |
+ insinto /usr/share/icons/hicolor/${res}/apps |
209 |
+ doins Adobe/Reader9/Resource/Icons/${res}/* || die "Installing icons failed." |
210 |
+ done |
211 |
+ |
212 |
+ dodir /opt || die "Creating directory failed." |
213 |
+ chown -R --dereference -L root:0 Adobe |
214 |
+ cp -dpR Adobe "${D}"opt/ |
215 |
+ |
216 |
+ doman Adobe/Reader9/Resource/Shell/acroread.1.gz || die "Installing manpage failed." |
217 |
+ |
218 |
+ if use nsplugin ; then |
219 |
+ exeinto /opt/netscape/plugins |
220 |
+ doexe Adobe/Reader9/Browser/intellinux/nppdf.so || die "Installing the browser plugin failed." |
221 |
+ inst_plugin /opt/netscape/plugins/nppdf.so |
222 |
+ fi |
223 |
+ |
224 |
+ dodir /opt/bin || die "Creating directory failed." |
225 |
+ for launcher in ${LAUNCHERS} ; do |
226 |
+ dosym /opt/${launcher} /opt/bin/${launcher/*bin\/} || die "Installing launcher symlinks failed." |
227 |
+ done |
228 |
+ |
229 |
+ # We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since |
230 |
+ # they don't install a configuration file for libgtkembedmoz.so |
231 |
+ # detection in /etc/gre.d/ like xulrunner does. |
232 |
+ if ! use minimal ; then |
233 |
+ if use x86 ; then |
234 |
+ for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do |
235 |
+ if [[ -f ${lib}/libgtkembedmoz.so ]] ; then |
236 |
+ echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config |
237 |
+ elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on" |
238 |
+ elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config." |
239 |
+ break # don't search any more libraries |
240 |
+ fi |
241 |
+ done |
242 |
+ fi |
243 |
+ fi |
244 |
+} |
245 |
+ |
246 |
+pkg_preinst() { |
247 |
+ gnome2_icon_savelist |
248 |
+} |
249 |
+ |
250 |
+pkg_postinst () { |
251 |
+ local ll lc |
252 |
+ lc=0 |
253 |
+ for ll in ${LINGUA_LIST} ; do |
254 |
+ use linguas_${ll/:*} && (( lc = ${lc} + 1 )) |
255 |
+ done |
256 |
+ if [[ ${lc} > 1 ]] ; then |
257 |
+ echo |
258 |
+ elog "Multiple languages have been installed, selected via a wrapper script." |
259 |
+ elog "The language is selected according to the LANG environment variable" |
260 |
+ elog "(defaulting to English if LANG is not set, or no matching language" |
261 |
+ elog "version is installed). Users may need to remove their preferences in" |
262 |
+ elog "~/.adobe to switch languages." |
263 |
+ echo |
264 |
+ fi |
265 |
+ |
266 |
+ if use minimal ; then |
267 |
+ echo |
268 |
+ ewarn "If you want html support and/or view the Adobe Reader help you have" |
269 |
+ ewarn "to re-emerge acroread with USE=\"-minimal\"." |
270 |
+ echo |
271 |
+ fi |
272 |
+ |
273 |
+ if use nsplugin ; then |
274 |
+ echo |
275 |
+ elog "If you're running a 64bit browser you may also want to install" |
276 |
+ elog "\"www-plugins/nspluginwrapper\" to be able to use the Adobe Reader" |
277 |
+ elog "browser plugin." |
278 |
+ echo |
279 |
+ fi |
280 |
+ |
281 |
+ gnome2_icon_cache_update |
282 |
+} |
283 |
+ |
284 |
+pkg_postrm() { |
285 |
+ gnome2_icon_cache_update |
286 |
+} |
287 |
|
288 |
diff --git a/app-text/acroread/files/gentoo_config b/app-text/acroread/files/gentoo_config |
289 |
new file mode 100644 |
290 |
index 0000000..1ca8729 |
291 |
--- /dev/null |
292 |
+++ b/app-text/acroread/files/gentoo_config |
293 |
@@ -0,0 +1,10 @@ |
294 |
+# Enable this if you want Adobe Reader to cache Font-config fonts |
295 |
+ACRO_ENABLE_FONT_CONFIG=1 |
296 |
+export ACRO_ENABLE_FONT_CONFIG |
297 |
+ |
298 |
+# Enable this if you want to set the MOZILLA_COMP_PATH globally (for all the users) |
299 |
+if [ -f "$ACRO_INSTALL_DIR/GlobalPrefs/mozilla_config" ]; then |
300 |
+ . "$ACRO_INSTALL_DIR/GlobalPrefs/mozilla_config" |
301 |
+ export MOZILLA_COMP_PATH |
302 |
+fi |
303 |
+ |
304 |
|
305 |
diff --git a/app-text/acroread/metadata.xml b/app-text/acroread/metadata.xml |
306 |
new file mode 100644 |
307 |
index 0000000..1fa0ca5 |
308 |
--- /dev/null |
309 |
+++ b/app-text/acroread/metadata.xml |
310 |
@@ -0,0 +1,5 @@ |
311 |
+<?xml version="1.0" encoding="UTF-8"?> |
312 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
313 |
+<pkgmetadata> |
314 |
+<herd>printing</herd> |
315 |
+</pkgmetadata> |